LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Create a new account and permission. (https://www.linuxquestions.org/questions/linux-security-4/create-a-new-account-and-permission-4175681593/)

n00b_noob 09-05-2020 06:58 AM

Create a new account and permission.
 
Hello,
I'm using CentOS 8 and Apache. My server hosting a WordPress website under the "/var/www/wp" directory. By default, Apache using "apache:apache" user and group. I want to add a new account and give the account a full permission on "/var/www/wp" directory. Which way is good for my goal?
Is it OK if I add the new account to "Apache" group?
The current directory permission is as below:
Code:

$ ls -lZ /var/www/
total 268
-rw-r--r--. 1 root  root  system_u:object_r:usr_t:s0                      266455 Oct  5  2012 apache_pb.svg.bak
drwxr-xr-x. 2 root  root  system_u:object_r:httpd_sys_script_exec_t:s0        6 Jun  9 00:46 cgi-bin
drwxr-xr-x. 2 root  root  system_u:object_r:httpd_sys_rw_content_t:s0          6 Jun  9 00:46 html
drwxrwxr-x. 7 apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0  4096 Sep  3 12:33 wp

Thank you.

ondoho 09-05-2020 07:12 AM

Quote:

Originally Posted by n00b_noob (Post 6162776)
I want to add a new account and give the account a full permission on "/var/www/wp" directory.

Why?
Quote:

Originally Posted by n00b_noob (Post 6162776)
Is it OK if I add the new account to "Apache" group?

Yes, it is OK. And it should work, too, if all files have the same group as user permsissions.

n00b_noob 09-05-2020 07:16 AM

Quote:

Originally Posted by ondoho (Post 6162779)
Why?
Yes, it is OK. And it should work, too, if all files have the same group as user permsissions.

Do you have a better idea? I want to create an account for a remote WordPress developer and he wants to create, remove and upload files.

ondoho 09-05-2020 07:20 AM

Quote:

Originally Posted by n00b_noob (Post 6162780)
I want to create an account for a remote WordPress developer

That sounds legit.


All times are GMT -5. The time now is 02:29 PM.