Linux – Can’t access directory over SSH

debianlinuxmybookpermissionsssh

I am accessing a MyBook server using SSH by means of public-private keys.

I have a wierd problem where i am unable to access certain folders that i should logically have access to.

I have a directory on

/DataVolume/shares/fldr drwxrwxr-x root share

The user I am accessing the server with is a member of the group share (which has GID 1000). The same as fldr.

When I try to cd into the directory i get the error:

-sh: cd: fldr: Permission denied.

Why is this? And how do i fix it?

The sshd_config file does not limit users to home directories, but privilege seperation is on.

I can access another folder in shares, but all folders have the same access rights, so something else is at work.

Best Answer

The are several reasons why you can't access that folder:

1) maybe FUSE fs is used by another user and it mounted in /DataVolume/shares/fldr, in this case noone (even root) can't access this folder.

2) some mismatch in GID/UID, look at:

stat /DataVolume/shares/fldr

, and

id user

to check this;

3) maybe this is soft link to another folder (or file), and youre user has not read permission to it.

Related Question