You are not logged in.

#1 2010-02-14 02:50:52

b52
Member
From: Germany
Registered: 2009-03-20
Posts: 49
Website

sshfs with umask

Hey guys,

I'm currently trying to get sshfs working with correct file permissions.
My files on the server look like that:

-rw-rw-r--  1 share users   84 13. Feb 05:13 .bash_history
-rw-rw-r--  1 b52   users    0 14. Feb 02:51 hehejo
drwxrwxr-x  5 share users 4,0K 13. Feb 15:20 Software/
drwxrwxr-x  2 share users 4,0K 13. Feb 19:25 Spiele/
-rw-rw-r--  1 share users  662 13. Feb 05:10 .viminfo

Thats a shared environment so the umask should be 002 that the group got rw rights.
But if I mount that share using sshfs with umask=002 i got really weird permissions:

-rwxrwxr-x 1 1001 users   84 13. Feb 05:13 .bash_history
-rwxrwxr-x 1 b52  users    0 14. Feb 02:51 hehejo
drwxrwxr-x 1 1001 users 4,0K 13. Feb 15:20 Software/
drwxrwxr-x 1 1001 users 4,0K 13. Feb 19:25 Spiele/
-rwxrwxr-x 1 1001 users  662 13. Feb 05:10 .viminfo

As well if i create a new file on the client side:

b52@endymion:~/Gemeinsam  % touch test
b52@endymion:~/Gemeinsam  % la | grep test
-rwxrwxr-x 1 b52  users    0 14. Feb 03:51 test

The file on the server looks different:

-rw-r--r--  1 b52   users    0 14. Feb 03:51 test

My fstab:

b52@tieum:/home/share /home/b52/Gemeinsam fuse.sshfs noauto,user,umask=002 0 0

I got no clue whats wrong, could someone please help me?

Best regards,
b52

Last edited by b52 (2010-02-14 02:52:43)


srsly?

Offline

#2 2010-03-09 15:42:22

b52
Member
From: Germany
Registered: 2009-03-20
Posts: 49
Website

Re: sshfs with umask

push1111


srsly?

Offline

#3 2010-03-09 17:50:39

crankyadmin
Member
Registered: 2009-09-27
Posts: 117
Website

Re: sshfs with umask

b52 wrote:

push1111

??


:: Github :: My AUR :: Coreboot ::

Offline

#4 2015-07-16 16:11:24

mkind
Member
Registered: 2012-08-11
Posts: 27

Re: sshfs with umask

Well, I have the same problem. It actually uses the local umask. The umask option in sshfs seems to be more like filter. However, I tried to set the sshd config

Subsystem       sftp    /usr/lib/ssh/sftp-server -u 0007

but it seems to have no effect. I would really appreciate some ideas smile

Offline

#5 2015-07-16 17:48:28

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: sshfs with umask

Please open a new topic about your problem, this thread is five years old

https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB