Sponsored Content
Operating Systems Solaris Problem exporting NFS filesysytem with root permissions to Linux Post 302940053 by nvanvliet on Wednesday 1st of April 2015 04:27:21 AM
Old 04-01-2015
Problem exporting NFS filesysytem with root permissions to Linux

Hi,

I have a Solaris 10 server and I want to export a filesystem to a linux client and give the client's root user root priviliges on the filesystem.
The client is an ubuntu 14.04 LTS server.
the dfstab on the server looks lik this:
Code:
 /usr/sbin/share -F      nfs     -o      sec=sys,rw,root=something.somewhere.nl:@192.168.1.0 -d "user home dirs"    /home/t4   -

The linux server is on the 192.168. network. The fstab line looks like:
Code:
tmku201:/home/t4    /home/tmku201    nfs    defaults    0    0

The mounting works perfectly, but root of the Linux server can not delete files on /home/tmku201.

Do you have any ideas?
Regards,
Nico

---------- Post updated at 09:27 AM ---------- Previous update was at 09:00 AM ----------

Replying to my own post I think I fixed it.
I changed the fstab line on the Linux server:

Code:
192.168.1.101:/home/t4    /home/tmku201    nfs    defaults    0    0

You know, my servers have the first network interface attached to the university network and the second to the 192.168. backend.

And in the first fstab I mixed things up a bit. tmku201 is the hostname on the university network for the Solaris server and I want to mount over the backend.
Strange though that the mount succeeded at all

Rregards,
Nico
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

nfs permissions

Hi all can someone tell me how to set the follwoing permissions in the /etc/exports file to share a directory. I need 2 users eg a+b to be able to read and write to the directory but everyone else to just read. we have NIS in our environment and I though I could use netgroups do do this. My... (2 Replies)
Discussion started by: silvaman
2 Replies

2. HP-UX

nfs export permissions

Hello, If I have an export like: /usr/temp -rw=ram:alligator means that /usr/temp has "rw" permissions to ram and alligator machines and has "ro" to everyone else? (1 Reply)
Discussion started by: psimoes79
1 Replies

3. Solaris

NFS mount. Nobody Nobody permissions.

Hi, I have an NFS mount on a Solaris 10 server with file permissions nobody:nobody. This is an NFS export from an Netapp filer. Export attributes from the filer are below. Anonymous User ID=0 Read-Write Access (All Hosts) Security (sys) I have other NFS exports set up with the same... (7 Replies)
Discussion started by: gwhelan
7 Replies

4. Solaris

Permissions on NFS mount

I am mounting a directory remotely but I am not able to write to the NFS mount. I am using the following commands to share and mount the file system: On source server in DFStab file share -F nfs -o rw -d "IWStore" /iw-store On the client I am mounting like this: mount -F nfs -o rw... (4 Replies)
Discussion started by: wstclair
4 Replies

5. AIX

NFS mounts and user permissions

We need to allow ordinary users to preform NFS mounts on a AIX server without giving them root access to the server. Is there a way to give an ordinary users root access on a tem basis or a script to allow them to preform NFS mounts? (4 Replies)
Discussion started by: daveisme
4 Replies

6. Solaris

NFS Mount permissions weird

Hi all. I have a nas mounted on a solaris box as /u04. Currently I am getting a permission denied error from my HP DataProtector backup and when I ls -l the actual directory I get: drwxrwxrwt 5 65535 nogroup 4096 Nov 9 13:46 u04 I also have SAN mounted as /u06 and it is... (1 Reply)
Discussion started by: jamie_collins
1 Replies

7. Shell Programming and Scripting

Issue with changing the permissions on an nfs mount

Hi All, I have an nfs share which I mounted to my linux machine as below. df -k output TSDapp-na-02:/vol/tsd_app_1/rn_jira 47185920 11663072 35522848 25% /opt/rn_jira I have no entry for this in my /etc/fstab. I did it by the following way. mount -t nfs... (2 Replies)
Discussion started by: Tuxidow
2 Replies

8. UNIX for Advanced & Expert Users

[Solved] nfs share permissions with java

Please bare with me while I try to explain this weird problem. We are exporting a filesystem from an aix box to two linux boxes. On the linux box a java-weblogic application hits the share. For explanation benefits I'll describe the users thus. aix filesystem owned by userA in groupA on... (2 Replies)
Discussion started by: fwellers
2 Replies

9. UNIX for Dummies Questions & Answers

Permissions for NFS share

Hi, I have created a NFS share in Solaris 10 server1 and mounted it on solaris 10 server 2.But I want to change owner of the files from nobody to a particular user in client. Which command should I use. I have tried the following but it doesn't allow to change permissions in the server2 as... (0 Replies)
Discussion started by: Rossdba
0 Replies
MOUNT.FEDFS(8)						      System Manager's Manual						    MOUNT.FEDFS(8)

NAME
mount.fedfs - mount a FedFS domain root SYNOPSIS
mount.fedfs remotedir localdir [-fhnrsvVw] [-o options] DESCRIPTION
RFC 5716 introduces the Federated File System (FedFS, for short). FedFS is an extensible standardized mechanism by which system adminis- trators construct a coherent namespace across multiple file servers using file system referrals. For further details, see fedfs(7). The mount.fedfs(8) command locates FedFS domains by looking for DNS SRV records that advertise file servers exporting FedFS domain root replicas. The remotedir argument determines what FedFS domain is mounted and what network file system protocol is used. The mount.fedfs(8) command sorts the list of available domain root replicas according to the SRV record sorting rules outlined in RFC 2782. It attempts to contact each file server appearing in the SRV record list until a mount request succeeds or the end of the SRV record list is reached. Command line arguments The first argument, remotedir, is the globally useful name to mount. Globally useful names are discussed in more detail in fedfs(7). The second argument, localdir, specifies the local directory on which to mount the requested FedFS globally useful name. As with other file systems, localdir must exist on the client for a mount request to succeed. The mount.fedfs(8) command converts the specified remotedir and localdir arguments, along with information obtained via DNS SRV queries, to arguments suitable for a local mount request. It then forks and execs the appropriate file system mount subcommand (such as the mount.nfs(8) subcommand) to mount the file server where the domain root resides. Because an unmodified file system mount subcommand is used for the actual mount operation, the file system's equivalent umount subcommand is all that is required to unmount this mount point when it is finished being used. Mount option inheritance The Linux NFS client treats an NFS referral as a server-initiated mount request. The referring fileserver provides only a list of server names and export paths. The mount options for this new mount are inherited from the new mount point's parent directory on the client. As applications proceed deeper into a domain's namespace, they can encounter both file sets to which they have read-only access, and file sets to which they have read-write access. To allow applications proper access to both types of file sets, typically file-access clients mount domain root directories in read-write mode. All submounts of the domain root are then mounted read-write as well. Write access is then controlled by fileservers. For example, a domain root may contain an NFS version 4 referral to an export containing user home directories. The domain root may be exported read-only so file-access clients cannot update it, but user home directories would not be very useful if they could not be written to by their owners. The fileserver continues to employ user credentials to limit access as appropriate. Network file system clients follow file system referrals as applications encounter them, which is similar to how an automounter works. Consider the initial mount of the domain root as if you are mounting a single whole file system, even though underneath, additional NFS mounts come and go as needed. Options -f, --fake Fake mount. This option is ignored by mount.fedfs(8) but is passed to the underlying file system mount subcommand. -h, --help Print the mount.fedfs(8) usage message and exit. -n, --no-mtab Do not update /etc/mtab. This option is ignored by mount.fedfs(8) but is passed to the underlying file system mount subcommand. -o, --options options Specify mount options for this mount point and all submounts. These are ignored by mount.fedfs(8) but are passed to the underlying file system mount subcommand. For further details, refer to mount(8). -r, --ro, --read-only Mount the domain root and all submounts read-only. -s, --sloppy Tolerate unrecognized mount options. This is ignored by mount.fedfs(8) but is passed to the underlying file system mount subcom- mand. -v, --verbose Report more information during the mount process. This affects mount.fedfs(8) and is also passed to the underlying file system mount subcommand. -V, --version Print version information for mount.fedfs(8) and exit. -w, --rw, --read-write Mount the domain root and all submounts read-write. This is the default behavior. EXAMPLES
To mount the domain root of the example.net FedFS domain via NFS version 4 automatically, you might add this to your /etc/fstab: /nfs4/example.net /nfs4/example.net fedfs defaults 0 0 A FedFS domain root can also be mounted with a stand-alone invocation of mount(8): # mount -t fedfs /nfs4/example.net /mnt/fedfs This mounts the FedFS domain root for the example.net domain on the client's /mnt/fedfs directory. A simple # umount /mnt/fedfs unmounts it when you are finished with it. FILES
/etc/fstab filesystem table /etc/mtab table of mounted file systems SEE ALSO
fedfs(7), nfs(5), mount(8), mount.nfs(8) RFC 2782 for a discussion of DNS SRV records RFC 5661 for a description of NFS version 4 referrals RFC 5716 for FedFS requirements and overview COLOPHON
This page is part of the fedfs-utils package. A description of the project and information about reporting bugs can be found at http://wiki.linux-nfs.org/wiki/index.php/FedFsUtilsProject. AUTHOR
Chuck Lever <chuck.lever@oracle.com> 3 February 2014 MOUNT.FEDFS(8)
All times are GMT -4. The time now is 06:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy