Piąte_21

 0    21 flashcards    michalesq
print play test yourself
 
Question - Answer -
Remove rights to write in a file for the file owner
start learning
chmod u-w myfile
Remove rights to read in a file for the file owner
start learning
chmod u-r myfile
Add rights to read and write in a file for the file owner
start learning
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
start learning
chmod -r myfile
Remove rights to write in a file for the owner, group and others
start learning
chmod -w myfile
How to add group in the system?
start learning
groupadd finance
How to list all groups?
start learning
getent group or cat /etc/group
How to change owner for the file or catalog
start learning
chown user: group file or directory
Remove rights to write in a file for the group
start learning
chmod g-w myfile
Remove rights to read in a file for the group
start learning
chmod g-r myfile
Add rights to read and write in a file for the group
start learning
chmod g+rw myfile
Remove rights to write in a file for the others
start learning
chmod o-w myfile
Remove rights to read in a file for the others
start learning
chmod o-r myfile
Add rights to read and write in a file for the others
start learning
chmod o+rw myfile
How to add user to the group
start learning
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
start learning
chmod ug-x -R finance
How to remove execute rights on directories?
start learning
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
start learning
chmod a+r test1
What is setgid
start learning
permission bit - gives permission as a group
What is setuid
start learning
permission bit - gives permission as a user
How to add setgid?
start learning
chmod g+s test1

You must sign in to write a comment