login:sshfs-win:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
login:sshfs-win:start [2020/12/23 14:58] – namtran | login:sshfs-win:start [2021/12/01 10:33] (current) – namtran | ||
---|---|---|---|
Line 59: | Line 59: | ||
=== Resolving permission issues when files/ | === Resolving permission issues when files/ | ||
- | When a user uses sshfs and creates a file/folder the default permission will be: | + | When a user uses sshfs and creates a file/ |
< | < | ||
- | -rwx------ 1 namtran | + | -rwx------ 1 namtran |
</ | </ | ||
- | This is okay for home directory but for shared | + | This is okay for home directory but for shared |
- | we need to modify the registry to change the umask: | + | |
< | < | ||
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.r] | [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.r] | ||
- | "CommandLine" | + | CommandLine |
+ | svc %1 %2 %U -o create_dir_umask=007 -o create_file_umask=117 | ||
</ | </ | ||
- | after when create a file/ | + | Now when you create a file/ |
< | < | ||
- | -rw-rw---- | + | -rw-rw---- |
</ | </ | ||
login/sshfs-win/start.1608753500.txt.gz · Last modified: 2020/12/23 14:58 by namtran