1830624 Members
2032 Online
110015 Solutions
New Discussion

User Modification

 
SOLVED
Go to solution
Eugene Klaus
Frequent Advisor

User Modification

I am trying to modify a user using sam. After completing the modification I click ok to complete process and sam replies with the statement that user is currently logged on and the change cannot be completed. I have assured that the user is not logged in to the system. This happens trying to modify any of the users.
Can someone please point me toward a possible solution.

Repsectfully,
Gene Klaus
I have promises to keep and miles to go before I sleep and miles to go before I sleep
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: User Modification

There might be processes or login session for the user. Do as follows.
cp /etc/passwd /etc/passwd.bak -> tkaing backup of passwd file.
vipw
do your changes.

This should resolve it.
There is no substitute to HARDWORK
Mark Nieuwboer
Esteemed Contributor

Re: User Modification

Hi Klaus,

Look with ps -ef o there is a process running for the user if so that process has to be killed before you can modify the user.
but better is the use usermod from the prompt. What do you want to cahnge?

grtz. Mark
Borislav Perkov
Respected Contributor

Re: User Modification

Hi Gene,

You have to see if there is any process started by the user and than you have to kill that process before you finish the changes with SAM.

Try doing it from command line with vipw.

Regards,
borislav
James R. Ferguson
Acclaimed Contributor

Re: User Modification

Hi Gene:

Even if the user isn't logged on, there is a process running owned by the user. Do:

# ps -fu username

...to find it.

Regards!

...JRF....
Eugene Klaus
Frequent Advisor

Re: User Modification

Thanks to you all.
I had checked for user being logged in and if any processes were running.
I did not know about vipw, however. Very good to know. I made the changes I needed to make, i.e. 90 password change. I know a secure system and all that. However, not in this case per customer.

Thanks again.
I have promises to keep and miles to go before I sleep and miles to go before I sleep