Solved: Re: user can not access shared folder:permission denied

robert rottermann robert at redcor.ch
Thu Apr 21 10:28:44 UTC 2022


I had to add allow_other to the options in the fstab entry:
root at xxx....:/opt/abacus/out/verbuchung /mnt/abacus_shared  fuse.sshfs  
defaults,allow_other  0  0

thanks to Chris for the hint
Robert

On 20.04.22 17:55, Chris Green wrote:
> On Wed, Apr 20, 2022 at 05:44:43PM +0200, robert rottermann wrote:
>> Hi there
>>
>> on a debian server:
>>
>> Distributor ID:    Debian
>> Description:    Debian GNU/Linux 11 (bullseye)
>> Release:    11
>> Codename:    bullseye
>>
>> I create a shared folder using the following line in /etc/fstab:
>>
>> root at 116.203.51.119:/opt/abacus/out/verbuchung /mnt/abacus_shared
>> fuse.sshfs  defaults  0  0
>>
>> Now I would like to have a non root user to have access to the contents of
>> that folder.
>>
>> Therefore I created a group abacus_odoo and set the group /mnt to:
>>
>> drwxrwsr-x   3 root abacus_odoo  4096  8. Apr 13:40 mnt
>>
>> also the shared folder:
>> drwxrwsr-x 1 root abacus_odoo 4096 14. Apr 18:21 abacus_shared
>>
>> the user odoo, that should have access to the folder is in the group abacus_odoo:
>>
>> root at abaconnect-dev:/# groups odoo
>> odoo : odoo abacus_odoo
>>
>> nevertheless the user has no access:
>>
>> su odoo
>> odoo at abaconnect-dev:/$ cd mnt
>> odoo at abaconnect-dev:/mnt$ ll
>> ls: cannot access 'abacus_shared': Permission denied
>> total 0
>> d????????? ? ? ? ?            ? abacus_shared
>> odoo at abaconnect-dev:/mnt$
>>
> Isn't an sshfs mounted file system much stricter about permissions
> than a 'normal' one?  That's why it has the 'allow-root' and
> 'allow-other' options as, otherwise, even root can't access an sshfs
> mounted file system.
>





More information about the ubuntu-users mailing list