You are not logged in.
Pages: 1
Topic closed
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
push1111
srsly?
Offline
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
Offline
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
Pages: 1
Topic closed