Piąte_21

 0    21 fiszek    michalesq
drukuj graj sprawdź się
 
Pytanie - Odpowiedź -
Remove rights to write in a file for the file owner
rozpocznij naukę
chmod u-w myfile
Remove rights to read in a file for the file owner
rozpocznij naukę
chmod u-r myfile
Add rights to read and write in a file for the file owner
rozpocznij naukę
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
rozpocznij naukę
chmod -r myfile
Remove rights to write in a file for the owner, group and others
rozpocznij naukę
chmod -w myfile
How to add group in the system?
rozpocznij naukę
groupadd finance
How to list all groups?
rozpocznij naukę
getent group or cat /etc/group
How to change owner for the file or catalog
rozpocznij naukę
chown user: group file or directory
Remove rights to write in a file for the group
rozpocznij naukę
chmod g-w myfile
Remove rights to read in a file for the group
rozpocznij naukę
chmod g-r myfile
Add rights to read and write in a file for the group
rozpocznij naukę
chmod g+rw myfile
Remove rights to write in a file for the others
rozpocznij naukę
chmod o-w myfile
Remove rights to read in a file for the others
rozpocznij naukę
chmod o-r myfile
Add rights to read and write in a file for the others
rozpocznij naukę
chmod o+rw myfile
How to add user to the group
rozpocznij naukę
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
rozpocznij naukę
chmod ug-x -R finance
How to remove execute rights on directories?
rozpocznij naukę
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
rozpocznij naukę
chmod a+r test1
What is setgid
rozpocznij naukę
permission bit - gives permission as a group
What is setuid
rozpocznij naukę
permission bit - gives permission as a user
How to add setgid?
rozpocznij naukę
chmod g+s test1

Musisz się zalogować, by móc napisać komentarz.