Questions tagged [permissions]

for questions regarding permissions of different user groups in wordpress

140 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
335 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
218 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
1answer
627 views

Wordpress can't find temporary folder, but folder it's looking at has correct permissions

So, I've spent a couple of hours looking around the internet to try to figure out this problem, since it seems like a dumb one that would probably be a duplicate, but apparently it isn't. I'm hosting ...
3
votes
3answers
41k views

Forbidden 403 error, permission to access, unable to read htaccess

Recently clean-installed (with exception of themes and content/upload folders) an old wordpress to the latest Wordpress 4.2.2. I continue to get this error below whenever I load files such as style....
2
votes
0answers
41 views

Registration and Custom Post Types - How to synchronize information?

I am building a platform where service providers can offer their services to potential customers. Therefore, I have two user roles, one "customer" who can only create an account and read; ...
2
votes
0answers
129 views

WordPress debug.log is not updating

In my wp-config.php file: define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', true); @ini_set('display_errors',1); In my php.ini file, track errors is = Off /wp-...
2
votes
1answer
126 views

Problem in theme installing?

I am trying to install a downloaded theme in .zip format, on my Ubuntu OS when i click on upload & try to install it, it shows the error: Are you sure you want to do this? Please try again. ...
2
votes
1answer
1k views

Wordpress file permissions for editing on local Ubuntu development machine

I've seen a couple of solutions on this site that solved some permission problems, however, they seem that they create others, at least for me. My setup is a local wordpress installation on Ubuntu 14....
2
votes
0answers
77 views

Securing a multi-user permission structure

I'm currently working on a team that needs two distinct users from the same wpadmin group to be able to modify the wordpress files. Following the guide at Hardening WordPress (Codex), the following ...
2
votes
0answers
1k views

Plugin/Folder permission issues with Azure

Has anyone come across plugin issues when using Wordpress with Azure? I recently spun up a free wordpress install on azurewebsites.net, using PHP 5.4 and Wordpress 3.5. Once plugin in particualr, ...
1
vote
1answer
111 views

permission_callback has no effect

WP version is 5.5.3 I have 3 API routes set in a plugin that is used in an admin dashboard page. One route is meant to be used "publicly". I have two very curious issues happening: My 3 ...
1
vote
0answers
15 views

WordPress unable to create folders even though correct NTFS-rights are set

We are trying different NTFS-rights settings on a IIS-webserver, and we removed the Users-group from the folder containing all the sites. We then ran into the problem that a WordPress installation ...
1
vote
0answers
17 views

Fix permissions for users role

I have 4 users roles on my WordPress platform (role1, role2, role3, role4) Role 1 : administaror (full acces) Role 2 : proposal_editor (can create and publish posts, pages, templates, users...) Role ...
1
vote
1answer
101 views

allow non logged in user to upload images in media library

I have a website where I have a page that is accessible from any non logged in user . Its a form where I need to upload image through the form but when I try this its showing an error. But When I ...
1
vote
1answer
42 views

Plugin updates change folder permissions

On one client WordPress site, when I update any plug-ins, all files and directories within that plug-in get their permissions automatically set to 766 - which means they aren't accessible by the ...
1
vote
0answers
716 views

WordPress php mysql errors - errcode: 13 permission denied

I'm developing a WordPress based website using the latest XAMPP release from Oct 9 2019 with Apache 2.4.41, MySQL/MariaDB 10.4.8 and php 7.3.10 using localhost on a Windows 10 machine. Since updating ...
1
vote
4answers
9k views

WordPress and plugins can't update (“inconsistent file permissions” error)?

I have a problem - when I click on "Wordpress update", I receive this message: Downloading update from https://downloads.wordpress.org/release/wordpress-5.1-new-bundled.zip… Unpacking the update… ...
1
vote
1answer
180 views

Copying uploaded images not working in wordpress

I am trying to copy an image uploaded using Contact Form 7 to the uploads directory but this only produces an empty jpeg file with 0644 permissions even though the dev directory and the uploads ...
1
vote
0answers
302 views

How to force authors to 'submit for review'?

So currently when authors add a post they can publish it straight away. How can i change it so that all their posts need to be reviewed first? I've seen a few codes that can solve that but when it ...
1
vote
0answers
28 views

Linux Permissions and Ownership for WordPress

I installed WordPress via ftp upload to our server using my ftp user account. This account is different than the user that runs http/Apache. I am now trying to install themes and plugins and I am ...
1
vote
0answers
310 views

Invalid changeset UUID Wordpress

Login as Administrator and when I click the stopkeeper theme customization, I got Invalid changeset UUID error and redirect to page and show as Cheatin’ uh? Sorry, you are not allowed to ...
1
vote
1answer
117 views

Group ownership permissions don't allow web server to update Wordpress content

I have hardened my Wordpress settings as follows: All files/directories are owned by my user account (myUserName) and are group-owned by my web server (http) -- myUserName:http All folders have 755 ...
1
vote
0answers
449 views

No Permission to add new Page, Post or CPT with Admin role

After a server update, I got some problems on my website, running WordPress 4.9.2 I could not update WordPress version to 4.9.4, cause I was getting a message like this: Another update is ...
1
vote
0answers
33 views

Should Apache own /var/www/domain.com directory in WordPress?

In a lot of tutorials on WordPress installation I see apache:apache user:group given to the files in WordPress and the domain directory. Should it be Apache or some non-root user ?
1
vote
0answers
352 views

Rest api return all users (even without content) to all users

I'm using the REST API to return a list of all users (using Vue) on an Intranet site. I'm using this code to allow the API to return them: add_filter( 'rest_user_query', 'custom_rest_user_query' ); ...
1
vote
0answers
2k views

Allow Editor Role to Edit Media

On a multisite, I have an Editor role that is assigned to subsite1. When that user logs in to their assigned sub-site (that user is an 'editor' on that subsite) and goes to the Media page, they see ...
1
vote
1answer
272 views

What are the minimum role/permissions for freelance developer?

I'm looking to farm out some Wordpress site tweeks to an existing personal blog site. One ad requires cPanel access to the server and Admin access to the Wordpress site. Many ads don't list any ...
1
vote
0answers
95 views

How to change permissions of Wordpress and/or apache on macOS securely?

I have encountered a problem when trying to add an image to WordPress: "Unable to create directory wp-content/uploads/2017/05. Is its parent directory writable by the server?" . Thing is that I ...
1
vote
0answers
401 views

Cannot execute php files in wp-content

Something blocks my php files from executing in wp-content folder including plugins and themes folders. If I create a new php file in wp-content, and try to access it like this /wp-content/test.php, ...
1
vote
0answers
206 views

Get the 'Content Permission' roles as defined in a page

As you can see in the image, I have assigned student level 1 to a Page in WP admin. I am building a custom page.php on my own and I am trying to redirect the user back if they were not added. I try ...
1
vote
0answers
180 views

REST API: Limit Read Permissions for Default Endpoints

What is the best way to limit read access for certain endpoints? (we're assuming I already have an authentication method in place) For example, I have a custom post type 'resume', which is registered ...
1
vote
1answer
1k views

WordPress Permissions on my Local with Docker

I'm using docker and docker compose to install WordPress on my localhost and everything is working fine however i'm having problems when uploading new media and installing themes, new plugins e.t.c. ...
1
vote
0answers
469 views

Unable to Access WP Admin or Login buttons after Migration

After migrating from IIS server over to CentOS, I am having a hard time logging into my admin. When I did manage to login it said the User had no permission to login into WP Admin so it was the ...
1
vote
1answer
182 views

WP can't create new directory

Edit2: I'm renaming the question from "WP didn't add theme automatically" to "WP can't create new directory" because I found out that the problem is a little bit more complex. The same error is going ...
1
vote
1answer
69 views

Permission issue with custom post type - not added to menu - by plugin

I've created a custom post type and taxonomy like this... function register_post_type_products() { $labels = array( 'name' => _x('Produkter', 'post type general name'), ...
1
vote
1answer
157 views

Wordpress installation permission errors

I'm getting "Download failed. Failed to write request to temporary file." when I try to download plugins, and the plugins (that were working) are now unable to write what they need to (namely a ...
1
vote
0answers
824 views

Grant user rights to access certain tabs of a plugin

I found out a way to grant a user permission to access a single plugin but it has its flaws. Right now there are 6 tabs on the options page of this plugin. The user has access to all these tabs now. ...
1
vote
2answers
303 views

Hide images from anonymous user?

I'd like to set my WordPress (self-hosted) site up so that you can only view images if you're logged in. I want it to be impossible to view the images without being authorized as a user of the site. ...
1
vote
1answer
221 views

Permissions in a Local Dev Environment (OS X)

I wanted to enable WordPress auto-updates to work without FTP, so I added: define('FS_METHOD', 'direct'); to my wp-config.php. So in order to grant write privileges to WordPress's auto-updater, I ran ...
1
vote
1answer
2k views

Which directory should be writable to update wordpress?

I configured file permissions according to here like this. apache user runs server and wordpress user owns directory, this user is only used for this site. drwxr-xr-x 5 wordpress wordpress 4096 ...
1
vote
0answers
48 views

Filtering results for post_type tells me I don't have permission

I have a post type that for some reason I am unable to access. Here is the message I get when I try to access it: You do not have sufficient permissions to access this page. edit.php?post_type=alt ...
1
vote
0answers
158 views

Editor and contributor roles not correct after adding function

** RESTATED ** I am creating a bridge. The work involves a default installation of WordPress and a plugin to bridge a forum and WordPress. The forum provides all the account information. The ...
1
vote
0answers
90 views

Lock access to plugin options

While editing a post/page, that item is locked to the current user. How can something similar be accomplished with the settings pages? Take this for example. admin A is changing settings for a plugin,...
1
vote
0answers
604 views

Featured image not working, because of custom user role?

I've got a weird issue. My post thumbnails aren't working with a custom role. Images can be uploaded, and when viewing the media uploader they show as attached to the relevant post. However, when ...
1
vote
0answers
93 views

Moved Wordpress site to new server, directory permissions not working correctly

I built a Wordpress on my hosting space and then transferred it my clients server - followed all the instructions and pretty much everything works fine. The ONLY problem I have is that the directory ...
1
vote
2answers
2k views

Can't Install Standard Plugins on a Local MAMP installation

I've tried to install two standard plugsins (wp-touch was one). I have a local installation under OS 10.6 and MAMP which otherwise seems to work fine. I select the zip file but get the error message:...
1
vote
1answer
400 views

Saving file to disk receiving fopen error

I have a requirement to save a json file to disk. I've got as far a the below php. However i get the following error. fopen(/wp-content/content/uploads/artworks.js): failed to open stream: No ...
1
vote
1answer
1k views

Limit a user to have access to only specified pages?

I have several users that I would like to put in user groups. The reason for this is each user group will have access to a specific set of pages or a specific custom post type. I would like to be able ...
0
votes
0answers
18 views

How do I find out what the httpd process user account and the WordPress file ownership is in order to set file permissions?

I used phpinfo() to determine the server API. As it is CGI/Fast CGI, I figured that my shared hosting site uses a suexec approach. Please correct me if I'm wrong. Now, the official WordPress site has ...
0
votes
0answers
18 views

Restrict specific user for commenting if post has a specific taxonomy

today I tried a lot of things to fix this problem, I hope somebody can help me. I will explain my problem with example. : lets take i have a user named Maykl and I want to prevent Maykil to write ...