Create a user in linux-general Linux technology-Linux technology and application information. For more information, see. 1. Add an ftp user
Useradd beijingftp-d/home/ftp
Passwd beijingftp
Perform the following operations with the root permission:
Service vsftpd start the FTP service provided by Linux
2. Add a common user
Useradd nagios? D/usr/local/nagios
Chown nagios. nagios/usr/local/nagios
Switch the user to a nagios user and add the access user for nagios:
Su nagios
Htpasswd? C/usr/local/nagios/etc/htpasswd. users nagiosadmin
The system will prompt you to enter the password twice, for example, entering nagios twice.
Note: This is the first time a user is created. The "-c" option is required to create a file for storing the user name and password. The "-c" option is not used when the user is added or the password is changed.
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