mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-23 05:01:04 +01:00
17 lines
522 B
YAML
17 lines
522 B
YAML
# 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
|