Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
google site



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-09-2010
Registered User
 

Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Need help with user creation

Hello guys,

i have a problem where i cant create a user and here some problem that i encounter.

1. /etc/passwd seems locked.
2. getting this error UX: useradd: ERROR: Cannot update system files - login cannot be created.



Code:
# useradd -u 47367 -g 1084 -c "user123" -d /local/home/user123 -s /bin/ksh -m user123
UX: useradd: ERROR: Cannot update system files - login cannot be created.


Code:
# ls -ld passwd ; ls -ld shadow
-rw-r--r--   1 root     sys        21192 Feb 25 05:21 passwd
-r--------   1 root     sys        11151 Mar  9 23:23 shadow
#

When i run pwck, i encounter this.


Code:
# pwck

lp:x:71:8:Line Printer Admin:/usr/spool/lp:
        Login directory not found

uucp:x:5:5:uucp Admin:/usr/lib/uucp:
        Login directory not found

nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
        Login directory not found
        Optional shell file not found

sitescope:x:64101:64101:userabc (userabc@abc.com):/local/home/userabc:/bin/sh
        Logname too long/short

but as per based on no1 problem, i cannot edit /etc/passwd. Looks like / is OK.


Code:
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d1       6197861 2263849 3872034    37%    /

the needed files for useradd also available.


Code:
# for i in datemsk passwd shadow group skel user_attr;
> do
> file /etc/$i
> done
/etc/datemsk:   ascii text
/etc/passwd:    ascii text
/etc/shadow:    ascii text
/etc/group:     ascii text
/etc/skel:      directory
/etc/user_attr: ascii text


Looking forward any suggestion from you guys.
Sponsored Links
  #2  
Old 03-10-2010
Registered User
 

Join Date: May 2008
Location: SINGAPORE.. The "FINE" City
Posts: 2,663
Thanks: 0
Thanked 6 Times in 6 Posts
You should be root to do this.
Use the useradd like this and see

Code:
useradd -u 47367 -g 18 -d /local/home/user123 -m -s /bin/ksh -c "user123"  user123

/local/home dire should be present, there should be no conflicting uid 47367 in the /etc/passwd file.you can grep to check. group 18 should be a valid group too. Whats your OS version, showrev ?
SEEMS like this file /etc/user_attr is missing or been deleted. Restore it and try
The Following User Says Thank You to incredible For This Useful Post:
sachin10 (05-09-2010)
  #3  
Old 05-09-2010
Registered User
 

Join Date: May 2010
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
thank you, it helped me...
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
User creation senmak AIX 6 1 Week Ago 12:03 PM
Reg. user creation kurva Solaris 3 07-13-2009 03:29 AM
Reg user creation rogerben Solaris 2 06-16-2009 06:34 AM
User Creation raynu.sharma Solaris 4 05-25-2009 04:37 AM
User creation lbreddy Solaris 7 03-08-2008 05:45 AM



All times are GMT -4. The time now is 07:58 AM.