Problem with nfs sharing, permission denied for writing.


 
Thread Tools Search this Thread
Operating Systems Solaris Problem with nfs sharing, permission denied for writing.
# 29  
Old 07-01-2010
Quote:
Originally Posted by jlliagre
It tells that any user that would be mapped to the NFS anonymous user is actually mapped to root will all the security issues that this imply. Anyone being root is normally mapped to anonymous to prevent abuse. This setting is telling remote users logged as root will keep their access rights on the share. You might want to limit the read/write access to a list of well known servers.

Thanks,
And sorry, my English is not good, so your answer not clear for me, I'm don't fully understand it, but I see that I want to add the root=host option, isn't?

May you clarify this point for me, please Smilie

And how can I solve the security issue, that you talking about it?

Thanks.
# 30  
Old 07-01-2010
Quote:
Originally Posted by Al-Mothafar
I see that I want to add the root=host option
It seems you already tried that option but it fails for some reason. I was suggesting to use "rw=host" instead of "rw" in the share command.
Quote:
And how can I solve the security issue, that you talking about it?
By not using the root account but a regular user account in the first place.
# 31  
Old 07-01-2010
Code:
It seems you already tried that option but it fails for some reason. I was suggesting to use "rw=host" instead of "rw" in the share command.

yes, but I mean with anon option too, finally the command will be like the following :

Code:
share -F nfs -o rw=host,anon=0 /sharedFolder

is that will be right?
# 32  
Old 07-02-2010
someone tell me that how to give read write permission to a particular user on a particular host using nfs.
# 33  
Old 07-02-2010
Or better solution, configure automounter Smilie
# 34  
Old 07-02-2010
Quote:
Originally Posted by solaris_user
Or better solution, configure automounter Smilie
Yes, by editing /etc/vfstab

and add this line :
Code:
host:/foldertoshare       -       /mountpoint   nfs       -       yes     rw

and then :

Code:
svcadm restart svc:/network/nfs/client:default

right?
# 35  
Old 07-02-2010
Quote:
Originally Posted by solaris_user
Or better solution, configure automounter Smilie
Configuring the automounter will hardly have any effect on server side configuration which is what we are discussing here. Moreover, there is nothing to configure. When the automounter is enabled, shares can be accessed that way:
Code:
/net/server/path-to-shared-file



---------- Post updated at 11:04 ---------- Previous update was at 11:01 ----------

Quote:
Originally Posted by Al-Mothafar
Yes, by editing /etc/vfstab
Your configuration is correct but not based on the Solaris automounter. It is just a persistent automatic mount.
This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem Permission denied cp -r

Hi I am administrator in unix I want make backup folder and file in root directory I use instruction Cp -r , But the system pear problem cp: cannot create regular file : Permission denied Can someone explain me what am I doing wrong??? please... find other instruction backup folder... (1 Reply)
Discussion started by: xactor
1 Replies

2. Solaris

NFS in Solaris 9 - Permission denied

nfs mount: Permission denied Guy's in Solaris 9 I'm trying to mount the below mount point as nfs in clinet mount -F nfs -o rw 171.13.10.20:/shared /app but I'm getting the below message !!! bash-2.05# mount -F nfs -o rw 171.13.10.20:/shared /app nfs mount:... (2 Replies)
Discussion started by: Mr.AIX
2 Replies

3. AIX

Problem with Apache, permission denied

Just installed apache 2.2.17 and I can start up the httpd server without any errors. However when I try to access my scripts in /cgi-bin/ I'm getting the following error in error_log: Can't open perl script "/usr/local/apache2/cgi-bin/ldapsearch.cgi": Permission denied Premature end of... (4 Replies)
Discussion started by: islanderman
4 Replies

4. UNIX for Dummies Questions & Answers

Permission Denied creating file under nfs mount

I have two servers, 82 and 70. My exports file on 82 reads / ...70(rw) on 70 I have a mountpoint called mnt_for_82 I execute on 70 mount -t nfs -o rw ...82:/ mnt_for_82 I go to server 70 and indeed can read and travers the mounted subdirectories. However, I try... (0 Replies)
Discussion started by: blaine.miller
0 Replies

5. UNIX for Dummies Questions & Answers

nfs permission denied failure

I think I must be drain bamaged... I'm just trying to export an NFS share and mount it on a client. Should be really easy but I'm failing! Here's the set up: Server: OS: Centos 5.3 Name: fileprint-0 (aliases fp00, fs00) Exported directory: /home/ESE Client: OS: Centos 5.3 ... (5 Replies)
Discussion started by: texaganian
5 Replies

6. UNIX for Dummies Questions & Answers

Permission denied problem

I am trying to tidy our server and write cron to keep it tidy. We took on a third party to do some work last year. They were given their own UID/pwd so that they would have limited access. Part of what they wrote created an archive file at the end of every day. A year on and we don't want... (1 Reply)
Discussion started by: RexJacobus
1 Replies

7. UNIX for Dummies Questions & Answers

NFS Mount: Permission Denied

Hi, - I have two solaris 10 servers. One is running nfs server (let's call it server-1) and has a share set through /etc/dfs/dfstab file: share -F nfs /opt/SHARE (where SHARE directory contains sub-items that I want to share) - On server-1, I have started the nfs server service and have... (2 Replies)
Discussion started by: jackola
2 Replies

8. Linux

Problem in sharing Symlink via NFS

Hi, I have created symlink under /. It is /latest Pointing to /home/users/neel_prog_V1.0. (Note: I have created this symlink so that when version get changed I will need to change only symlink instead of doing changes in /etc/exports.) I have shared this symlink with NFS. in /etc/exports I... (0 Replies)
Discussion started by: neel.gurjar
0 Replies

9. UNIX Desktop Questions & Answers

BSD Permission Denied Problem

I'm new to *nixs and I decided to start with FreeBSD. I downloaded the ISO and installed it successfully, and managed to log in as root. Now everytime I try to enter into a directory ( I think thats what Im doing) such as /etc or /usr I always will get a permission denied. Any help is... (2 Replies)
Discussion started by: Phyber
2 Replies

10. UNIX for Dummies Questions & Answers

Permission Denied using VI on my NFS

Hi Friends, I have problem using VI on my NFS as a user. But root does not. When I tried to vi .cshrc, I have this error msg pops out jennifer_hostname > vi .cshrc "/var/tmp/Ex???? : Permission Denied" jennifer_hostname > Does any of you encounter this problem before or... (4 Replies)
Discussion started by: jennifer
4 Replies
Login or Register to Ask a Question