Piąte_21

 0    21 speciālā zīme    michalesq
Drukāt spēlēt pārbaudiet sevi
 
jautājums - atbilde -
Remove rights to write in a file for the file owner
sākt mācīties
chmod u-w myfile
Remove rights to read in a file for the file owner
sākt mācīties
chmod u-r myfile
Add rights to read and write in a file for the file owner
sākt mācīties
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
sākt mācīties
chmod -r myfile
Remove rights to write in a file for the owner, group and others
sākt mācīties
chmod -w myfile
How to add group in the system?
sākt mācīties
groupadd finance
How to list all groups?
sākt mācīties
getent group or cat /etc/group
How to change owner for the file or catalog
sākt mācīties
chown user: group file or directory
Remove rights to write in a file for the group
sākt mācīties
chmod g-w myfile
Remove rights to read in a file for the group
sākt mācīties
chmod g-r myfile
Add rights to read and write in a file for the group
sākt mācīties
chmod g+rw myfile
Remove rights to write in a file for the others
sākt mācīties
chmod o-w myfile
Remove rights to read in a file for the others
sākt mācīties
chmod o-r myfile
Add rights to read and write in a file for the others
sākt mācīties
chmod o+rw myfile
How to add user to the group
sākt mācīties
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
sākt mācīties
chmod ug-x -R finance
How to remove execute rights on directories?
sākt mācīties
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
sākt mācīties
chmod a+r test1
What is setgid
sākt mācīties
permission bit - gives permission as a group
What is setuid
sākt mācīties
permission bit - gives permission as a user
How to add setgid?
sākt mācīties
chmod g+s test1

Lai ievietotu komentāru, jums jāpiesakās.