You must log on to linuxuseradd to create a user. Otherwise, no corresponding folder will be generated in home.
Source: Internet
Author: User
You must log on to linuxuseradd to create a user. Otherwise, the corresponding folder-Linux Enterprise Application-Linux server application information will not be generated in the home. For details, see the following. After setting up ftp today, I created a new user test and created it with useradd. I did not expect ftp login to be unavailable. A prompt is displayed.
500 OOPS: cannot change dictionary:/home/username
Go to the/home directory and check whether the user's directory has been created.
$ Su username is required. The corresponding folder is displayed after login.
Summary: Users created by linux useradd must be logged in; otherwise, no corresponding folders will be generated in home.
Note: New methods have been found.
You can also
$ Sudo useradd usename-m
In this way, the home directory of the folder will be created when the user is created.
$ Sudo useradd usename-d \ etc \
In this way, when creating a user, specify its home directory as another folder. Here I will use \ etc as an example.
-M is used to create the user's main directory, which does not exist.-d is used to specify a directory for the user, which already exists.
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