-
October 18th, 2002, 12:46 PM
#1
Member
Creating a new user with the Command Line (Linux)
Hiya All,
Just a quick tutorials on how to create a new user account for the command line in Linux.
-> open the terminal
-> su for root access
-> type 'adduser [account name]' (without quotes)
-> type passwd [account name] (again without quotes)
-> type in your password twice when it prompts you.
-
October 18th, 2002, 12:58 PM
#2
Thats a very short and very basic tutorial and ive only started learning Linux, but i cant talk, i havent done a tut yet!
r3b00+
-
October 18th, 2002, 01:03 PM
#3
-
October 18th, 2002, 01:14 PM
#4
unixjim -- Maybe you could include how to add a user to the system without using 'adduser' or 'useradd'? You could explain what each field in the passwd file means, and how to enter those things manually. You could talk about the skel files and where they come from, and you could talk about the group file, and how to edit that manually. Just some suggestions.
/* You are not expected to understand this. */
-
October 18th, 2002, 01:21 PM
#5
god!!!
too short to be called a tutorial !!!!
lets add somthing to it
---------------------------------------------------------------------------------------------------------------
User data and group information are traditionally stored in two files: /etc/passwd and /etc/group . The /etc/passwd file stores usernames, encrypted passwords, real names, and other user information. The /etc/group file stores group information and lists the groups of which the user is a member.
There are several methods you can use to add a user. The first, and probably the most difficult, is to make an entry in the /etc/passwd file (and /etc/group , if necessary) for the new user. The passwd entry looks something like this:
markk:0QLp0ZyXo.shE:500:500:Mark F. Komarinski:/home/markk:/bin/tcsh
To enter a new user, simply add your own line. Replace the entire encrypted field with an asterisk ( * ) or some other character. Be sure the UID is unique. Now, create the home directory for the user you entered, copy files from /etc/skel to the home directory, and chown all the files in the home directory to the new user. Once the user exists, give the user a password by using the command as root:
passwd markk
Assuming that markk is the UID you created, this will put a valid encrypted password in the passwd field, and the user can now log in. The first thing the new user should do is change his password.
-
October 18th, 2002, 02:20 PM
#6
What form of encryption does nix use for the passwd's?
Is it diff for each port?
much_props::black_death&unixjim
yeah, I\'m gonna need that by friday...
-
October 18th, 2002, 03:34 PM
#7
Originally posted here by tampabay420
What form of encryption does nix use for the passwd's?
Is it diff for each port?
much_props::black_death&unixjim
Yup. In fact, each port generally will allow you to change the encryption level you want to use. Options that usually exist are:
Standard DES
Multiple iteration DES
MD5
Most Linux/BSD distros will also let you use a shadow file.
shadow file n. -- A file located at /etc/shadow within several Linux/BSD distributions that contains the actual encrypted passwords for each user from the passwd file. The encrypted password in the passwd file (2nd entry on each line) is replaced with a single 'x' when a shadow file is being used. This is very helpful as the passwd file should be readable by everyone (only the password should be kept private). The shadow file then contains an entry for each user in the password file that consists of username:encrypted_password. Shadow files are usually kept at the highest permission level.
/* You are not expected to understand this. */
-
October 18th, 2002, 03:40 PM
#8
yeah, I\'m gonna need that by friday...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|