You are not logged in.

#1 2017-03-28 18:27:02

balance
Member
Registered: 2017-02-17
Posts: 64

gid not working with sshfs

Hi,

I'm mounting a dir on a web server locally and want that if I create a new folder of file that the group is set to www-data. So I went on the server, did "id -u www-data" and the output was 33.

Then I did: sshfs -o gid=33,IdentityFile=foo user@server:path mnt/foo

but if I cd into mnt/foo and create a new file/folder, it defaults to the default [default is id -a].

What am I doing wrong? How can I debug this?

Edit: it works fine for another server...

Last edited by balance (2017-03-28 18:40:39)

Offline

#2 2017-03-28 19:11:09

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: gid not working with sshfs

Your getting the UID of www-data but then mounting using GID.

UID != GID


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-03-28 19:13:34

balance
Member
Registered: 2017-02-17
Posts: 64

Re: gid not working with sshfs

if I do id -g www-data I get 33. if I do id -u i get 33. On both servers.

Offline

#4 2017-03-29 08:39:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,892

Re: gid not working with sshfs

"-o sshfs_debug", compare "mount" output for both sshfs mounts

Offline

Board footer

Powered by FluxBB