Piąte_21

 0    21 flashcards    michalesq
In chơi tự kiểm tra
 
câu hỏi - câu trả lời -
Remove rights to write in a file for the file owner
bắt đầu học
chmod u-w myfile
Remove rights to read in a file for the file owner
bắt đầu học
chmod u-r myfile
Add rights to read and write in a file for the file owner
bắt đầu học
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
bắt đầu học
chmod -r myfile
Remove rights to write in a file for the owner, group and others
bắt đầu học
chmod -w myfile
How to add group in the system?
bắt đầu học
groupadd finance
How to list all groups?
bắt đầu học
getent group or cat /etc/group
How to change owner for the file or catalog
bắt đầu học
chown user: group file or directory
Remove rights to write in a file for the group
bắt đầu học
chmod g-w myfile
Remove rights to read in a file for the group
bắt đầu học
chmod g-r myfile
Add rights to read and write in a file for the group
bắt đầu học
chmod g+rw myfile
Remove rights to write in a file for the others
bắt đầu học
chmod o-w myfile
Remove rights to read in a file for the others
bắt đầu học
chmod o-r myfile
Add rights to read and write in a file for the others
bắt đầu học
chmod o+rw myfile
How to add user to the group
bắt đầu học
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
bắt đầu học
chmod ug-x -R finance
How to remove execute rights on directories?
bắt đầu học
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
bắt đầu học
chmod a+r test1
What is setgid
bắt đầu học
permission bit - gives permission as a group
What is setuid
bắt đầu học
permission bit - gives permission as a user
How to add setgid?
bắt đầu học
chmod g+s test1

Bạn phải đăng nhập để đăng bình luận.