User Tools

Site Tools


linux:sftp

Differences

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

Link to this comparison view

Next revision
Previous revision
linux:sftp [2023/10/29 17:43] – created olaflinux:sftp [2023/10/31 11:19] (current) olaf
Line 28: Line 28:
 chown root:root /SFTP chown root:root /SFTP
 chown root:root /SFTP/remote-sftp chown root:root /SFTP/remote-sftp
-chmod 0755 /SFTP+chmod 0711 /SFTP
 chmod 0755 /SFTP/remote-sftp chmod 0755 /SFTP/remote-sftp
 </code> </code>
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 --group --system --shell /bin/false -d /SFTP/remote-sftp remote-sftp+useradd --group --system --shell /bin/false -d /SFTP/remote-sftp remote-sftp
 </code> </code>
  
Line 51: Line 51:
 mkdir /SFTP/remote-sftp/storage mkdir /SFTP/remote-sftp/storage
 # change the owner and file permissions for the user # change the owner and file permissions for the user
-chown remote-sftp:remote-sftp /SFTP/remote-sftp/storagechown+chown remote-sftp:remote-sftp /SFTP/remote-sftp/storage
 # 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 /SFTP/remote-sftp/storage chmod 0660 /SFTP/remote-sftp/storage
linux/sftp.1698601398.txt.gz · Last modified: 2023/10/29 17:43 by olaf