Q: How to add new user accounts in Ubuntu server?
Below is the most simplest way to create a user account in ubuntu linux servers. This command creates the user without home directory or even a password.
user@ubuntu:~$ sudo useradd james
user@ubuntu:~$ sudo useradd james
Another way is "adduser" command. This command will prompt you to enter each information about the user like password, full name, phone numbers, etc.
user@ubuntu:~$ sudo adduser james Adding user `james' ...
Adding new group `james' (1001) ...
Adding new user `james' (1001) with group `james' ...
Creating home directory `/home/james' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: (input password for new user)
Retype new UNIX password: (input password for new user)
passwd: password updated successfully
Changing the user information for james
Enter the new value, or press ENTER for the default
Full Name []: (Input full name or enter to skip)
Room Number []: (Input room number or enter to skip)
Work Phone []: (Input work phone or enter to skip)
Home Phone []: (Input home phone or enter to skip)
Other []: (Input Other details or enter to skip)
Is the information correct? [Y/n] y
user@ubuntu:~$
0 comments:
Post a Comment