Piąte_21

 0    21 Datenblatt    michalesq
Drucken spielen überprüfen
 
Frage - Antworten -
Remove rights to write in a file for the file owner
Lernen beginnen
chmod u-w myfile
Remove rights to read in a file for the file owner
Lernen beginnen
chmod u-r myfile
Add rights to read and write in a file for the file owner
Lernen beginnen
chmod u+rw myfile
Remove rights to read in a file for the owner, group and others
Lernen beginnen
chmod -r myfile
Remove rights to write in a file for the owner, group and others
Lernen beginnen
chmod -w myfile
How to add group in the system?
Lernen beginnen
groupadd finance
How to list all groups?
Lernen beginnen
getent group or cat /etc/group
How to change owner for the file or catalog
Lernen beginnen
chown user: group file or directory
Remove rights to write in a file for the group
Lernen beginnen
chmod g-w myfile
Remove rights to read in a file for the group
Lernen beginnen
chmod g-r myfile
Add rights to read and write in a file for the group
Lernen beginnen
chmod g+rw myfile
Remove rights to write in a file for the others
Lernen beginnen
chmod o-w myfile
Remove rights to read in a file for the others
Lernen beginnen
chmod o-r myfile
Add rights to read and write in a file for the others
Lernen beginnen
chmod o+rw myfile
How to add user to the group
Lernen beginnen
usermod -G finance user // relog to enable access to finance
How to remove execute rights on files?
Lernen beginnen
chmod ug-x -R finance
How to remove execute rights on directories?
Lernen beginnen
chmod ug+X -R finance
How to add rights for all: owner, group and others for the file?
Lernen beginnen
chmod a+r test1
What is setgid
Lernen beginnen
permission bit - gives permission as a group
What is setuid
Lernen beginnen
permission bit - gives permission as a user
How to add setgid?
Lernen beginnen
chmod g+s test1

Sie müssen eingeloggt sein, um einen Kommentar zu schreiben.