请问su和su -的区别是什么?多谢多谢!

由 txjking 在 01-23-2003 14:55 发表:

请问su和su -的区别是什么?多谢多谢!

?


由 hgkrt 在 01-23-2003 15:37 发表:


su -提供一个完全干净的环境...不用.bashrc等好像


欢迎访问我的个人主页!!!

主机:

http://hgkrt.minidns.net/

网上空间:

http://www.paw.hi-ho.ne.jp/hgkrt


由 tram 在 01-23-2003 15:40 发表:


su - xxx

就是切换到xxx用户,

su

不带参数,就是切换到root

su - root

和su是一样的,不过su -还要有一个登陆的过程。

在su的man页里说:

Invoked without a username, su defaults to becoming the super user. The optional argument - may be used to provide an environment similiar to what the user would expect had the user logged in directly.


LFS全套中文文档:http://lfs.linuxsir.org(主力)

LFS 英文站点镜像:http://lfs.cosoft.org.cn

二笔输入法 for Linux: http://ebf.cosoft.org.cn


由 txjking 在 01-23-2003 15:44 发表:

十分感谢

!


由 大熊宝宝 在 01-23-2003 18:00 发表:


path啊 SU -这样如果你登陆用户是ROOT 那你的PATH也是ROOT

如果没有- 那你还是原来用户的PATH


请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.

新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了


由 tram 在 01-23-2003 21:58 发

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus