[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changing user name



On Thu, May 18, 2000 at 05:19:09PM -0500, Kent West wrote:
> Chanop Silpa-Anan wrote:
> 
> > Once upon a time, I heard Brian say
> >
> > > Cameron Matheson said:
> > >
> > >  >Hey,
> > >  >
> > >  >I want to change my user name from fatmike to cmatheson.  Is this
> > >  >possible?
> >
> > I think the easierway is edit your /etc/password and change username and
> > home directory feild, you should find it easily :)
> >
> > Then rename your old home dir to new homedir, that's it.
> 
> Will the file ownership/permissions remain intact? I suspect they will,
> thinking that the permissions are based on the user ID instead of the
> username, but I'm not sure.
> 

yes owners/groups are stored as numeric id in the filesystem, ls just
maps it to a real username based on /etc/passwd that is why
/etc/passwd must be world readable (among other reasons)


-- 
Ethan Benson
http://www.alaska.net/~erbenson/



Reply to: