[plug] NFS permissions / ownership issue

Bernard Blackham bernard at blackham.com.au
Thu Feb 17 15:42:55 WST 2005


On Thu, Feb 17, 2005 at 03:20:50PM +0800, Russell Steicke wrote:
> > Question:   what is the SIMPLEST way out of this conundrum?   I could 
> > change the workstation gid I suppose but then I have a user with a fair 
> > commitment to files/data already known under that gid.   I would prefer not 
> > to change the Debian side, unless people feel that would be easier... I 
> > have some 95GB of data on it for that user.
> 
> Changing the uid on the client isn't that hard, really, and is
> probably the solution that will surprise you the least in the long
> term.  Just make sure the user isn't logged in anywhere and edit
> /etc/passwd.  Then do a recursive chown in the home dir, change
> ownership of his crontab (/var/spool/cron/crontabs/username ?), remove
> everything in /tmp owned by the user, and look in /var/tmp as well.
> KDE saves some things in /var/tmp, at least on debian.

$ find / -uid 1003 -print0 | xargs -0 chown 1001
$ find / -gid 1003 -print0 | xargs -0 chgrp 1001

would do it too with a little less potential confusion.

Bernard.

-- 
 Bernard Blackham <bernard at blackham dot com dot au>



More information about the plug mailing list