Szóste_21

 0    21 词汇卡    michalesq
打印 检查自己
 
问题 - 答案 -
How to add setuid?
开始学习
chmod u+s test1
How to add setgid with octo notation?
开始学习
chmod 2500 test1
How to add setuid with octo notation?
开始学习
chmod 4500 test1
How to secure file from being removed adding sticky bit?
开始学习
chmod +t test1
How to secure file from being removed adding sticky bit with octo notation?
开始学习
chmod 1777 test1
How to display umaks for the system?
开始学习
umask
Mask the write permissions for the "other" users, then touch file2
开始学习
umask 002
Mask write access for group members and the write for "other" permissions
开始学习
umask 022
Mask read and write permissions for the owner of a file
开始学习
umask 600
Mask read/write access for group for non-privileged users and other permissions and make these changes persistent
开始学习
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`" ]
开始学习
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?
开始学习
man passwd
How to display 5th page of the manual?
开始学习
man 5 passwd
How to look for the "word" in the documentation
开始学习
apropos word
Loading manuals to the cache
开始学习
mandb
directories contain information about documentation
开始学习
/usr/share/doc
locate passwd
开始学习
search everything in the system for passwd command
Update information about the program
开始学习
updatedb
How to display full absolute path for the specific program
开始学习
which passwd
How to look on manual page descriptions for the program
开始学习
whatis passwd
How to show everything about the program
开始学习
whereis passwd

您必须登录才能发表评论。