edit user

Michael Velez mikev777 at hotmail.com
Mon Mar 14 08:59:34 UTC 2005


> -----Original Message-----
> From: redhat-list-bounces at redhat.com 
> [mailto:redhat-list-bounces at redhat.com] On Behalf Of Muhammad Rizwan
> Sent: Monday, March 14, 2005 3:05 AM
> To: General Red Hat Linux discussion list
> Subject: edit user
> 
> Hello
> 
> Is it possible to edit full name of system user through command line?
> 
> Any idea?
> 
> Thanks
> 
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 

There are two ways edit the name of a user

If you want to change the full name of user foo:

usermod -c "New Name" foo

Or

chfn -f "New Name" foo

If you need to do more complex pattern changes, you should use the stream
editor 'sed'.  However, I think the above would satisfy what you need.

Documentation exists on both these commands in the man pages.

Michael




More information about the redhat-list mailing list