refactored

This commit is contained in:
2021-01-11 15:01:09 +01:00
parent 7fe777c5f8
commit 278d61759a
2 changed files with 11 additions and 22 deletions

View File

@@ -1,16 +0,0 @@
# Create sftp group
# groupadd sftpusers
# useradd -g sftpusers -d /incoming -s /sbin/nologin guestuser
# passwd guestuser
# grep guestuser /etc/passwd
# usermod -g sftpusers -d /incoming -s /sbin/nologin john
# Subsystem sftp internal-sftp > /etc/ssh/sshd_config
# tail /etc/ssh/sshd_config
# mkdir /sftp
# mkdir /sftp/guestuser
# mkdir /sftp/guestuser/incoming
# chown guestuser:sftpusers /sftp/guestuser/incoming
# ls -ld /sftp/guestuser/incoming
# ls -ld /sftp/guestuser
# ls -ld /sftp
# service sshd restart