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

GECOS field updation in /etc/passwd problem

 
Highlighted

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
Highlighted
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...
Highlighted
Outstanding Contributor

Re: GECOS field updation in /etc/passwd problem

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


Pete

Pete
Highlighted
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...
Highlighted
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!!!!
Highlighted
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).