(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删除。