Szóste_21

 0    21 schede    michalesq
Stampa Gioca Testa il tuo livello
 
Domanda - Risposta -
How to add setuid?
inizia ad imparare
chmod u+s test1
How to add setgid with octo notation?
inizia ad imparare
chmod 2500 test1
How to add setuid with octo notation?
inizia ad imparare
chmod 4500 test1
How to secure file from being removed adding sticky bit?
inizia ad imparare
chmod +t test1
How to secure file from being removed adding sticky bit with octo notation?
inizia ad imparare
chmod 1777 test1
How to display umaks for the system?
inizia ad imparare
umask
Mask the write permissions for the "other" users, then touch file2
inizia ad imparare
umask 002
Mask write access for group members and the write for "other" permissions
inizia ad imparare
umask 022
Mask read and write permissions for the owner of a file
inizia ad imparare
umask 600
Mask read/write access for group for non-privileged users and other permissions and make these changes persistent
inizia ad imparare
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`" ]
inizia ad imparare
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?
inizia ad imparare
man passwd
How to display 5th page of the manual?
inizia ad imparare
man 5 passwd
How to look for the "word" in the documentation
inizia ad imparare
apropos word
Loading manuals to the cache
inizia ad imparare
mandb
directories contain information about documentation
inizia ad imparare
/usr/share/doc
locate passwd
inizia ad imparare
search everything in the system for passwd command
Update information about the program
inizia ad imparare
updatedb
How to display full absolute path for the specific program
inizia ad imparare
which passwd
How to look on manual page descriptions for the program
inizia ad imparare
whatis passwd
How to show everything about the program
inizia ad imparare
whereis passwd

Devi essere accedere per pubblicare un commento.