Piąte_21

 0    21 kartičky    michalesq
Vytisknout hrát zkontrolovat se
 
otázka - odpověď -
Remove rights to write in a file for the file owner
začněte se učit
chmod u-w myfile
Remove rights to read in a file for the file owner
začněte se učit
chmod u-r myfile
Add rights to read and write in a file for the file owner
začněte se učit
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
začněte se učit
chmod -r myfile
Remove rights to write in a file for the owner, group and others
začněte se učit
chmod -w myfile
How to add group in the system?
začněte se učit
groupadd finance
How to list all groups?
začněte se učit
getent group or cat /etc/group
How to change owner for the file or catalog
začněte se učit
chown user: group file or directory
Remove rights to write in a file for the group
začněte se učit
chmod g-w myfile
Remove rights to read in a file for the group
začněte se učit
chmod g-r myfile
Add rights to read and write in a file for the group
začněte se učit
chmod g+rw myfile
Remove rights to write in a file for the others
začněte se učit
chmod o-w myfile
Remove rights to read in a file for the others
začněte se učit
chmod o-r myfile
Add rights to read and write in a file for the others
začněte se učit
chmod o+rw myfile
How to add user to the group
začněte se učit
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
začněte se učit
chmod ug-x -R finance
How to remove execute rights on directories?
začněte se učit
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
začněte se učit
chmod a+r test1
What is setgid
začněte se učit
permission bit - gives permission as a group
What is setuid
začněte se učit
permission bit - gives permission as a user
How to add setgid?
začněte se učit
chmod g+s test1

Chcete-li přidat komentář, musíte se přihlásit.