This discussion is archived
5 Replies Latest reply: Aug 15, 2013 3:53 PM by djuarez2 RSS

NFS .- touch: cannot touch `test': Permission denied

djuarez2 Newbie
Currently Being Moderated

I setup a NFS SERVER with Solaris 10, (note: Network is fine.. communication is excellent between server-client, both running NFS vers=4)

Please note my NFS Client server configuration. I am getting a Permission denied error message. I believe is one of the options that NFS handles when mounting remote filesystems.

I tried rw=hostname, rw=uid (i.e. rw=sftp), anon=sftp... in /etc/dfs/dfstab

 

Tried the following: (Any ideas?, Thx)

 

#share -F nfs -o anon=14 rw=@138.202.80.0/24,soft,proto=tcp -d "testing nfs" /export/local

#share -F nfs -o rw=138.202.80.167,rw=sftp,anon=sftp   -d "sftp account" /software

 

 

still getting permission denied error messages.

 

[test3@likewise-rhel63-sftponly ~]$ pwd

/home/test3

[test3@likewise-rhel63-sftponly ~]$ cd /software/

[test3@likewise-rhel63-sftponly software]$ touch test1

touch: cannot touch `test1': Permission denied

[test3@likewise-rhel63-sftponly software]$ id

uid=2087191647(test3) gid=301(dba) groups=301(dba),2087191041(domain^users) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

[test3@likewise-rhel63-sftponly software]$ ls -ld /software/

drwxr-xr-x. 4 nobody nobody 512 Aug 14 11:02 /software/

[test3@likewise-rhel63-sftponly software]$

 

 

 

# uname -a

SunOS likewise-sol10-nfs 5.10 Generic_147148-26 i86pc i386 i86pc

 

# cat /etc/release

                    Oracle Solaris 10 1/13 s10x_u11wos_24a X86

  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.

                            Assembled 17 January 2013

 

# cat /etc/dfs/dfstab | grep software

share -F nfs -o rw=138.202.80.167 -d "sftp account" /software

 

# share

-               /software   rw   ""

# dfshares

RESOURCE                                  SERVER ACCESS    TRANSPORT

likewise-sol10-nfs:/software                likewise-sol10-nfs  -         -

 

Trying to mount from RHEL 6.3 NFS CLIENT

 

[test3@likewise-rhel63-sftponly ~]$ uname -a

Linux likewise-rhel63-sftponly 2.6.32-358.14.1.el6.x86_64 #1 SMP Mon Jun 17 15:54:20 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

[test3@likewise-rhel63-sftponly ~]$

 

[test3@likewise-rhel63-sftponly etc]$ cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.4 (Santiago)

[test3@likewise-rhel63-sftponly etc]$

 

 

[test3@likewise-rhel63-sftponly etc]$ df -h | grep -i software

138.202.80.168:/software

                      8.1G  4.0G  4.1G  50% /software

[test3@likewise-rhel63-sftponly etc]$

 

 

[test3@likewise-rhel63-sftponly etc]$ mount | grep -i software

138.202.80.168:/software on /software type nfs (rw,hard,intr,bg,vers=4,addr=138.202.80.168,clientaddr=138.202.80.167)

 

[test3@likewise-rhel63-sftponly etc]$ grep -i software /etc/fstab

138.202.80.168:/software /software              nfs     rw,hard,intr,bg,vers=4 0 0

[test3@likewise-rhel63-sftponly etc]$

  • 1. Re: NFS .- touch: cannot touch `test': Permission denied
    Reidod Explorer
    Currently Being Moderated

    Hello,

     

    There should be a problem in your NFS sharing options. Try this command(s) to share the NFS resource on your Solaris Host:

     

    #share -F nfs -o rw=138.202.80.167 -d "sftp account" /software

    #shareall

    #svcs -a | grep -i nfs

     

    Refer to share_nfs man page in Solaris for more info on the sharing options.

     

    Regards,

    Rei

  • 2. Re: NFS .- touch: cannot touch `test': Permission denied
    Kers Newbie
    Currently Being Moderated

    check your /var/run/nfs4_domain file on each server and client and make sure they are the same.

  • 3. Re: NFS .- touch: cannot touch `test': Permission denied
    djuarez2 Newbie
    Currently Being Moderated

    Hello everyone.!!!

     

    Thank you for your great info in regards of NFS... I followed up on your recommendations.. still not able to have full permissions to my mount point "NFS".

    Please refer to my output for information of what so far I have done...I checked already share_nfs man pages.. I am digging more into the man pages..

    The challenge that I am facing is to nfs server side solaris 10, client side red hat 6.3....

    Thanks again for all your input. I really appreciate it..

    Looking forward to hearing back again with more recommendations.

     

    Server side

     

     

    # shareall

    # pwd

    /etc/dfs

    # grep -i scp dfstab

    share -F nfs -o rw=138.202.80.167 -d "sftp scp account" /software

    # dfshares

    RESOURCE                                  SERVER ACCESS    TRANSPORT

    likewise-sol10-nfs:/software                likewise-sol10-nfs  -         -

    # share

    -               /software   rw=138.202.80.167   "sftp scp account"

    #

     

     

     

     

    client side

     

     

     

     

     

     

    [test1@likewise-rhel63-sftponly ~]$ df -h | grep -i software

    138.202.80.168:/software

                          8.1G  4.0G  4.1G  50% /software

    [test1@likewise-rhel63-sftponly ~]$ pwd

    /home/test1

    [test1@likewise-rhel63-sftponly ~]$ cd /software

    [test1@likewise-rhel63-sftponly software]$ ls

    binaries  patches

    [test1@likewise-rhel63-sftponly software]$ touch test

    touch: cannot touch `test': Permission denied

    [test1@likewise-rhel63-sftponly software]$ echo 'this is a test' > test

    -bash: test: Permission denied

    [test1@likewise-rhel63-sftponly software]$

     

    Server side

    Additionally, I don't see any of

    "check your /var/run/nfs4_domain file on each server and client and make sure they are the same."

     

    # pwd

    /var/run

    # ls

    bootadm.lock       nfs4_domain        rpc_door           syslog.pid

    daemon             opengl             sendmail.pid       syslog_door

    ipsecconf.lock     pcmcia             smc898             tzsync

    kcfd_door          picld_door         sshd.pid           xkb

    name_service_door  powerd.pid         sysevent_channels

     

    # pwd

    /etc/default

    # grep -i 'nfs_client_versmax' nfs

    #NFS_CLIENT_VERSMAX=4

    #

     

    Client

     

    [test1@likewise-rhel63-sftponly run]$ pwd

    /var/run

    [test1@likewise-rhel63-sftponly run]$ ls nfs*

    ls: cannot access nfs*: No such file or directory

    [test1@likewise-rhel63-sftponly run]$ ls nfs

    ls: cannot access nfs: No such file or directory

    [test1@likewise-rhel63-sftponly run]$

     

     

    [test1@likewise-rhel63-sftponly run]$ nfsstat | grep -i nfs

    Client nfs v3:

    Client nfs v4:

  • 4. Re: NFS .- touch: cannot touch `test': Permission denied
    djuarez2 Newbie
    Currently Being Moderated

    Here are the latest changes.. Still having permissions issues "nobody:nobody" NFS default..

    read man pages share_nfs solaris 10 and man pages mount RedHat 6.3

     

    Any recommendations?

    Thanks.

     

     

    Server side

     

    # pwd

    /etc/dfs

    # grep network dfstab

    #       Issue the command 'svcadm enable network/nfs/server' to

    share -F nfs -o rw=138.202.80.167,rw=2087191661,network=@138.202.80/24,anon=2087191661 -d "sftp account          " /software

     

    # id test1

    uid=2087191640(test1) gid=301(dba)

     

    # ls -ld /software

    drwxr-xr-x   4 root     root         512 Aug 14 11:02 /software

     

    # share /software

    # dfshares

    RESOURCE                                  SERVER ACCESS    TRANSPORT

    likewise-sol10-nfs:/software                likewise-sol10-nfs  -         -


    # share

    -               /software   rw   ""

    #

     

     

     

    Client Side

     

     

    [test1@likewise-rhel63-sftponly ~]$ pwd

    /home/test1

    [test1@likewise-rhel63-sftponly ~]$ grep -i software /etc/fstab

    138.202.80.168:/software /software              nfs     rw,soft,intr,bg,user,group,suid,owner,noexec,nfsvers=4 0 0

    [test1@likewise-rhel63-sftponly ~]$

    [test1@likewise-rhel63-sftponly ~]$ df -h | grep software

    [test1@likewise-rhel63-sftponly ~]$ mount /software

    [test1@likewise-rhel63-sftponly ~]$ df -h | grep software

    138.202.80.168:/software

                          8.1G  4.0G  4.1G  50% /software

     

    [test1@likewise-rhel63-sftponly ~]$

    [test1@likewise-rhel63-sftponly ~]$ mount | grep -i software

    138.202.80.168:/software on /software type nfs (rw,user=test1,noexec,soft,intr,bg,nfsvers=4,addr=138.202.80.168,clientaddr=138.202.80.167)

    [test1@likewise-rhel63-sftponly ~]$

     

    [test1@likewise-rhel63-sftponly ~]$ cat /proc/mounts | grep software

    138.202.80.168:/software /software nfs4 rw,noexec,relatime,vers=4,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=138.202.80.167,minorversion=0,local_lock=none,addr=138.202.80.168 0 0

     

    [test1@likewise-rhel63-sftponly ~]$

    [test1@likewise-rhel63-sftponly ~]$ id test1

    uid=2087191640(test1) gid=301(dba) groups=301(dba),2087191041(domain^users)

    [test1@likewise-rhel63-sftponly ~]$

    [test1@likewise-rhel63-sftponly ~]$ ls -ld /software/

    drwxr-xr-x. 4 nobody nobody 512 Aug 14 11:02 /software/

    [test1@likewise-rhel63-sftponly ~]$

  • 5. Re: NFS .- touch: cannot touch `test': Permission denied
    djuarez2 Newbie
    Currently Being Moderated

    Thank you everyone for all your help !! I fix the problem.. all NFS settings are right.. I just had to chown to my sftp user and correponding group.. that fixed the problem

    Kind regards,...

    1012192

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points