Szóste_21

 0    21 fiche    michalesq
Imprimer jouer consultez
 
question - réponse -
How to add setuid?
commencer à apprendre
chmod u+s test1
How to add setgid with octo notation?
commencer à apprendre
chmod 2500 test1
How to add setuid with octo notation?
commencer à apprendre
chmod 4500 test1
How to secure file from being removed adding sticky bit?
commencer à apprendre
chmod +t test1
How to secure file from being removed adding sticky bit with octo notation?
commencer à apprendre
chmod 1777 test1
How to display umaks for the system?
commencer à apprendre
umask
Mask the write permissions for the "other" users, then touch file2
commencer à apprendre
umask 002
Mask write access for group members and the write for "other" permissions
commencer à apprendre
umask 022
Mask read and write permissions for the owner of a file
commencer à apprendre
umask 600
Mask read/write access for group for non-privileged users and other permissions and make these changes persistent
commencer à apprendre
vim /etc/bashrc and vim /etc/profile // change first umask to 066 (not privileged users)
What does it mean: if [$UID -gt 199 ] && ["`id -gn`" = "`id -un`" ]
commencer à apprendre
If the user id > 199 and id for the user and group is equal then user is not privileged, else it is priviledged
How to display manual of the application?
commencer à apprendre
man passwd
How to display 5th page of the manual?
commencer à apprendre
man 5 passwd
How to look for the "word" in the documentation
commencer à apprendre
apropos word
Loading manuals to the cache
commencer à apprendre
mandb
directories contain information about documentation
commencer à apprendre
/usr/share/doc
locate passwd
commencer à apprendre
search everything in the system for passwd command
Update information about the program
commencer à apprendre
updatedb
How to display full absolute path for the specific program
commencer à apprendre
which passwd
How to look on manual page descriptions for the program
commencer à apprendre
whatis passwd
How to show everything about the program
commencer à apprendre
whereis passwd

Vous devez vous connecter pour poster un commentaire.