[Leaplist] permissions help with NFS mounts

Kevin Korb kmk at sanitarium.net
Mon Jun 29 11:51:05 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There is a trick to this if you don't want to unmount stuff...
You can use a bind mount to access the filesystem without recursing into
the other filesystem.

Do: mount -o bind / /mnt
Then your /mnt will be exactly like / except the other mounted
filesystems will not be there so you can access the mount point
directories as if nothing was mounted in them.

William A. Mahaffey III wrote:
> On 06/28/09 22:16, Ray Brunkow wrote:
>> William A. Mahaffey III wrote:
>>> On 06/28/09 20:33, Ray Brunkow wrote:
>>>> I just built a CentOS 5.3 NFS file server and I am having issues
>>>> with permissions.  I have been successful at adding extra HDD and
>>>> partitions to the fstab:
>>>>
>>>> ---snip---
>>>>
>>>> Thanks for the help.
>>>>
>>>> uname -a
>>>> Linux AMD64-FILE1 2.6.18-128.1.14.el5 #1 SMP Wed Jun 17 06:40:54 EDT
>>>> 2009 i686 athlon i386 GNU/Linux
>>>>
>>>>
>>>
>>>
>>>
>>> Make sure that the permissions on the mount points are correct w/o
>>> the drives mounted. This is a subtle but bitchy mistake that can
>>> inhibit function of the NFS shares once they are mounted.
>>>
>>>
>> Ahh that explains why when I changed /home1 to chmod 777 as root I was
>> able to gain full access to it from my NFS client.  Is there a way
>> around that?
>>
>>
> 
> 
> Yes. Manually un-mount them as root on the server using the umount
> command, then look at the permissions of the various mount points & get
> them set where you want them *with the drives still unmounted*. Then
> manually remount the various drives & you should be good to go.
> 
> 

- --
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpI4ugACgkQVKC1jlbQAQeA4QCgm2NVPkw3D78pjnPwtmqrf17h
pwkAoMhsI1x02Jh7+IKo2OAuqeox1wUs
=TdqS
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Leaplist mailing list