Linux Permissions: Difference between revisions
From James's Wiki
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
https://www.geeksforgeeks.org/linux-setfacl-command-with-example/ | https://www.geeksforgeeks.org/linux-setfacl-command-with-example/ | ||
create a new group | |||
sudo groupadd mynewgroup | |||
view groups of a user | |||
groups exampleusername | groups exampleusername | ||
show ids associated with groups etc | |||
id exampleusername | |||
add user to group | |||
usermod -a -G examplegroup exampleusername |
Revision as of 00:55, 18 July 2024
https://www.geeksforgeeks.org/linux-setfacl-command-with-example/
create a new group
sudo groupadd mynewgroup
view groups of a user
groups exampleusername
show ids associated with groups etc
id exampleusername
add user to group
usermod -a -G examplegroup exampleusername