Hi I have ssh connection to my server wit root account. I want to create user named pizza4yu
and give access with winscp
to only this location /home/pi/apache-tomcat-7.0.35
How can I do that ?
Set the users home folder to that path so.
Usermod -d /home/pi/apache-tomcat pizza4yu
All in lowercase Then chown -R pizza4yu /new/path
or add the new user to existing group of that folder
chsh -s /bin/bash pizza4yu
usermod -d /home/pi/apache-tomcat pizza4yu
chown -R pizza4yu:pizza4yu /home/pi/apache-tomcat
You can also use chroot: http://chrootssh.sourceforge.net/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.