Szóste_21

 0    21 fiche    michalesq
Skriv ut spille sjekk deg selv
 
spørsmålet - svaret -
How to add setuid?
begynn å lære
chmod u+s test1
How to add setgid with octo notation?
begynn å lære
chmod 2500 test1
How to add setuid with octo notation?
begynn å lære
chmod 4500 test1
How to secure file from being removed adding sticky bit?
begynn å lære
chmod +t test1
How to secure file from being removed adding sticky bit with octo notation?
begynn å lære
chmod 1777 test1
How to display umaks for the system?
begynn å lære
umask
Mask the write permissions for the "other" users, then touch file2
begynn å lære
umask 002
Mask write access for group members and the write for "other" permissions
begynn å lære
umask 022
Mask read and write permissions for the owner of a file
begynn å lære
umask 600
Mask read/write access for group for non-privileged users and other permissions and make these changes persistent
begynn å lære
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`" ]
begynn å lære
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?
begynn å lære
man passwd
How to display 5th page of the manual?
begynn å lære
man 5 passwd
How to look for the "word" in the documentation
begynn å lære
apropos word
Loading manuals to the cache
begynn å lære
mandb
directories contain information about documentation
begynn å lære
/usr/share/doc
locate passwd
begynn å lære
search everything in the system for passwd command
Update information about the program
begynn å lære
updatedb
How to display full absolute path for the specific program
begynn å lære
which passwd
How to look on manual page descriptions for the program
begynn å lære
whatis passwd
How to show everything about the program
begynn å lære
whereis passwd

Du må logge inn for å legge inn en kommentar.