1835041 Members
2217 Online
110073 Solutions
New Discussion

Add User

 
SOLVED
Go to solution
Sharon Bi
Frequent Advisor

Add User

Dear all,

I am trying to add a new user in a trusted system. Either I do it in SAM, or do it in command line:
useradd -g 20 -d /groups/users/abc -c "INFO" -s /bin/ksh -p xxxxxxxx -o -u 2203 abc

I got the following error messag:

/etc/passwd file does not exist.

But actually that file does exist.

Could anyone give me a hand?


Thanks a lot in advance.
8 REPLIES 8
Rick Garland
Honored Contributor

Re: Add User

The /etc/shadow file is used in addition to the passwd file.
Rita C Workman
Honored Contributor

Re: Add User

Alot of possible reasons.
Here is one. It is possible the file is just plain corrupted.
Do you have a backup copy of it? Either a ~/passwd.bak or maybe something on a backup tape???
I'd first try to restore the file from a backup and then see where I am.

Regards
CHRIS_ANORUO
Honored Contributor

Re: Add User

It is not okay using command line as such in trusted system. The passwd filed has just '*' and the actual encrypted passwd with pointers is stored in /tcb/files/auth/(letter for username)
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Stefan Farrelly
Honored Contributor

Re: Add User


Yes, you can add users on a trusted system from the command line, works fine.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sharon Bi
Frequent Advisor

Re: Add User

I have restored the /etc/passwd file. But it didn't help. I still get the message saying that : /etc/passwd file does not exist.
Victor BERRIDGE
Honored Contributor

Re: Add User

try to add your user using vipw, then once done, type pwconv.
Tell us what happens

Best regards
Cheryl Griffin
Honored Contributor
Solution

Re: Add User

Check the trusted system database with:
# authck -p

If it continues to fail, you can quickly unconvert the system using:
# tsconvert -r

Add the user and convert it back to a trusted system.
"Downtime is a Crime."
Sharon Bi
Frequent Advisor

Re: Add User

Thanks, Cheryl. After I ran the command: "authck -p " it worked.

Is there any documentation about trusted system on HP site?