Service Building and Management (3)

Source: Internet
Author: User
  • Server
    192.168.9.38 work-1
    192.168.9.39 work-2
  • Add a regular user
    2.1 Creating a User folder
    [Email protected] ~]# mkdir/app/userhome-p
    [Email protected] ~]# useradd panp-d/APP/USERHOME/PANP
    useradd(选项)(参数)c<备注>:加上备注文字。备注文字会保存在passwd的备注栏位中;d<登入目录>:指定用户登入时的启始目录;D:变更预设值;e<有效期限>:指定帐号的有效期限;f<缓冲天数>:指定在密码过期后多少天即关闭该帐号;g<群组>:指定用户所属的群组;G<群组>:指定用户所属的附加群组;m:自动建立用户的登入目录;M:不要自动建立用户的登入目录;n:取消建立以用户名称为名的群组;r:建立系统帐号;s<shell>:指定用户登入后所使用的shell;u<uid>:指定用户id。

    2.2 Deleted together with the user's home directory

    [Email protected] ~]# Userdel-r PANP

  • 2.3

    Service Building and Management (3)

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.