1856581 Members
33671 Online
104113 Solutions
New Discussion

Unable to readd user

 
SOLVED
Go to solution
steven Burgess_2
Honored Contributor

Unable to readd user

Hi again

I have been asked a question regarding security and user id's. We have a couple of user id's that, by the looks of things were not removed cleanly at some stage (missing -r option with userdel). We now need to re add these id's but are having a little trouble.

The system is trusted

I have checked in /tcb/files/auth/* for any files with regard to the id's. Nothing found.

Have checked for entries in /etc/passwd. Nothing found

If i try userdel -r uid i get the message

login `uid` does not exist

If i try to add the id i get the message

/home/uid is not a valid directory

I have tried to complete this also using sam but get the same error messages

any ideas?
take your time and think things through
6 REPLIES 6
Scott Van Kalken
Esteemed Contributor

Re: Unable to readd user

do an authck -a to check the consistency of the tcb files.


Then I'd just add the user again forcing the creation of the home directory.
Michael Tully
Honored Contributor

Re: Unable to readd user

Hi Steven,

It seems that perhaps the user(s) already have a directory.
You can check the password file by also using 'pwck -s'

HTH
-Michael
Anyone for a Mutiny ?
steven Burgess_2
Honored Contributor

Re: Unable to readd user

sh: /home/H288ETP: The specified path name is not a directory.

useradd -m

'/home/H288ETP' is not a valid directory

take your time and think things through
Michael Tully
Honored Contributor
Solution

Re: Unable to readd user

Does this entry appear in the password file?
Does a file exist /home/H288ETP instead of
a directory?
Anyone for a Mutiny ?
steven Burgess_2
Honored Contributor

Re: Unable to readd user

Michael

If i could assign more than 10 points i would

Thanks for your help this evening

Steve

ps

I've got a problem in sydney at the moment with some scanning cradles, fancing nipping over there and giving them a lift

Cheers
take your time and think things through
Michael Tully
Honored Contributor

Re: Unable to readd user

Hi,

Your welcome! It is usually far quicker to
get answers here than to place them through
the response centre.

BTW I am in Sydney.....
-Michael
Anyone for a Mutiny ?