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

コメントを投稿するにはログインする必要があります。