Linux cant cd into directory and part of group

I am part of the group group1. The directory permission I am trying to cd into are 770 for both the parent directory and child directory but I still can not cd into. What am I doing wrong?

  
 $ ls -l /NAS/infa/
 drwxrwxr-x. 22 user1 group1 506 Jun  6 17:05 infa_shared
  
  
 $ ls -dl /NAS/infa/infa_shared/AdminScripts/
 drwxrwx---. 3 user1 group1 183 Jun 21 17:02 /NAS/infa/infa_shared/AdminScripts/
  
 $ cd /NAS/infa/infa_shared/AdminScripts/
 -bash: cd: /NAS/infa/infa_shared/AdminScripts/: Permission denied
  
 $ groups | grep group1
 group1
 

Did you try to cd into that directory as root for troubleshooting purposes?

Part of the pathname is "NAS". Can I assume that is Network Attached Storage"?? If so, what is that device??

Usually when working with NAS (especially Windows based NAS) the access rights that you get are the lesser of the NAS rights and the Unix/Linux rights. For example, Windows has a right to "list the contents" which, if set against you on the parent directory, will stop you entering the subdirectory.

So have you considered that the problem may not lay with the Linux system at all.

Yes I did. It works fine that way.

It is NFS. Would changing the sticky bit help? I tried 2770 but that did not help either.

Is this what you wanted to see?

df -h .
Filesystem                                    Size  Used Avail Use% Mounted on
nasnfsp1:/ifs/data/NFS  500G   27G  474G   6% /NAS/infa

Do you have a login account on the server that is hosting the NFS filesystem?

You could be getting that error because the NFS filesystem host doesn't recognize you as a member of group "group1".

1 Like

What exactly is the device/system that is serving this NFS handle?

If it is another Unix/Linux system try (temporarily) setting the rights on the shared directory, and possible sub-directories to 777 to see if that fixes it.

As Don said, an in-bound NFS request has to pass security on the NFS server.