Operating System - HP-UX
1824822 Members
4190 Online
109674 Solutions
New Discussion

Changing permissions on a NFS mount

 
Kenneth Hendricks
New Member

Changing permissions on a NFS mount

I have a client who is mounting a remote file system on a HP-UX 10.2 server.
The remote file system is on an NT 4.0 Server directory. When I mount the file
system, root has full privileges, but no one else. When I perform an ls -l on
the directory, it shows the owner as root, and the group as 204. I don't have
a group number 204 setup on the HP machine. Is the 204 coming across from the
NT side? If it helps, I believe the company is using Hummingbird NFS to mount
the NT folder to UNIX.

Can I change the group to something else so that other users besides root can
see the contents of the NFS mount and it's subdirectories? If so, how do I go
about doing it?

Thanks,

Shane
1 REPLY 1
Jim Butler_4
Advisor

Re: Changing permissions on a NFS mount

Mount is a priveledged command - so to mount it (the nfs disk) you must be
root, and you probably issued a mount command similar to the following:
mount -F nfs server:/path/subpath /localmntpoint

On the /localmntpoint you then see the permissions as root. (Just getting an
idea of whats going on)

If you want users to mount the filesystem, you can set up the automounter
(using SAM - if you like) =
Or set up an entry in the /etc/auto.direct file on all of your clients, to
access the mount point. The entry in your auto.direct might look like this:

localmountpoint server:/path/subpath

or to put permissions on the mountpoint
localmntpoint -ro server:/path/subpath

Note that you can protect the disk on the NT side as well by going into disk
Administrator to grant access to groups, etc.

man automount(d), mount, exports,

To start the automounter when you boot, edit the /etc/rc.config.d/nfsconf file
and change AUTOMOUNT to =1.

cheers.