r
readw
writex
execute
- | rwx | r-- | r-- |
---|---|---|---|
- inicates a files, d - a directory, l - a link |
permissions for the owner | permissions for members of the group owning th file | permissions for other users |
If you want to add or remove permissions to the user, use the command chmod
with a +
or –
, along with the r (read), w (write), x (execute) attribute followed by the name of the directory or file.
chmod +wx filename
chmod -rwx filename
- for group add
g
, for user addo
chmod g+w testfile
chmod o-rwx workfolder
cut -d: -f1 /etc/passwd
- list all the users