sudo and su
时间:2014-10-27 22:59:09
收藏:0
阅读:221
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"
评论(0)