- Learning Linux Shell Scripting
- Ganesh Naik
- 84字
- 2021-06-25 22:02:46
Setuid
Another very interesting functionality is the setuid feature. If the setuid bit is set for a script, then the script will always run with the owner's privileges, irrespective of which user is running the script. If the administrator wants to run a script written by him by other users, then he can set this bit.
Consider either of the following situations:
$ chmod u+s file_name $ chmod 4777 file
The file permissions after any of the preceding two commands will be drwsrwxrwx.
推薦閱讀
- 圖解PLC控制系統梯形圖和語句表
- Cloud Analytics with Microsoft Azure
- 計算機網絡技術實訓
- 21天學通C#
- Visual Basic.NET程序設計
- LAMP網站開發黃金組合Linux+Apache+MySQL+PHP
- 人工智能:智能人機交互
- Machine Learning with Spark(Second Edition)
- 暗戰強人:黑客及反黑客工具快速精通
- Windows Server 2012 Automation with PowerShell Cookbook
- ARM? Cortex? M4 Cookbook
- 傳感器技術及實訓(第2版)
- ABB工業機器人虛擬仿真教程
- 從零開始學Visual C++
- Mac OS X 10.8 Mountain Lion中文版入門