OpenSolaris

Printable Version Enter a New Search
Bug ID 1236941
Synopsis *usermod* Would like usermod -c to not abort if the user is logged in.
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:security
Keywords abort | gecos | isbusy | logged | usermod
Responsible Engineer Darren Moffat
Reported Against 5.0 , 5.4 , 5.8
Duplicate Of
Introduced In solaris_2.0
Commit to Fix snv_15
Fixed In snv_15
Release Fixed solaris_nevada(snv_15) , solaris_10u3(s10u3_07) (Bug ID:2141837)
Related Bugs 6362461 , 5032639
Submit Date 2-February-1996
Last Update Date 19-May-2005
Description
	Usemod -c "new description" username aborts with the error
	
	        usermod: ERROR: username is in use.  Cannot change it.


	if username is logged in.  Since the gecos (description) field is 
	not neccesary to  the operation of the account would like to 
	remove the check for this case.


In addition, if root logs onto a host and tries to add itself to a secondary group with usermod -G, we see: 

	UX: usermod: ERROR: root is in use.  Cannot change it.

Since only root can change root's user account, this can be annoying .

 xxxxx@xxxxx.com 2002-11-07
Work Around
for usermod -G while logged in as root:
1.  log in as another user and su to root.
2.  use vi to edit /etc/group or admintool, etc., to modify group members.
However this can be more difficult to do if scripting for application scripting
 xxxxx@xxxxx.com 2002-11-07
Comments
N/A