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

Login <xxxxx> is currently in use

BR769215
Occasional Advisor

Login <xxxxx> is currently in use

Hello.

HP-UX 11.00 with security C2.
Executing command:
usermod -f 45 failed with message:

Login is currently in use.

What can I do?
5 REPLIES
Peter Godron
Honored Contributor

Re: Login <xxxxx> is currently in use

Get the user to log off and then try the command again.
The user account can not be modified whilst the user is logged on.
IT_2007
Honored Contributor

Re: Login <xxxxx> is currently in use

Ask the user to logout. If user is idle and doing nothing you can force the logout and do usermod. Since you are trying to modify credentials, user should be logged out.
spex
Honored Contributor

Re: Login <xxxxx> is currently in use

Hello,

If you have 'lsof' installed, you can use it to see which files has open:
# lsof -u

# who -Hu
to find the of the user's tty.

# kill -SIGHUP
to force the logout.

PCS
Michael Gleibman
Occasional Visitor

Re: Login <xxxxx> is currently in use

Well, apparently if this user just can't logout (it's root or oracle and you can't reboot the server), you can use /usr/sam/lbin/usermod.sam with -F switch which is now well documented, but very fortunately exists.

That will be /usr/sam/lbin/usermod.sam -F username

Michael
purushottamaher
Frequent Advisor

Re: Login <xxxxx> is currently in use

Hi,

 

i also faced the same issue while installating the SAP application but i got the easy command with solution here:

http://expertisenpuru.com/login-sidadm-is-currently-in-use-unable-to-modify-account-usersidadm-in-hpux/

you also can try this for your system error.