Error in useradd cmd


 
Thread Tools Search this Thread
Operating Systems Solaris Error in useradd cmd
# 1  
Old 12-20-2011
Error Error in useradd cmd

Thanks to explain how to resolve this error:
useradd -d /export/home/kish -m -s /bin/ksh -c "kkalyan"
UX: useradd: ERROR: invalid syntax.
usage: useradd [-u uid [-o] | -g group | -G group[[,group]...] | -d dir |
-s shell | -c comment | -m [-k skel_dir] | -f inactive |
-e expire | -A authorization [, authorization ...] |
-P profile [, profile ...] | -R role [, role ...]]
-p project [, project ...] login
# 2  
Old 12-20-2011
You need to specify the username to be created ..
Code:
$ useradd -d /export/home/kish -m -s /bin/ksh -c "kkalyan" username

# 3  
Old 12-20-2011
thanks.after that i have give cmd 'passwd -f kkalyan'.
i loged out nd loged in again
i gave su kkalyan
it asked 4r password i gave kklayan it is showing errorSmilie

how to create password
# 4  
Old 12-20-2011
What is the error message you are getting ? Paste it here
# 5  
Old 12-20-2011
passwd -f only tells the system that the user must change the password on the next login; it does not set any default password.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl open(CMD, "cmd |"); buffering problem..

Hello, There's a third-party application's command that shows the application's status like "tail -f verybusy.log". When use the command, the output comes every 1-sec. but when it goes in a script below the output comes every 8-sec...What is the problem and how can I fix it? open(CMD,... (2 Replies)
Discussion started by: Shawn, Lee
2 Replies

2. Solaris

useradd: ERROR: Path must not start with '/home/'.

root@solaris11express:/home# useradd -d /home/oracle oracle UX: useradd: ERROR: Path must not start with '/home/'. and the user oracle is not being created... (2 Replies)
Discussion started by: kompcouk
2 Replies

3. Shell Programming and Scripting

cmd || echo "something" - doesn't exit uppon error

Hi guys, I have a shell script where I have the following: for i in ad0 ad1 do gpart create -s gpt $i || echo "Cannot create GPT partition on "$i". Exiting ..." gpart add -s 128 -t freebsd-boot $i || echo "Cannot add freebsd-boot partition on "$i". Exiting ..." gpart add -s 4G -t... (2 Replies)
Discussion started by: da1
2 Replies

4. Shell Programming and Scripting

useradd: ERROR: invalid syntax

Hello - I have the below script syncToken=None;\ forceDeleteUserHome=true;\ nisPwdDir=/etc;\ mirrorFilesLocation=/etc/connector_mirror_files;\ removeHomeDirContents=true;\ shadow=false;\ connectorPrompt=#;\ nisBuildDirectory=/var/yp;\ PGROUP=nogroup;\ COMMENTS='Comments\\ with\\... (2 Replies)
Discussion started by: manju--
2 Replies

5. Shell Programming and Scripting

Unix cmd prompt how to get old cmd run?

Hi, I am using SunOS I want to serch my previous command from unix prompt (like on AIX we can search by ESC -k) how to get in SunOs urgent help require. (10 Replies)
Discussion started by: RahulJoshi
10 Replies

6. UNIX for Dummies Questions & Answers

useradd on bash gives me error

Hi everyone, On executing the following command i always get this error >useradd -c 'none' -s # -u 5001 -f 100 -m -g 'wheel' -d /home/phildpop useradd: option requires an argument -- s Try `useradd --help' or `useradd --usage' for more information. (1 Reply)
Discussion started by: phildpop
1 Replies

7. Solaris

useradd giving error in solaris 10

Hi, I have installed Solaris 10 in my PC and now installing Oracle10, but while adding a user i am getting following error: useradd -g oinstall -G dba -d /export/home/oracle oracle UX: useradd: ERROR: Inconsistent password files. See pwconv(1M). I have tried pwconv command,... (4 Replies)
Discussion started by: amitanshu.verma
4 Replies

8. Shell Programming and Scripting

Error with Date cmd

Hi all, When i execute the below command its giving an error "date: Bad conversion" date \"+DATE %m/%d/%Y HEURE %H:%M:%S\" (4 Replies)
Discussion started by: krishna_gnv
4 Replies

9. UNIX for Dummies Questions & Answers

man <cmd> >> cmd.txt

I've noticed most of my postings here are because of syntax errors. So I want to begin compiling a large txt file that contains all the "man <cmd>" of the commands I most have problems with. I ran a "man nawk >> nawk.txt" but it included a header/footer on each "page". Anyone know how I'd be... (6 Replies)
Discussion started by: yongho
6 Replies

10. UNIX for Advanced & Expert Users

Useradd Error

Seems that I'm having issues adding a user on our AIX Version 5.1 server. When I added the user dh I get the following error: # useradd dh 3004-721 Could not create user. 3004-703 Check "/usr/lib/security/mkuser.sys" file. 3004-687 User "dh" does not exist. The /etc/passwd gets the... (1 Reply)
Discussion started by: Nico
1 Replies
Login or Register to Ask a Question