This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:sftp [2023/10/29 17:43] – created olaf | linux:sftp [2023/10/31 11:19] (current) – olaf | ||
---|---|---|---|
Line 28: | Line 28: | ||
chown root:root /SFTP | chown root:root /SFTP | ||
chown root:root / | chown root:root / | ||
- | chmod 0755 /SFTP | + | chmod 0711 /SFTP |
chmod 0755 / | chmod 0755 / | ||
</ | </ | ||
Line 35: | Line 35: | ||
Note the reported uid and gid - it is required for mounting the smb share with the right permissions | Note the reported uid and gid - it is required for mounting the smb share with the right permissions | ||
<code bash> | <code bash> | ||
- | adduser | + | useradd |
</ | </ | ||
Line 51: | Line 51: | ||
mkdir / | mkdir / | ||
# change the owner and file permissions for the user | # change the owner and file permissions for the user | ||
- | chown remote-sftp: | + | chown remote-sftp: |
# change the file permissions for the user to read and write (no execute) | # change the file permissions for the user to read and write (no execute) | ||
chmod 0660 / | chmod 0660 / |