1

How can I list all users and groups and change their permissions?

I try to update Wordpress but my FTP user intranet_admin has not enough permissions and is unable to create a directory.

Update WordPress

Download the update from https://downloads.wordpress.org/release/en_US/wordpress-4.9.7.zip ...

Unzip the updated version ...

Directory could not be created.

The installation was not successfull

Edit: I found out that I can list all users with "cat /etc/passwd". I found this entry:

intranet_admin:x:1002:1000::/srv/www/htdocs/wp-intranet:/bin/bash

What do I have to change so that the user will have enough permissions for updating wordpress?


OT: Wordpress Problem solved!

I executed from within the Wordpress root directory:

find -type d -exec chmod 755 {} \;
find -type f -exec chmod 644 {} \;

and then:

chown -R wwwrun:ftp-users /path/to/my/wp-directory

This solved the problem and I was able to upgrade!

closed as off-topic by Jeff Schaller, slm Jul 10 '18 at 8:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, slm
If this question can be reworded to fit the rules in the help center, please edit the question.

2

The permission to create a particular directory is not tied to the user account as tightly as you seem to think it is. That is, it's not part of the account's entry in /etc/passwd.

A user can create (or delete) a directory in another directory if that other directory is writable by the user or by a group that the user belongs to. This would also permit the user to create/delete files in that directory.

Example:

$ ls -ld .
drwxr-xr-x  2 myself  staff  512 May  4 16:29 .

Here, only the user myself can create and delete files and directories while everyone is able to access the directory and list the directory content (the x and r permissions).

$ ls -ld .
drwxrwxr-x  2 myself  staff  512 May  4 16:29 .

In this case, the myself user as well as all users in the group staff can create and delete files and directories in the current directory.

Not the answer you're looking for? Browse other questions tagged or ask your own question.