Piąte_21

 0    21 карточка    michalesq
Печать играть Проверьте себя
 
Вопрос - Ответ -
Remove rights to write in a file for the file owner
начать обучение
chmod u-w myfile
Remove rights to read in a file for the file owner
начать обучение
chmod u-r myfile
Add rights to read and write in a file for the file owner
начать обучение
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
начать обучение
chmod -r myfile
Remove rights to write in a file for the owner, group and others
начать обучение
chmod -w myfile
How to add group in the system?
начать обучение
groupadd finance
How to list all groups?
начать обучение
getent group or cat /etc/group
How to change owner for the file or catalog
начать обучение
chown user: group file or directory
Remove rights to write in a file for the group
начать обучение
chmod g-w myfile
Remove rights to read in a file for the group
начать обучение
chmod g-r myfile
Add rights to read and write in a file for the group
начать обучение
chmod g+rw myfile
Remove rights to write in a file for the others
начать обучение
chmod o-w myfile
Remove rights to read in a file for the others
начать обучение
chmod o-r myfile
Add rights to read and write in a file for the others
начать обучение
chmod o+rw myfile
How to add user to the group
начать обучение
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
начать обучение
chmod ug-x -R finance
How to remove execute rights on directories?
начать обучение
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
начать обучение
chmod a+r test1
What is setgid
начать обучение
permission bit - gives permission as a group
What is setuid
начать обучение
permission bit - gives permission as a user
How to add setgid?
начать обучение
chmod g+s test1

Вы должны войти в свой аккаунт чтобы написать комментарий.