Questions tagged [permissions]

for questions regarding permissions of different user groups in wordpress

Filter by
Sorted by
Tagged with
55
votes
5answers
64k views

MySQL Database User: Which Privileges are needed?

The short installation instruction for WordPress ("5 Minutes") state that: Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and ...
47
votes
6answers
88k views

to perform the requested action wordpress needs to access your web server. please enter your ftp

I'm following Changing File Permissions « WordPress Codex, yet when I'm try to update and/or install plugin and/or theme through wp-admin, I'm getting following: To perform the requested action, ...
31
votes
4answers
60k views

Allow member to have access to custom post type only. Permission to only edit their own posts

OK I'm looking for the best way to attack this. I'm very comfortable with PHP and making custom post types with custom meta fields in WordPress. Here is what I'm looking at doing: User registers ...
21
votes
1answer
478 views

With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?

I am aiming to restrict certain RESTUL verbs per custom post type. For example, given a Vocabulary custom post type, I would like to say: Permission Matrix +-------+---+----------+ |index | X | GET ...
18
votes
2answers
57k views

Prompted for FTP details even with FS_DIRECT set to true

I am running WordPress 4.1 Multisite on CentOS with NGINX. I have set define('FS_METHOD','direct'); in wp-config.php but am still getting prompted for FTP credentials when trying to install a plugin. ...
18
votes
1answer
16k views

Setting $_SERVER['HTTPS']='on' prevents access to wp-admin

First off my server is sitting behind a load balancer. My SSL certificate sits on the load balancer and handles HTTPS. The data coming in on port 443 is forwarded to the Wordpress server using HTTP ...
15
votes
4answers
11k views

How to to secure WordPress file and folder permissions

I've read articles about protecting wp-config.php using .htaccess as well as setting the correct file permissions but I want it all in one place. What should my .htaccess file look like and what ...
13
votes
3answers
25k views

Destination directory for file streaming does not exist or is not writable

I am trying to upgrade my version of Wordpress but I get this error: Destination directory for file streaming does not exist or is not writable.
10
votes
5answers
17k views

What are the recommended database permissions for WordPress?

I just got WP running on my own server. I am not trying to lock things down more. What permissions should the db user have to my WP db?
10
votes
3answers
982 views

What is valid timing of using current_user_can() and related functions?

During the vanilla WP core load the current user is being set up in $wp-init() which is after theme load and before init hook. This is in line with good practice of functionality getting hooked to ...
9
votes
8answers
16k views

Is there a way (plugin?) to restrict a user to being able to edit just one page?

We use wordpress like a CMS and would very much like to allow users to have a "homepage". Ideally they'd be prevented from mucking up the whole site. Is there a simple way to limit users editing ...
8
votes
3answers
41k views

Can't upload media, permissions are correct

I did a manual backup and re-install of a WP site, and it worked fine. Then my client updated some plugins, regretted it and asked me to restore the site to its previous state. I used the same backup ...
8
votes
2answers
4k views

How to prevent a post from being deleted?

For auditing issue, I only want a post can be trashed, but not deleted - for all users. So I have a plugin like add_action('before_delete_post', function($id) { wp_die(0); }); But seems ...
8
votes
3answers
5k views

Update post counts (published, draft, unattached) in admin interface

I am working on a multi-user WordPress setup and have made it so a particular type of user can only see and interact with posts, images, pages etc that they have authored. The code to make this happen ...
7
votes
1answer
12k views

Export data as CSV in back end with proper HTTP headers

I wrote a plugin that displays all products in a woocommerce store in admin settings option, now I want to add a link to download the products as CSV file. The problem is, when I click the link I get ...
7
votes
1answer
6k views

Disable Media Uploads to non Admin Users

I am working on a clients site, one of the features they want is for his Editors or Authors to only be able to select existing images to insert into Posts from the Media Library. So looking at the ...
7
votes
2answers
16k views

Create custom permissions for user type

I'm currently wanting to have it so that writers on my site have to have an admin approve their content before it's published, but still be allowed to do other tasks such as uploading images, adding ...
7
votes
1answer
5k views

WP in Docker - cannot install plugin or upgrade WP

For development purpose, I need to setup an installation of WordPress in a docker container. I found and follow this tutorial. Everything is working well, with all the security and optimisation. But ...
7
votes
1answer
14k views

when FS_METHOD = 'direct' is chosen?

According to the Wordpress Codes FS_METHOD = 'direct' is chosen when appropriate. (Primary Preference) "direct" forces it to use Direct File I/O requests from within PHP, this is fraught with ...
6
votes
1answer
10k views

Custom Role does not have access to dashboard

I was just adding a custom role by using the add_role() function. Here is the code below: add_role('user', 'User', array('read')); I figured this would give the same level of access as the ...
6
votes
1answer
9k views

Media not actually deleted on disk when click “Permanent Delete”

I have uploaded a new docx and pdf through the media library and the procedure is completed successfully. I can confirm that the direct link actually works. The problem is being identified when I try ...
6
votes
1answer
4k views

Wordpress REST API - Permission Callbacks

I'm currently building a small REST API with the WP-REST v2 plugin. Everything is working perfectly fine, however, in the documentation there are permission callbacks, which restrict access to certain ...
6
votes
2answers
2k views

Add Custom User Capabilities Before or After the Custom User Role has Been Added?

Should custom user capabilities be added before the custom user role has been added, or the other way around? add_role() asks for and array of $capabilities in the third parameter of the function. ...
6
votes
3answers
2k views

How to Control user registrations directly on sub-sites

Does anybody have Idea to enable a wordpress based multisite user to automatically get access to all sub-sites under same Multi site ? If I have A Multi-site installation(Also Buddypress enabled) at ...
6
votes
6answers
25k views

Can't upload images due to permissions error

For some reason when I try to upload an image to my blog I get an error message saying that WP can't create a folder under the relevant directory (wp-content/uploads/2010/09) and it's asking if the ...
5
votes
2answers
8k views

add_menu_page permissions - what am I doing wrong?

I am running a fresh install of Wordpress 3.3.2 and the only plugin enabled is one I'm developing, but I can't seem to get past a permissions issue in add_menu_page. With the exception of using ...
5
votes
2answers
20k views

How to stop wordpress from changing default .htaccess permissions to 444

I installed my website using an installer - fantastico for a quick install. Just a few days ago, I started getting a weird error in w3tc plugin and it would ask me to update via ftp as you can see ...
5
votes
4answers
10k views

Recommended File Permissions

Hey guys, I have been spending the longest time trying to figure out this issue. I would like to know what the file permissions should look like in WordPress in order to use the autoupdate feature. As ...
5
votes
1answer
8k views

How do I get the right permissions for WordPress running Apache on Debian

I'm trying to set up a WordPress site on a LAMP stack on Debian 6.0. From the WordPress documentation (and my experience on shared hosts) the correct permissions should be as follows All files ...
5
votes
2answers
3k views

File and directory permissions

I installed latest WordPress 3.5 in my CentOS server. When I tried accessing http://example.com/wp-includes/, I received a listing of the directory: (Index of wp-includes). I added the following code ...
5
votes
1answer
270 views

What's the difference between the permissions “edit_published_posts” and “edit_posts”

What's the difference between the permissions "edit_published_posts" and "edit_posts"? It's not clear on the wordpress manual.
5
votes
5answers
31k views

Can't install new plugins because of the error “Could not create directory”

A faculty member is having difficulties with a instructional wordpress install. Fixing individual permission problems has been hit and miss, and have become a perennial pain, so I'll ask here. What ...
4
votes
3answers
3k views

Cannot install plugins even though www-data has write permissions

All the files in my WordPress path are owned by myuser:www-data and Apache is running as www-data. All files and folders have group write permissions, e.g. -rw-rw----, but I keep being prompted for ...
4
votes
1answer
2k views

Disable posts, only allow to edit existing pages, not create new ones (create_posts)

I am trying to limit a user role to only be able to edit existing pages, but not create new ones or do anything else like anything with posts. I have read this: Is there an existing capability to ...
4
votes
1answer
3k views

Network Admin “You do not have sufficient permissions to access this page.”

I have had trouble logging into WP-Admin with my admin account. I have reset my password, and I can now log-in to WP-Admin, but cannot reach Network Admin (/wp-admin/network), instead receiving "You ...
4
votes
3answers
18k views

Permissions to wp-content folder in Windows Server 2012

I've made some tests to solve this problem: trying to update some plugins via Wordpress backend I always receive a "Unable to create folder" error. So I've initially added IIS_IUSRS with Read/Write/...
4
votes
1answer
4k views

Wordpress in IIS 7.5 - “cannot create directory”

This is a common problem (so I've found out) but I cannot get WP to play nice with IIS 7.5 / PHP 5.6. Updating (WP + plugins) and installing (plugins) always return the error "Cannot create directory"....
4
votes
3answers
180 views

How to let authors revise other authors drafts, but keep them from publishing?

I want to give all authors permission to edit other authors drafts, but not publish them. It seems like the only way to give authors access to drafts by other authors is to grant them '...
4
votes
3answers
64 views

Add new user : make the fields First Name and Last name required

I'm searching how to make First Name and Last name fields required when we add a new user. Right now only username and Email fields are required. I found a way by adding class="form-required"...
4
votes
2answers
3k views

Wrong permissions when uploading a file through WordPress | IIS

I own an IIS server where I have hosted a simple WordPress website. I have made this website available to the internet over port 80. Almost everything is working fine, except the permissions that ...
4
votes
1answer
2k views

Can't preview drafts after upgrade to 4.0!

I recently updated to wordpress 4.0. However, when I try to preview my drafts, I receive an error saying that I do not have the permission to do so. I've cleared my cache and cookies and restarted my ...
4
votes
1answer
252 views

What permissions should i have set up for the Database User after i have Wordpress set up?

so i was reading this on php.net and read this Never connect to the database as a superuser or as the database owner. Use always customized users with very limited privileges. Before getting my ...
4
votes
2answers
216 views

Why is group ownership with rwx permissions not enough?

Running PHP 5.4 and Apache2 on Debian 7, with apache configured to use user www-data. I'm trying to figure out why Wordpress cannot modify files in its directory when it has group ownership with full ...
3
votes
2answers
4k views

How to filter the role selector?

I know that roles in WordPress are not hierarchical, but I'm wondering if there is any type of capability to "assign users to roles". All I can see if being able to add users or not. The real kicker ...
3
votes
2answers
6k views

What permissions does wp-content/uploads need?

What is the default wp-content/uploads directory permission? What chmod command do I need to set it correctly?
3
votes
1answer
9k views

Moving Media Library

I downloaded all files from wp-content/uploads and copied to new Wordpres instance on localhost (Windows IIS Express also on MacOS with MAMP). Unfortunately in both cases I don't see my files in Media ...
3
votes
1answer
1k views

WordPress keeps asking for connection information in localhost

I tried to find and answer but even though the problem is common I haven't been able to fix it, WP keeps asking me for the FTP info on my local LAMP environment when trying to install, delete or ...
3
votes
1answer
4k views

Editing Wordpress Permissions in LAMP - Ubuntu 11.10

I'm hosting a local version of my wordpress theme on Ubuntu 11.10. However, LAMP is installed in a directory that requires sudo privileges. When I try to add images or any outside content to my ...
3
votes
2answers
3k views

wp-admin redirecting to https, denying login

I use cloudflare via the cloudflare plugin, have SSL enabled. Enabled ssl within the wp-config.php file: define('WP_HOME','https://example.org'); define('WP_SITEURL','https://example.org'); $...
3
votes
1answer
13k views

How can I limit WordPress editor roles to a specific category?

We're trying to use WordPress as a light CMS system and we need to be able to section off parts of WordPress so that editors for one product aren't able to edit other products. Seems like out of the ...

1
2 3 4 5
8