Operating System - HP-UX
1833847 Members
2258 Online
110063 Solutions
New Discussion

Re: Permission issue on NFS file system

 
Anoop Sivan
Frequent Advisor

Permission issue on NFS file system

Hi All

I have an issue with NFS mounted file system
when ever i trying to give df -h from user showing permisson denied for one directory named samba.If i trying to give from root user it is showing.


================================

root@gpscxxx3 # su 45suite
root@gpscxxx3 # id
uid=522(45suite) gid=126(crtrp)
root@gpscxxx3 # df -h | grep /mcc/app/lapps/gifto341
df: cannot statvfs /mcc/app/lwers/giftor345a: Permission denied
df: cannot statvfs /mcc/app/lwers/giftor345b: Permission denied
df: cannot statvfs /mcc/app/lwers/giftor345c: Permission denied
root@gpscxxx3 #
============================================================
root@gpscxxx3 # id
uid=0(root) gid=1(other)
root@gpscxxx3 # df -h | grep /mcc/app/lapps/giftor01
camccfa2:/sdata_mcc01_dmg2007 134G 104G 30G 78% /mcc/app/lwers/giftor345a
camccfa2:/sdata_mcc01_dmg2008 134G 116G 18G 87% /mcc/app/lwers/giftor345b
camccfa2:/sdata_mcc01_dmg2009 134G 117G 17G 88% /mcc/app/lwers/giftor345c
root@gpscgm03 #
===================================================================
root@gpscxxx3 # ls -ld /mcc/app/lapps/giftor01b
drwxr-xr-x 6 root root 1024 Aug 24 2009 /mcc/app/lapps/giftor345b
11 REPLIES 11
Raj D.
Honored Contributor

Re: Permission issue on NFS file system

Anoop,

Check the permission on the parent directory.

of /mcc/app/lapps/giftor345b :

# ls -ld /mcc/app/lapps/
# ls -ld /mcc/app
# ls -ld /mcc

Also , what was the permission on the directory before you mounted. and what is the permission on the remote side if it is a remote mount.

you can check in fstab , or try # mount -p
# grep mcc /etc/passwd


Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Dennis Handly
Acclaimed Contributor

Re: Permission issue on NFS file system

>whenever I trying to give df -h from user showing permission denied for one directory

What does -h do, it isn't documented?

>ls -ld /mcc/app/lapps/giftor01b

Why aren't you doing:
ls -ld /mcc/app/lwers/giftor345*

Anoop Sivan
Frequent Advisor

Re: Permission issue on NFS file system

root@gpscxxx3 # su 45suite
root@gpscxxx3 # id
uid=522(45suite) gid=126(crtrp)
root@gpscxxx3 # df -k | grep /mcc/app/lapps/gifto341
df: cannot statvfs /mcc/app/lwers/giftor345a: Permission denied
df: cannot statvfs /mcc/app/lwers/giftor345b: Permission denied
===================================================

root@gpscxxx3 # ls -ld /mcc/app/lapps/giftor345a
drwxr-xr-x 6 root root 1024 Aug 24 2009 /mcc/app/lapps/giftor345a
====================================================================

root@gpscxxx3 # ls -ld /mcc/app/lapps
drwx------ 5 root other 512 Apr 13 13:14 /mcc/app/lapps

root@gpsxxx3 # ls -ld /mcc/data
drwxr-xr-x 3 root other 512 Jan 30 2006 /mcc/data

root@gpscxxx3 # ls -ld /mcc
drwxr-xr-x 5 root other 512 Jan 30 2006 /mcc
root@gpscgm03 #
=================================================================================

I provided 755 permissions to /mcc/app/lapps directory also, but it shows the same error
Anoop Sivan
Frequent Advisor

Re: Permission issue on NFS file system


FOr more info please check below out put.

root@gpscxxx3 # ls -al mcc/app/lwers/giftor345a
total 8439682
drwxr-xr-x 7 root root 1024 Aug 22 2008 .
drwx------ 5 root other 512 Apr 13 13:14 ..
dr-xr-xr-x 2 root other 1024 Jul 8 04:06 .etc
-rw------T 1 root other 4318959616 Dec 8 2008 CELERRA_DART_MAINT_DO_NOT_REMOVE
drwxrwxrwx 20 316 112 1024 Jun 10 10:41 apps
drwxr-xr-x 2 root root 8192 Jul 2 2007 lost+found
drwxrwxrwx 3 316 112 80 Jul 18 2007 software
Bill Hassell
Honored Contributor

Re: Permission issue on NFS file system

For NFS, root does not have any special privileges unless setup at the server. Does the server's exports file give root privileges?


Bill Hassell, sysadmin
Anoop Sivan
Frequent Advisor

Re: Permission issue on NFS file system

All these NFS file are exported from EMC celerra NAS boxes.
Suraj K Sankari
Honored Contributor

Re: Permission issue on NFS file system

Hi,
What is there in your export file.

please post here.

Suraj
Bill Hassell
Honored Contributor

Re: Permission issue on NFS file system

> All these NFS file are exported from EMC celerra NAS boxes.

The default for most NFS servers is to never give root privileges to clients. Contact you NAS administrator for clarification. There is nothing you can do on the client side to gain root access.


Bill Hassell, sysadmin
muruganantham raju
Valued Contributor

Re: Permission issue on NFS file system

Hi,
Check the permission setting in /etc/exports file of the server system. You can not change the permission at client system.
Rgds,
Muru
vasanth_2
Frequent Advisor

Re: Permission issue on NFS file system

Hi Anoop,

If you can get downtime for the servers try unmounting the nfs filesystem in the client and restart the Nfs services and then mount it.

or problem may be with your userid's between client and server, please verify the userid's in the client and server end are in the same group.

Thanks
Vasanth
Mike Miller_8
Regular Advisor

Re: Permission issue on NFS file system

Changing permissions on the client link file will not change the permissions on the host.
Unmount the NFS, change permissions on the host and then remount the NFS link from the client with the correct umask.