How to create www user groups and users on pure linux systems
I believe many people simply use pure linux systems without installing any integrated environment. Here is how to create www user groups and users.
//Let's check first to see if there are www users
id www
id: www: no such user
//Add www user groups
groupadd www
groupadd: group 'www' already exists
//Start adding www users
# useradd -g www -s /sbin/nologin www
//Check again to see if there is already a www
# id www
uid=1001(www) gid=1000(www) group =1000(www)
Give www users access to the required directory
chown -R www.www directory path/
© Website copyright and disclaimer
1.[honmau Media] independently owns the copyright of all materials on relevant pages of this website;
2. No one is allowed to copy it without the express written permission of [honmau Media];
3. The articles that do not indicate "honmau Media" on this website are all from the Internet and are only for everyone to learn and refer;
4. If there is any infringement/violation/irregularity, please contact customer service QQ or email to delete it, please understand;
5.[honmau Media] reserves the right to correct, modify and update this statement at any time.legal notice