useradd command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers useradd command
# 1  
Old 01-03-2009
useradd command

what if useradd ? or useradd * is given as input????
if it wont execute.
then what are the values for name shud be avoided
like ? *
# 2  
Old 01-04-2009
See "man useradd" for your computer.

On my system this just states that the login field:
Must be printable characters.
Must not contain colon ":" or newline \n .


See also "man 4 passwd" (about the /etc/passwd file) for more rules about login name - including the length of the field.
Avoid plus sign "+" because it has special meaning to NIS.
Avoid space characters " " and anything recognised by the shell because it will give you grief.

Personally I just stick to lower case alphanumeric for compatibility with older systems (and some versions of ftp).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with useradd command

Hi, I want to create multiple user in same home directory. Is it possible ? If possible then please tell me how. Thanks in advance. (3 Replies)
Discussion started by: mnmonu
3 Replies

2. Shell Programming and Scripting

Using GID,Secondary ID in useradd command

Hi All, I am writing the script for user creation and want to use GID and Secondary group id from previous similar profile.Any one help me how we will take out GID & Secondary and use in useradd command. $ id -a test uid=6236(test) gid=999(local) groups=999(local),9003(testadmin) Above... (4 Replies)
Discussion started by: susindram
4 Replies

3. Solaris

useradd

if useradd command is deleted in solaris how do we add user (3 Replies)
Discussion started by: vivek_ng
3 Replies

4. Solaris

Purpose D option in useradd command

Hi Can any one tell about -D option in the useradd command? Thanks MaroV (3 Replies)
Discussion started by: vr_mari
3 Replies

5. Shell Programming and Scripting

useradd

Gurus, I need to add a user to all the machines. I need a script to do this. I did one but it does not allow me to su to root within a ssh session i open. It exists saying su: Sorry. Please let me know how i can do it. I do not have the freedom of using sudo either. Regards (4 Replies)
Discussion started by: earlysame55
4 Replies

6. Solaris

useradd

Hi, I need to add a new user who will only be able to access one single folder on my Solaris 9 system. Can this be achieved by using just useradd or do i need to fiddle with auth_attr table? TIA, Selma (4 Replies)
Discussion started by: Selma
4 Replies

7. UNIX for Advanced & Expert Users

useradd

Hi. due to some needs i gave a user the premission to use useradd command with sudo. i want to know if there is a way to let him set the initial password, without giving him the premission to use passwd command as root (sudo). maybe a way to set a default password for all the new users that... (2 Replies)
Discussion started by: dorilevy
2 Replies

8. UNIX for Dummies Questions & Answers

Who can help me how to add user without 'useradd' command

Can any one tell me if i dun want using 'useradd' command to add new user, it is have any command i can use to add a new user?and any extra step needed for my local environment? (3 Replies)
Discussion started by: foong
3 Replies

9. UNIX for Dummies Questions & Answers

useradd

I work on some hp ux 11.00 Servers. i have to add an user. i use the useradd command like follows: useradd -u 72022 -g 71095 -c " comment " -d /PACKAGE_NAME/home/username -s /usr/bin/sh username The command returns with error 3. The manpage means value number 3: Invalid argument supplied to an... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies

10. UNIX for Dummies Questions & Answers

Want to create new users without using "useradd" command and user Interaction.

Don't want to use useradd command to create a new user I am doing manual addition of accounts. Actually I am writing a script and I am working on RedHat7.1 system. What I am trying to do is run the script and pass all the values of the username password and group as command line parameters. Now... (2 Replies)
Discussion started by: syedifti
2 Replies
Login or Register to Ask a Question