LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-05-2020, 06:58 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Rep: Reputation: Disabled
Post 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.
 
Old 09-05-2020, 07:12 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by n00b_noob View Post
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 View Post
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.
 
Old 09-05-2020, 07:16 AM   #3
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
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.
 
Old 09-05-2020, 07:20 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by n00b_noob View Post
I want to create an account for a remote WordPress developer
That sounds legit.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] create vsftpd account from LDAP user account Ruwan Ranganath Linux - Newbie 1 07-05-2016 08:02 AM
[SOLVED] ext4 - permission to create/modify a file without 'delete' permission BeachHead Linux - General 4 06-08-2014 07:34 PM
"To add a new user account, log in to the root account" how do i do this (im new) pierce77x Linux - Newbie 4 12-28-2008 02:44 PM
Erased old account for new one; forgot to give admin priv to new account. RHLinuxGUY Ubuntu 3 08-10-2008 07:56 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration