您的位置:首页 > 运维架构 > Linux

linux用户管理命令

2011-08-30 23:02 465 查看
最近经常用的一些linux命令,mark一下,免得每次都要google一下用法。


Linux Users (http://www.ahinc.com/linux101/users.htm)

useradd - Adding a new user

usermod - Modifying existing user

userdel - Deleting a user

passwd - User's Password

Where user and group information stored

su - Switch User

Linux Permissions(http://www.ahinc.com/linux101/permission.htm)

Permissions

chmod - Changing Permissions

chown - Changing Owner

chgrp - Changing Group

Howto: Linux Add User To Group(http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/)

useradd Example - Add A New User To Secondary Group

useradd example - Add a new user to primary group

usermod example - Add a existing user to existing group

Howto: Linux creating user account under group(http://www.cyberciti.biz/faq/howto-linux-freebsd-unix-create-user-account-under-group/)

Task: Make sure group sales exists

Task: Add a new user tom to group sales

Remove Linux User From a Secondary Group ( Supplementary Groups )(http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/)

Step # 1: Find out user group identity

Step # 2: Remove user from printer group

how-to-kill-the-process-running-on-specific-port-in-linux(http://www.linuxquestions.org/questions/linux-general-1/how-to-kill-the-process-running-on-specific-port-in-linux-578408/)
, 延伸阅读lsof(http://heikezhi.com/2011/06/19/swiss-army-knife-of-unix-debugging-lsof/)

how-to-use-wall-to-send-broadcast-message-on-linux(http://www.go2linux.org/how-to-use-wall-to-send-broadcast-message-on-linux)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: