Operating System - HP-UX
1753506 Members
5141 Online
108795 Solutions
New Discussion юеВ

Re: GECOS field updation in /etc/passwd problem

 
SUBRATAhp-unix
Advisor

GECOS field updation in /etc/passwd problem

Hi,

Can anybody help me to resolve this issue. While i am trying to update the gcos field of some apps user it is showing below msg.

#usermod -c "wyz" batch

Login batch is currently in use

any clue???
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: GECOS field updation in /etc/passwd problem

Hi:

You can perform the 'usermod' as long as the user (account) is actively logged-in.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: GECOS field updation in /etc/passwd problem

I think James meant to say "can not" rather than "can".


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: GECOS field updation in /etc/passwd problem

Hi (again):

Thanks, Pete!

Yes, indeed, I meant to write:

You CANNOT perform the 'usermod' as long as the user (account) is actively logged-in.

Regards!

...JRF...
vishnu.khandare
Respected Contributor

Re: GECOS field updation in /etc/passwd problem

Hi Subrata,

When user is logged in, U cannot modify the field or parameters of the users, like, group,shell and so on....

You must logout from the user to make changes.

Hope this solves ur issue

Regards
Vishnu Khandare
You should deserve before U desire!!!!
Dennis Handly
Acclaimed Contributor

Re: GECOS field updation in /etc/passwd problem

>JRF: You CANNOT perform the 'usermod' as long as the user is actively logged-in.

You just need to use "-F" option or a different command, chfn(1).