Create a unix account


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Create a unix account
# 1  
Old 07-09-2008
Create a unix account

Hi,

Please could some advise how to create a unix account, from the root account.

thanks you
# 2  
Old 07-09-2008
Usually useradd or adduser, on AIX mkuser or smitty user.
# 3  
Old 07-09-2008
Old facioned way

1. Add record to /etc/passwd
Example:
Code:
test:x:507:1:Test User:/export/home/test:/bin/bash

Format:
username: pasword (x - to use shadow file):user id:group id:description:home directory:default shell

For more info man -s 4 passwd

2. Add a record to /etc/shadow
Example:
Code:
test:NP:::::::

Format:
Does not matter unless you want to do something special. For more info man shadow

3. Create home directory

Code:
# mkdir <user home directory from the /etc/passwd>

Example:
Code:
# mkdir /export/home/test

4. Change permissions for home directory

Code:
# chown userid:groupid <user home directory>

Example:
Code:
# chown test:other /export/home/test

5. Make a password for the user

Code:
# passwd <user id>

Example:
Code:
# passwd test
New Password: 
Re-enter new Password: 
passwd: password successfully changed for test

PN.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Create another root account

Hi I would like to create another root account, for example root2. I added a new user named root2 and set it's uid and gid ( in /etc/passwd ) to 0. Then I logged in ( account root2 ) and the server asked to change the password, so I changed. And the problem happend. The password of both root... (15 Replies)
Discussion started by: bobochacha29
15 Replies

2. Red Hat

how to create hidden account in centos

hi everybody, iam using 32bit centos 6.2 on my machine, and i want to create hidden user 'test' , i mean to say while iam starting my centos at GUI mode, at that time that username 'test' should not appear at list of users, only i can use that username is command line. logging in through... (1 Reply)
Discussion started by: paruhang
1 Replies

3. Solaris

Help me create new user account

I want create user. That user should be login to any server without asking password. How? tell me in detail. :wall: (3 Replies)
Discussion started by: Navkreddy
3 Replies

4. Shell Programming and Scripting

Create account that expires in 3 days

I was hoping that somebody could help me out with this. I just deployed a new FTP server and I have a script that creates the new account. How would I go about having it expire 3 days after after creation? useradd -s /bin/false -m -p $pass $username (7 Replies)
Discussion started by: binary-ninja
7 Replies

5. Solaris

Create sft account in unix

How to create sftp account in UNIX end. Anyone guide me on this. (2 Replies)
Discussion started by: vijill
2 Replies

6. Linux

Auto create local account with winbind.

Hi, I have a set up a linux box connected to windows active directory using winbind. Everything is up and running fine. Now i wish to auto create a local account whenever a new user logs in. I have tried every possible way using the smb.conf to no avail. Any help would be appreciated. (1 Reply)
Discussion started by: d_ark
1 Replies

7. BSD

Through Unix FreeBSD to create mail account

Dear All, Someone can tell me how come can I set and create the mail account in the Unix? Also, it can be applied into the misrosoft outlook to send and receive the mail? Pls let me know that asap. Top Urgent Thanks Thanks Thanks :) (0 Replies)
Discussion started by: Daniel0623
0 Replies

8. UNIX for Dummies Questions & Answers

Create POP 3 Account via Shell

This may be so simple that I am overlooking it somewhere, but search as I may, I cannot find an answer anywhere! I am running a Linux box with sendmail and many different virtual domains. I cannot however, figure out how to setup a pop3 account for a specific domain. For example, I have a... (0 Replies)
Discussion started by: kermite
0 Replies

9. UNIX for Dummies Questions & Answers

How to create an account on UNIX-server

How can i create an account on my UNIX-server? 1. The files, can't be deleted by that person. (or better: he can only delete his own upped files, or can delete files, but can't see mine) 2. He can upload files. 3. I can delete and see everything. Hope you guys can help me. B.T.W. nice... (1 Reply)
Discussion started by: SEC
1 Replies
Login or Register to Ask a Question