useradd giving error in solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris useradd giving error in solaris 10
# 1  
Old 02-12-2010
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:
Code:
useradd -g oinstall -G dba -d /export/home/oracle oracle
UX: useradd: ERROR: Inconsistent password files.  See pwconv(1M).

I have tried pwconv command, but it is not giving any error. 'wc -l /etc/passwd /etc/shadow' is also giving output of 16 lines in each file. There was one more command that I ran (don't remember now) to check the file system, but no use. Please suggest what can I do.


Regards,
Amit

Last edited by Scott; 02-12-2010 at 09:37 AM.. Reason: Code tags
# 2  
Old 02-12-2010
Check whether oracle user is already exists on the system.
Where is your -u option for UID?
eg
useradd -u 101 -g 10 -d /export/home/fred -m -s /bin/ksh -c "Fred Smith" fred
# 3  
Old 02-12-2010
Quote:
Originally Posted by amitanshu.verma
Hi,

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

I have tried pwconv command, but it is not giving any error. 'wc -l /etc/passwd /etc/shadow' is also giving output of 16 lines in each file. There was one more command that I ran (don't remember now) to check the file system, but no use. Please suggest what can I do.


Regards,
Amit
Kindly check whether the group oinstall,dba exist or not ..? Else create those groups first & then create your ID. I hope for oracle installation oracle(user),dba(group) is sufficient.
# 4  
Old 02-12-2010
Try to run pwck as root, maybe this gives you an idea about what's wrong.
# 5  
Old 02-12-2010
Further checks, try the password file and group file syntax checkers. The error you describe usually comes from someone editing the password file with something other than "vipw".

Code:
pwck
grpck

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Audit useradd/userdel - Solaris 11

Linux audits in syslog, any time a user is deleted or added. However, I'm running a Solaris11 VM, and find no such entries. How can I enable auditing for useradd and userdel? Oracle's documentation on managing the auditing service, has been of no assistance. Thanks. Customizing What Is... (7 Replies)
Discussion started by: Nvizn
7 Replies

2. UNIX for Advanced & Expert Users

Solaris 10 useradd confusion[solved]

I installed Solaris 10 (8/11) and added an account for myself. It lives in /export/home/{name} but /etc/passwd shows it is /home/{name} where it seems to be mounted like a filesystem. I tried to create another account from the command line but it doesn't work the same way. I can't find... (7 Replies)
Discussion started by: dokhebi
7 Replies

3. Solaris

audit useradd userdel usermod in solaris 10

the previous thread on this problem was closed with no resolution/workaround that i could see...have there been any breakthroughs? :wall: (0 Replies)
Discussion started by: lisah66
0 Replies

4. Solaris

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 | -g group | -G group...] | -d dir | -s shell | -c comment | -m | -f inactive | -e expire | -A... (4 Replies)
Discussion started by: kkalyan
4 Replies

5. 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

6. Shell Programming and Scripting

Script working in AIX, but giving error in SOLARIS

Hi, My script is working fine in AIX but throwing an error in SOLARIS system. Here is the error message that I am getting when calculating the elapsed time: /home/x772525/FindETA.sh: start_mins = *60 + : syntax error . ((start_mins = $(expr substr "$j" 1 2)*60 + $(expr substr "$j" 4... (6 Replies)
Discussion started by: ajayakunuri
6 Replies

7. UNIX for Advanced & Expert Users

Problem with useradd, -p option in Solaris 10

Good day all. I'm trying to add a user with useradd and the -p option to assign a project name, but the result is that the user is created with an error message: "UX: useradd: user.root name should be all lower case or numeric." The command: useradd -d /export/home/tester -g rtpgrp -G... (2 Replies)
Discussion started by: BRH
2 Replies

8. 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

9. Solaris

audit useradd, userdel on solaris 10

I just want to audit and log to syslog when a user is added, removed or modified from the system. According to the docs I have: #/etc/security/audit_control dir:/var/audit flags:ua minfree:20 naflags:ua plugin:name=audit_syslog.so.1; p_flags=ua But neither syslog nor auditreduce -c ua... (7 Replies)
Discussion started by: glisha
7 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