NFS mount permissions when user ids don't match
Bill Moseley
moseley at hank.org
Wed Oct 24 02:43:39 UTC 2007
On Tue, Oct 23, 2007 at 09:17:23PM -0500, Brian Fahrlander wrote:
> Bill Moseley wrote:
> > I have a machine that exports a user's directory. The user
> > is id=1000 on that machine.
> >
> > I want to allow any users on the client machine to mount the
> > directory.
> >
> > The problem, I think, is that uid 1000 on the client (ubuntu) machine
> > is user admin, so a user can run mount /mnt/photos but then it gets
> > mounted as:
> >
> > drwx------ 6 admin users 4096 1969-12-31 16:00 photos
> >
> > Is there a way to mount this so a normal user can have access?
>
> Make all the users who'll use that file, in the same group, and make
> sure the group access is +rw.
when that directory is mounted the directory is set to those
permissions. When it's not mounted it looks like:
drwxr-xr-x 2 root root 4096 2007-10-23 16:00 photos
> But the idea of NFS mounting a removable drive is the actual issue,
> here; if you're going to export something, you want to export something
> there's no chance someone's working on; I'd suggest copying over the
> files to a bit of drive space that's always there.
The mount is on a server on the LAN, it's not a removable drive.
Thanks,
--
Bill Moseley
moseley at hank.org
More information about the ubuntu-users
mailing list