Solved

NFSv4 permission denied when using chmod

Posted on 2010-09-10
2
1,976 Views
Last Modified: 2012-05-10
I have encountered a strange problem when trying to chown a file mounted as nfsv4 on Solaris 10?

Config:

Netapp Filer - exporting volume /test as nfsv4, with unix style security, read/write access and root
Solaris 10 - mounting /test as nfsv4, rw

When using Solaris NIS, there are no issues using chown to change permissions to a nis user. However I use LDAP ( Windows 2003 domain ) to authenicate users on Solaris and when using chown with the LDAP account get permission denied. The files are owned by root, root can create directories and files, just can't chown.

Anybody have any experience in this combination?

0
Comment
Question by:xeyeclan
2 Comments
 
LVL 6

Expert Comment

by:jghelfman40
ID: 33648741
I believe you need to be running cifs on the filer. CIFS is specifically for windows.Try running:> cifs setupThe now site will have  more information on it if you don't have man pages installed, otherwise you could probably just run 'man cifs' on your filer.

This also seems like something that should be put in the Netapp Storage Zone.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 33659018
If you try to use chomd/chown to a NFS filesystem from the NFS client, you need to set the NFS share promissions to allow the root in the NFS client to do the job.
eg,  if Your NFS server is Solaris, in the /etc/dfs/dfstab file, should have
root=client1:cline2:clinetN
as the option in the NFS share
if clent, client2, clientN is not defined in DNS, or NIS/NIS+, you need to put them in /etc/hosts file.
man dfstab
to learn more details.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now