Chinaunix

标题: shell中如何用su [打印本页]

作者: comma7456    时间: 2003-06-28 16:58
标题: shell中如何用su
在shell程序中,如何引用UNIX命令su,谢谢。
作者: etherman    时间: 2003-06-29 00:03
标题: shell中如何用su
如果在linux下,可用sudo使shell以root权限运行
作者: coolscplayer    时间: 2003-06-29 02:03
标题: shell中如何用su
可以从root用户su到别的用户执行命令
例如从root用户su到informix用户,并停止数据库
用root用户执行su  informix  -c "onmode -ky"
作者: comma7456    时间: 2003-06-29 06:34
标题: shell中如何用su
如果不是root用户怎么办呢
作者: coolscplayer    时间: 2003-06-29 20:55
标题: shell中如何用su
那就不清楚了......
blush.....




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2