首页 > 其他 > 详细

sudo and su

时间:2014-10-27 22:56:49      阅读:364      评论:0      收藏:0      [点我收藏+]

sudo bash : change the current user into root

su u1: change the current user into u1

useradd: add new user into system

userdel: delete a user from system

groups: check a user‘s group information

chown: chang a file‘s owner

chmod: chang a file‘s mod

gpasswd -a u3 foo: add user into a group

su u1 -c "./objput doc<testfile"

 

sudo and su

原文:http://www.cnblogs.com/airwindow/p/4055330.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!