linux用户管理命令

来源:互联网 发布:keynote 模版 知乎 编辑:程序博客网 时间:2024/05/07 10:37

最近经常用的一些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)



原创粉丝点击