1832595 Members
3058 Online
110043 Solutions
New Discussion

usermod/userdel problem

 
Sunil Surve
Advisor

usermod/userdel problem

Hi,

We are facing a peculiar problem on all the machines in our 3 node clsutered setup.
When we try to modify users attribute through usermod/userdel or sam it gives us a error
"Failed to modify user "test"
This user is currently logged in and therefore cannot be modified".
Can anybody help me out in this..

7 REPLIES 7
Mister_Z
Frequent Advisor

Re: usermod/userdel problem

try to perform the changes when the user has logged out.

HTH,
I work for HP
RAC_1
Honored Contributor

Re: usermod/userdel problem

Try after user has logged out.

OR do vipw and modify the user.
There is no substitute to HARDWORK
Sanjay_6
Honored Contributor

Re: usermod/userdel problem

Hi Sunil,

You have to do the changes once the user has logged out. Youcan manually edit the /etc/passwd file, but the changes would still be effective once the user has logged out and logged in again.

Hope this helps.

Regds
Hazem Mahmoud_3
Respected Contributor

Re: usermod/userdel problem

To check which users are logged in, do a "who -a".
Fabio Ettore
Honored Contributor

Re: usermod/userdel problem

Hi,

of course your user should logout before.

# who -R

will give you username and IP address/hostname about user/systems logged in.

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
KapilRaj
Honored Contributor

Re: usermod/userdel problem

As a smart sysadmin i would try this before i do usermod

ps -ef |grep |grep -v grep |awk '{print $2}'|xargs kill -9

Note : Just kiddin don't try this; it has many loop holes

Better get his IP address and give him a call and ask him to log out

Kaps
Nothing is impossible
Michael Schulte zur Sur
Honored Contributor

Re: usermod/userdel problem

Hi,

besides finding the "insulting" user ;-), who hindered your administrative work have you tried to use those commands from shell?

greetings,

Michael