Piąte_21

 0    21 fiche    michalesq
Imprimer jouer consultez
 
question - réponse -
Remove rights to write in a file for the file owner
commencer à apprendre
chmod u-w myfile
Remove rights to read in a file for the file owner
commencer à apprendre
chmod u-r myfile
Add rights to read and write in a file for the file owner
commencer à apprendre
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
commencer à apprendre
chmod -r myfile
Remove rights to write in a file for the owner, group and others
commencer à apprendre
chmod -w myfile
How to add group in the system?
commencer à apprendre
groupadd finance
How to list all groups?
commencer à apprendre
getent group or cat /etc/group
How to change owner for the file or catalog
commencer à apprendre
chown user: group file or directory
Remove rights to write in a file for the group
commencer à apprendre
chmod g-w myfile
Remove rights to read in a file for the group
commencer à apprendre
chmod g-r myfile
Add rights to read and write in a file for the group
commencer à apprendre
chmod g+rw myfile
Remove rights to write in a file for the others
commencer à apprendre
chmod o-w myfile
Remove rights to read in a file for the others
commencer à apprendre
chmod o-r myfile
Add rights to read and write in a file for the others
commencer à apprendre
chmod o+rw myfile
How to add user to the group
commencer à apprendre
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
commencer à apprendre
chmod ug-x -R finance
How to remove execute rights on directories?
commencer à apprendre
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
commencer à apprendre
chmod a+r test1
What is setgid
commencer à apprendre
permission bit - gives permission as a group
What is setuid
commencer à apprendre
permission bit - gives permission as a user
How to add setgid?
commencer à apprendre
chmod g+s test1

Vous devez vous connecter pour poster un commentaire.