Piąte_21

 0    21 fiche    michalesq
skriva ut spela Kontrollera dig själv
 
Fråga - Svar -
Remove rights to write in a file for the file owner
börja lära sig
chmod u-w myfile
Remove rights to read in a file for the file owner
börja lära sig
chmod u-r myfile
Add rights to read and write in a file for the file owner
börja lära sig
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
börja lära sig
chmod -r myfile
Remove rights to write in a file for the owner, group and others
börja lära sig
chmod -w myfile
How to add group in the system?
börja lära sig
groupadd finance
How to list all groups?
börja lära sig
getent group or cat /etc/group
How to change owner for the file or catalog
börja lära sig
chown user: group file or directory
Remove rights to write in a file for the group
börja lära sig
chmod g-w myfile
Remove rights to read in a file for the group
börja lära sig
chmod g-r myfile
Add rights to read and write in a file for the group
börja lära sig
chmod g+rw myfile
Remove rights to write in a file for the others
börja lära sig
chmod o-w myfile
Remove rights to read in a file for the others
börja lära sig
chmod o-r myfile
Add rights to read and write in a file for the others
börja lära sig
chmod o+rw myfile
How to add user to the group
börja lära sig
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
börja lära sig
chmod ug-x -R finance
How to remove execute rights on directories?
börja lära sig
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
börja lära sig
chmod a+r test1
What is setgid
börja lära sig
permission bit - gives permission as a group
What is setuid
börja lära sig
permission bit - gives permission as a user
How to add setgid?
börja lära sig
chmod g+s test1

Du måste vara inloggad för att skriva en kommentar.