Give sft acces without shell access
Hello, I created a user with a group using these lines:
Code:
useradd <username> Code:
usermod -s /sbin/nologin <username> Then first, how to cancel my last usermod to recover sftp access, and then is it possible to block just the shell access ? Thanks |
Welcome.
For shared folders you'll need a little more than just g+w. But that is separate from the question of SFTP. IF you are using OpenSSH-server then you can block shell access by making the account use only SFTP. Code:
Subsystem sftp internal-sftp Edit: in case it was not obvious about undoing the usermod Code:
usermod -s /bin/bash username |
All times are GMT -5. The time now is 01:18 PM. |