A A A

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Solaris 11 ZFS mount issue. File creation: Permission denied
February 24, 2016
12:52 pm
Lo0oM
Admin
Forum Posts: 217
Member Since:
September 30, 2012
Offline

Hi

 

Description:

NFS server – Solaris 11.3 sparc. NFS client Oracle Virtual Server 3.3.2 (RHEL 6.5 based). Share on Solaris open to read-write for everyone.

On client side:

# mount 10.1.1.2:/share /mnt               (where 10.1.1.2 is Solaris IP)

# touch /mnt/111

touch: cannot touch `/mnt/111': Permission denied

 

Solution:

1. I tried to make NFS mount from Solaris server itself

# mount 10.1.1.2:/share /mnt               (where 10.1.1.2 is Solaris IP)

# touch /mnt/111

touch: cannot touch `/mnt/111': Permission denied

 

Here i see that share works as read-only for all clients.

2. Checking share option on server:

root@t52:~# cat /etc/dfs/sharetab
-       IPC$    smb     -       Remote IPC
/share  share   nfs     sec=sys,rw

root@t52:~# showmount -e
export list for t52:
/share (everyone)

So share configured as read-write for everyone, why it is works as read only?

Solution is simple, need to add root permission:

# zfs set sharenfs=off rpool/share                 (that is where my share placed.)

# zfs set share=name=share,path=/share,prot=nfs,sec=sys,root=*,public,rw=* rpool/share

# zfs set sharenfs=on rpool/share

 

3. Now check it:

# cat /etc/dfs/sharetab
-       IPC$    smb     -       Remote IPC
/share  share   nfs     public,sec=sys,root,rw

# mount 10.1.1.2:/share /mnt               (where 10.1.1.2 is Solaris IP)

# touch /mnt/111

# ls -la /mnt/111
-rw-r--r--   1 root     root           0 Feb 24 14:46 /mnt/111

Fixed.

 

Thank you.

 

 

 

 

 

 

Forum Timezone: UTC 0

Most Users Ever Online: 31

Currently Online:
1 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 0

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 20

Topics: 214

Posts: 214

Newest Members: Lo0oM

Administrators: Lo0oM (217)