February 5, 2009

Error useradd: ERROR: Cannot update system files

Posted in Solaris at 4:11 pm by alessiodini

I received a e-mail where i read about this error on Solaris local zone.

#useradd -c “Oracle Software Owner” -u 303 -g oinstall -G dba,oper -d /export/home/oracle -s /bin/bash oracle
UX: useradd: ERROR: Cannot update system files – login cannot be created
#

It’s strange…

From useradd manpage:

FILES

/etc/datemsk
/etc/passwd
/etc/shadow
/etc/group
/etc/skel
/usr/include/limits.h
/etc/user_attr

i used a for cycle and i verified the existence of this files:

bash-3.00# 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:  cannot open: No such file or directory

the file /etc/user_attr was lost!
i copied this file from global zone then the useradd worked fine

Advertisements

8 Comments »

  1. Senthilkumar said,

    Thanks it worked..

    • alessiodini said,

      thank you for visit my blog! 🙂

  2. Stephan Mund said,

    Worked for me, too. Thanks!

  3. Thank you very much for the information great post, found it on Yahoo.

  4. thank! for this news it’s a good infomation !

  5. free trial said,

    wow.. i’m very

    enjoy reading your post. great.

  6. Kasey said,

    This is a good post, I was wondering if I could use this article on my website, I will link it back to your website though. If this is a problem please let me know and I will take it down right away.

    • alessiodini said,

      hi! you can link this on your website , i’m happy for this ^^


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: