Hello, I created a user with a group using these lines:
Code:
useradd <username>
groupadd <groupname>
gpasswd -a <username> <groupname>
chgrp -R groupname /path/to/your/web/directory
chmod -R g+rw /path/to/your/web/directory
next I removed shell access with:
Code:
usermod -s /sbin/nologin <username>
But now I can't no more access the folder though sftp.
Then first, how to cancel my last usermod to recover sftp access, and then is it possible to block just the shell access ?
Thanks