i can mount a nfs share from solaris into linux, but can't write to it
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Linux Mint 15 X64, Mageia 2, Red Hat Enterprise, Centos 6.x
Posts: 20
Rep:
i can mount a nfs share from solaris into linux, but can't write to it
Hello everybody,
I have a solaris 8 box sharing via nfs 6 directories, and the clients are Red Hat Enterprise Linux AS release 3 (Taroon Update 8) with kernel 2.4.21-47, in these boxes i can mount the nfs share but when try to write to it, i got this:
#touch testing
touch: creating `testing': Permission denied (either with root or a normal user)
the configuration file in solaris 8 has multiple lines like this:
share -F nfs -o rw -d "description" /apps/dirname
in the linux box this is one line from fstab of how i am mounting the remote dir:
hostname:/remotedir /apps/localdir nfs rw,soft 0 0
what's wrong here? are there any known issues about nfs shares from solaris to linux?
Thanks
Distribution: Linux Mint 15 X64, Mageia 2, Red Hat Enterprise, Centos 6.x
Posts: 20
Original Poster
Rep:
thankyou, reading about nfs i found that, , so i tried with a normal user, but i qet the same result, the permisions of the shared directories are set in the defaults of 755, then i triend also 775, but the only way i get it to work correctly is setting the permisions to the shared directory on the nfs server to 777...., and i donīt want it to be that way.
Distribution: Linux Mint 15 X64, Mageia 2, Red Hat Enterprise, Centos 6.x
Posts: 20
Original Poster
Rep:
i will make more tests with the permissions this monday, but i still think that it is an issue mounting a solaris 8 nfs share in a linux redhat ES box..... i'll like to know what do you think about it.
Distribution: Linux Mint 15 X64, Mageia 2, Red Hat Enterprise, Centos 6.x
Posts: 20
Original Poster
Rep:
so there is no other solution than setting the shared directory to 777 permission, on the server?? i have set it that way but i don't like it very much ....
so there is no other solution than setting the shared directory to 777 permission, on the server?? i have set it that way but i don't like it very much ....
See, when you do a NFS, the directory is owned by nfsnobody (NFS deamon) and hence 777 permission is needed since the remote server users are as good as other users in terms of permission.
If you dont want to have it like this way, then better use Samba for File sharing.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by fabmejia
so there is no other solution than setting the shared directory to 777 permission, on the server?
This has nothing to do with NFS, you have the same "limitation" while using a local directory.
You may want to try setting the permissions on the mounted directory to 4777 to reduce user rights on other people's files.
Quote:
i have set it that way but i don't like it very much ....
As the directory is to be shared, I'm missing what you don't like in setting the permissions to allow proper access.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.