Cheat Sheet Linux Permissions 0
Cheat Sheet Linux Permissions 0
Use this handy cheat sheet with examples for how to manage Linux users and permissions.
Create a user in groups "users" and "dev" Set default permission of files to 664
useradd --create-home --groups users dev ashley echo "umask 002" >> /etc/profile
Create a user with the UID 1337 Change ownership of a file ("example.txt")
to user ("ashley")
useradd --create-home --uid 1337 ashley
chown ashley:users example.txt