System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

usermod does not change the user id of the existing login

harjeet_3
Occasional Advisor

usermod does not change the user id of the existing login

i am trying to change the existing userid 105 of user named "trng" to 333
$usermod -u 333 trng
$error message display after using above command
$"login trng is currently in use"

Ques: what should do to change the user id in this case?
6 REPLIES
Dennis Handly
Acclaimed Contributor

Re: usermod does not change the user id of the existing login

I believe it is telling you that you must logout for both trng and hostmg, then change one.
skt_skt
Honored Contributor

Re: usermod does not change the user id of the existing login

Also a user cannot change the uid himself..
Jeeshan
Honored Contributor

Re: usermod does not change the user id of the existing login

you cannot change the user attribute properties while remain login.
a warrior never quits
sujit kumar singh
Honored Contributor

Re: usermod does not change the user id of the existing login

hi


login as root that is the superuser and do this part of the user admin that is changing the UID of the user.

also make sure that the new ID is not given to any of the existing users.


#grep 333 /etc/passwd

or u can login as root user and go to SAM to do this also.

using SAM as root

login as root and do

#sam

and go to the user and group admin menu of SAM.




regards
Sujit
sujit kumar singh
Honored Contributor

Re: usermod does not change the user id of the existing login

hi


u can also refer to the man page for usermod(1M) there is an option -F that forces u do the cahne even of the User ID or login is currently in use.


Regards
Sujit
sujit kumar singh
Honored Contributor

Re: usermod does not change the user id of the existing login

hello Sir,

Hope ur prob could get some help from us...


Please read the following thread to have a look if some points can be assigned. this can indeed help u getting good responses.



http://forums1.itrc.hp.com/service/forums/helptips.
do?#33

Regards
Sujit