add user


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers add user
# 1  
Old 03-12-2008
add user

hi ..m new to linux..i want to know d shell script to add new user to the system without using adduser command..
# 2  
Old 03-13-2008
Edit the next files manually

On Linux, log in as root

Edit /etc/passwd to add user account information
Example username:x:1003:100:username:/home/username/bin/bash

Edit /etc/shadow to add shadow user account information. ie password
Example username:*:13869:::::: (no password here, you'll have to update it upon login)

Edit /etc/group to add group information
Example ldap:!:70:user1, user2

Edit /etc/default/useradd to check the default values for account

Add to the directory /etc/skel any more default files you wish to add

log in as that user name, update your password. Done

Moderators and experts are more than welcome to correct me here, if something is not correct.

Good luck
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Add a user with no password

I want to add a user like below in Linux. Please assist Below is the information from /etc/passwd file ---------- Post updated at 02:04 PM ---------- Previous update was at 10:05 AM ---------- Not sure why there is X in shadow file (6 Replies)
Discussion started by: prash358
6 Replies

2. Red Hat

User add problem

I could not create the user name with the number infront of... useradd 8siva useradd: Invalid account name `8siva' (3 Replies)
Discussion started by: gsiva
3 Replies

3. UNIX for Dummies Questions & Answers

User Add and Rights

Dears, I want to add a user and give him rights only for a spesific folder and take the files via ftp. The user shouldn't see the other files above or belov his folder. lets say I have "user". my directories: /a /b/d /c when I connect to the system I want this "user" to connect... (3 Replies)
Discussion started by: hubatuwang
3 Replies

4. Homework & Coursework Questions

Help on Add User Scripts

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: for each user Create a account formatted as last name first initial. Example (southerm) Ensure no... (0 Replies)
Discussion started by: moosemd
0 Replies

5. UNIX for Dummies Questions & Answers

Add new User in Unix ?!

Hello Experts, Guide me how to add new users (user id , passwd) in unix/Linux with different privileges like --> 1> It can be accessible by telnet (or where i should check/change to give different privileges like telnet or ssh2 or FTP) 2> can run only 1 command / script (2 Replies)
Discussion started by: darshak
2 Replies

6. UNIX for Advanced & Expert Users

Add User Problem

Hi all, I got a preconfigured Debian 4 (etch) box. When I add a user, it tells me it added and I can "su" as a new user but I can't login with it through SSH, SFTP, etc. Why? Thanks for your help. (30 Replies)
Discussion started by: mjdousti
30 Replies

7. AIX

Add user with restiction

Hi, I have created a directory and chown it to a group "test". I want to create a user with smit user and attribute to this user access only to this directory. Is this possible? Thanks. (6 Replies)
Discussion started by: simo
6 Replies

8. Solaris

how to add user

hey...I am new in solaris...so how can I add user on my sun solaris system I have root user I would like one more user similar to root...as I understand root is super user...how can I do that I know that there is useradd command but can anyone give me an example... thanks, cheers, (3 Replies)
Discussion started by: amon
3 Replies

9. UNIX for Dummies Questions & Answers

add user from web

I am trying to figure out how to add a user from the web (w/ PHP or PERL): is it possible? (2 Replies)
Discussion started by: ryanroth
2 Replies

10. UNIX for Dummies Questions & Answers

Add User and Password

hello i have some probelm in the Unix Sun system ....so anyone can u help me how to sovle the problem : 1.how to add the user name and password. 2.list out the command.. Thank You (1 Reply)
Discussion started by: alan thui
1 Replies
Login or Register to Ask a Question