Operating System - HP-UX
1836796 Members
2643 Online
110110 Solutions
New Discussion

useradd returns Internal Error

 
SOLVED
Go to solution
Richard Highness_1
New Member

useradd returns Internal Error

Hello, all...

I returned today to create a couple of new users, and when I try to create them from sam or from the command line, useradd (or useradd.sam) tells me Internal Error.

The perms on the file are:

-r-xr-xr-x 1 bin bin 53248 Dec 14 1999 /usr/sbin/useradd

I've searched the archives and haven't seen anyone with the same problem.

I can manually add an entry to /etc/passwd and it works, but that's not really my idea of fun...

Can anyone help?
4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: useradd returns Internal Error

Hi Richard,

Verify that you don't have a corrupt passwd file - run
pwck
or a corrupt group file - run
grpck
or a corrupt tcb entry - run
authck

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Richard Highness_1
New Member

Re: useradd returns Internal Error

Jeff:

I ran pwck and grpck without any problems (a couple of accounts w/o home directories, but...)

My box isn't a trusted system, so the authck doesn't do anything.
Sridhar Bhaskarla
Honored Contributor
Solution

Re: useradd returns Internal Error

Hi,

Looks like your useradd defaults file may be having issues. Look at cat /etc/default/useradd. Rename it and copy a good one from /usr/newconfig/etc/default/useradd and try. If it works, then you may have to customize it as per your pervious configuration. Also make sure you have a file called /etc/.pwd.lock and there is none called /etc/ptmp. Editing /etc/passwd with 'vi' is not to be done. You will need to use vipw command if at all you want to add the logins. One of the above may work for you.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Richard Highness_1
New Member

Re: useradd returns Internal Error

Sri:

Thank you! The useradd default file was corrupt. Recreating it worked perfectly!