Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 427 Bytes

set-permissions-for-multiple-users.md

File metadata and controls

14 lines (11 loc) · 427 Bytes

Set permissions for multiple users (Set permission cho nhiều users, ví dụ user apache + user đang xài Git trên server)

do this as root

groupadd vpsusers gpasswd -a apache vpsusers gpasswd -a bob vpsusers # if you have a user named bob gpasswd -a alice vpsusers # if you have a user name alice

etc...

also do this as root

chown -R apache:vpsusers /your/directory

again, as root

chmod -R g+w /your/directory