Menu Close

Manage server file access permission

Create user group: groupadd -g Group_ID Group_Name

List all members of a group : grep ‘grpup-name-here’ /etc/group

assign a user to a group: sudo usermod -a -G groupName userName

connect group and folder: chgrp groupA ./folderA

assign permissions to a group: chmod g+rwx ./folderA

Remove a user account: userdel -r accountname

stop all processID of a user: pill -u accountname

allow the owner to access the folder: chmod -R 700 /path/to/folder

change the owner of a folder: chown user:user -R /path/to/folder

add a user who is restricted to a folder : adduser --home /restricted/directory restricted_user or

chown restricted_user:restricted_user /restricted/directory
chmod 755 /restricted/directory
cat /etc/group
compgen -u
compgen -g
https://doodle.com/signup