User Tools

Site Tools


login:sshfs-win:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
login:sshfs-win:start [2020/04/13 07:30] paulglogin:sshfs-win:start [2021/12/01 10:33] (current) namtran
Line 56: Line 56:
   Enter the password for sshfs.r:   Enter the password for sshfs.r:
   The command completed successfully.    The command completed successfully. 
 +
 +=== Resolving permission issues when files/folders created using sshfs ===
 +
 +When a user uses sshfs and creates a file/folder on the server the default permission will be:
 +
 +<code>
 +-rwx------ 1 namtran tech 0 Dec 18 10:37 test1.txt
 +</code>
 +
 +This is okay for home directory but for shared files/foldres you want group to also have access, so you need to modify the registry to change the umask:
 +
 +<code>
 +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.r]
 +CommandLine value:
 +svc %1 %2 %U -o create_dir_umask=007 -o create_file_umask=117
 +</code>
 +
 +Now when you create a file/folder, the permissions will be:
 +
 +<code>
 +-rw-rw----  1 namtran tech     0 Dec 18 10:36 test2.txt 
 +</code>
 +
 +
 +
 +
login/sshfs-win/start.1586777457.txt.gz · Last modified: 2020/04/13 07:30 by paulg