Create a user in ubuntu

Source: Internet
Author: User
Ubuntu new user experience 1. Add user (1) create a new user username # sudouseraddusername (2) set username password # sudopasswdusername2. add a user group to create a new group groupname # sudogroupaddgroup...

UbuntuNew user experience


1. add a user

(1) create a new user username
# Sudo useradd username
(2) set the username password.
# Sudo passwd username
2. add a user group
Create a new group groupname
# Sudo groupadd groupname
3. modify an account
(1) add username to group groupname
# Sudo usermod-g groupname username
(2) change the user password
First, the user's password expires.
# Sudo passwd-e username
After you log on, you will be prompted to change the password.
(3) modify folder permissions
# Sudo chown username: groupname dirname
The above are basic
The/home/chenshaoao folder must be created.
Sudo chmod 700-R/home/chenshaoao cannot be accessed by others
Sudo chown chenshaoao: chenshaoao cannot log on

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.