Piąte_21

 0    21 adatlap    michalesq
Nyomtatás játszik ellenőrizze magát
 
kérdés - válasz -
Remove rights to write in a file for the file owner
kezdjen tanulni
chmod u-w myfile
Remove rights to read in a file for the file owner
kezdjen tanulni
chmod u-r myfile
Add rights to read and write in a file for the file owner
kezdjen tanulni
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
kezdjen tanulni
chmod -r myfile
Remove rights to write in a file for the owner, group and others
kezdjen tanulni
chmod -w myfile
How to add group in the system?
kezdjen tanulni
groupadd finance
How to list all groups?
kezdjen tanulni
getent group or cat /etc/group
How to change owner for the file or catalog
kezdjen tanulni
chown user: group file or directory
Remove rights to write in a file for the group
kezdjen tanulni
chmod g-w myfile
Remove rights to read in a file for the group
kezdjen tanulni
chmod g-r myfile
Add rights to read and write in a file for the group
kezdjen tanulni
chmod g+rw myfile
Remove rights to write in a file for the others
kezdjen tanulni
chmod o-w myfile
Remove rights to read in a file for the others
kezdjen tanulni
chmod o-r myfile
Add rights to read and write in a file for the others
kezdjen tanulni
chmod o+rw myfile
How to add user to the group
kezdjen tanulni
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
kezdjen tanulni
chmod ug-x -R finance
How to remove execute rights on directories?
kezdjen tanulni
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
kezdjen tanulni
chmod a+r test1
What is setgid
kezdjen tanulni
permission bit - gives permission as a group
What is setuid
kezdjen tanulni
permission bit - gives permission as a user
How to add setgid?
kezdjen tanulni
chmod g+s test1

Kommentár közzétételéhez be kell jelentkeznie.