Need to change guids and uids

Mark Phillips mark at phillipsmarketing.biz
Fri Jan 27 17:55:29 MST 2006


On Friday 27 January 2006 05:52 pm, Michael Garfias wrote:
> You've pretty much got it.
> 
> don't touch /proc.
The find command will change the /proc/xxxx files as well. How do I prevent 
that?
> 
> Have the users your changing logged out when you make the changes.
> 
> Otherwise it looks good.  Though I usually just edit /etc/passwd|
> group by hand.
> 
> On Jan 27, 2006, at 5:40 PM, Mark Phillips wrote:
> 
> > I have three Debian sarge machines on a network. Two servers
> > (softball and
> > gandalf) have kernel 2.6 and the laptop (latitude610) has kernel
> > 2.4. I wanted
> > to share some file space from the two servers, so I installed NFS
> > and BAM hit
> > the wall.
> >
> > I have no problems reading/writing from latitude610 to gandalf, but
> > I can only
> > read files on softball from latitude610.
> >
> > I believe that the reason is that the uid/guids for user mark are
> > the same on
> > gandalf and latitude601 (1000:1000), but different on softball
> > (1001:1001).
> > Can this be the reason?
> >
> > The plot thickens because there is already a user (emily) on
> > softball with a
> > guid/uid of 1000:1000.
> >
> > After some poking around, I came up with this possible solution:
> >
> > # On softball - change emily's uid/guid and files
> > usermod -u 1010 emily
> > groupmod -g 1010 emily
> >
> > # Change all files owned by emily to the new emily
> > find / -uid 1000 -exec chown -v emily:emily {} \;
> >
> > # On softball - change mark's uid/guid and files
> > usermod -u 1000 mark
> > groupmod -g 1000 mark
> >
> > # Change all the files owned by mark to the new mark
> > find / -uid 1001 -exec chown -v mark:mark {} \;
> >
> > Will this work?
> >
> > Also, when I do a find / -uid 1000 on softball, I get a lot of /
> > proc/xxxxx
> > hits. Do I need to change these as well, or will they go away when
> > I reboot?
> >
> > Should I make these changes after booting softball in single user
> > mode?
> >
> > Is there a better way to solve this problem? Samba? Quit and just
> > drink beer?
> >
> > Thanks!
> >
> > --
> > Mark Phillips
> > Phillips Marketing, Inc
> > mark at phillipsmarketing.biz
> > 602 524-0376
> > 480 945-9197 fax
> > ---------------------------------------------------
> > PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> > To subscribe, unsubscribe, or to change  you mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 

-- 
Mark Phillips
Phillips Marketing, Inc
mark at phillipsmarketing.biz
602 524-0376
480 945-9197 fax


More information about the PLUG-discuss mailing list