(1)進入root用戶
su root
密碼:設置的root密碼
(2)修改文件權限
sudo chmod +777 file
(3)執行shell
./shellfile
(4)編寫shell
第一行:普通用戶 #!/bin/sh,root用戶 #!/bin/bash
(1)進入root用戶
su root
密碼:設置的root密碼
(2)修改文件權限
sudo chmod +777 file
(3)執行shell
./shellfile
(4)編寫shell
第一行:普通用戶 #!/bin/sh,root用戶 #!/bin/bash
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。