Chgrp failed on NAS mounted

Thread Tools Search this Thread
Operating Systems Solaris Chgrp failed on NAS mounted
# 1  
Old 03-24-2014
Chgrp failed on NAS mounted


I am facing chgrp issue for a directory on a NAS mounted partation.

issue details :
user1 belongs to two groups grp1(primary) and grp2(secondary) not able to change directory group to secondary.

WORKING on /tmp
#mkdir /tmp/a
#ls -ld /tmp/a
drwxr-xr-x 2 user1 grp1 117 Mar 24 06:19 /tmp/a

#chgrp grp2 /tmp/a
#ls -ld /tmp/a
drwxr-xr-x 2 user1 grp2 117 Mar 24 06:19 /tmp/a

NOT Working on NFS share:
/home on nas2:/vx/home remote/read/write/setuid/devices/rstchown/xattr/dev=5140004 on Mon Mar 10 12:38:09 2014
#mkdir /home/user1/a 
#ls -ld /home/user1/a
drwxr-xr-x 2 user1 grp2 117 Mar 24 06:19 /home/user1/a
#chgrp grp2 /home/user1/a
chgrp: /home/user1/a: Not owner

Solaris patch level
SunOS ossmaster 5.10 Generic_150401-05 i86pc i386 i86pc

Any clue on this issue.


Last edited by Scott; 03-24-2014 at 03:38 AM.. Reason: Code tags
# 2  
Old 03-24-2014
# 3  
Old 03-24-2014
Does your NAS server have the passwd and group information? I.e. Does it know user1 grp2 etc.?
# 4  
Old 03-25-2014
No NAS server does not know the user details. it is shared as r/w to everyone.

How does automounter affects the chgrp behaviour

# 5  
Old 03-26-2014
Hmm, a NAS server should know the users and groups.
If not, I do not have practical experience what exactly happens. NFSv3 might pass the request to the server, and the server denies it.
Or do you use NFSv4? To find out, please run
nfsstat -m

The automounter does not matter here.
# 6  
Old 03-28-2014
A NAS server may not know the groups a user belongs to. If _POSIX_CHOWN_RESTRICTED is enforced by the NAS server, and it doesn't have access to the group data, it won't allow the change if it's not aware of the group(s) the file owner belongs to.

Although I had thought the group data was part of the NFS protocol? That may have changed in NFSv4, as I can see how trusting a client to supply gids could potentially be a security issue. I know my the first thing I do when I have any problem at all with NFSv4 is try NFSv3. Especially in a heterogeneous environment where various OS breeds and flavors are sharing NFS mounts. (Yeah, I avoid NFSv4 whenever possible.)

Being shared R/W to everyone shouldn't matter.
# 7  
Old 03-28-2014
Yes, it worked thanks a lot.

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Related to "NAS" some file system (mounted volumes) were not writable

Dear friends, I have been facing an issue with one of my red hat unix machine, suddenly lost to switch sudo users. My all colleagues lost to switch to access sudo users. Then, we have realized its related to NAS issue which does not allowing to write the file. because of this we got so many... (1 Reply)
Discussion started by: Chand
1 Replies

2. UNIX for Dummies Questions & Answers

Extremely slow file writing with many small files on mounted NAS

I am working on a CentOS release 6.4 server which has two mounted NAS devices, one with 20 x 3TB HDD running in FreeBSD with Zfs2 and one NAS which I don't know much about, but which has 7 HDDs in RAID-6. I was running tar -zxvf on a tarball that is 80Mb with 50,000 small files inside. Even... (4 Replies)
Discussion started by: TupTupBoom
4 Replies

3. Red Hat

Can't chgrp. Error - chgrp: changing group of `<file>': Invalid argument

I found that I cannot chgrp for some reason with error: chgrp: changing group of `<file>': Invalid argument This happens on all NFS mounted disks on client machines. We use AD (not my call) for authentication and it also provides groups. We have a NFS server running Scientific Linux 6.3... (1 Reply)
Discussion started by: venmx
1 Replies

4. Solaris

how to make nas share mounted in zones persistent across reboots?

there are few nas shares that would be mounted on the local zone. should i add an entry into the add an entry in zone.xml file so that it gets mounted automatically when the zone gets rebooted? or whats the correct way to get it mounted automatically when the zone reboots (2 Replies)
Discussion started by: chidori
2 Replies

5. Shell Programming and Scripting

Check if NAS filesystem is mounted

Anyone know the best way to check and see if a NAS filesystem is mounted on a linux box. I have no idea where to start :wall:. (2 Replies)
Discussion started by: d3mon_spawn
2 Replies

6. Shell Programming and Scripting

Can't chgrp, chown on Linux

I have a problem on Linux wherein it doesn't allow me to use the chown and chgrp even if I am the owner of the file. Is this one of the Linux limitations? BTW, I can use chmod. (4 Replies)
Discussion started by: Jin_
4 Replies

7. OS X (Apple)

AFP mount + Chown/Chgrp respecting

Hello all... Does anyone know how to make an AFP mount of home directories (/Volumes/users off of another server) so that any users doing an ssh login retain write permission to their individual folders, read-write permissions to folders chowned to appropriate group... and so that newly created... (0 Replies)
Discussion started by: drkdev
0 Replies

8. UNIX for Dummies Questions & Answers

Chgrp and Chown ???

Hi Can anybody please let me know the usage of Chgrp command with an example??? Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

9. Solaris

Owner of file gets 'not owner' error for chgrp

Hi Folks, I know that changing users and groups is pretty basic admin, but this one has got me stumped. When I try to change the group of a file for which I am the owner for, it still gives me a 'Not owner' error. For example, when I am logged in as 'webadmin', I have the following file: ... (4 Replies)
Discussion started by: brizrobbo
4 Replies
Login or Register to Ask a Question