How to give access to user only home directory through ssh?
Okay...
Create user and add the user into rbash. like cat /etc/passwd jeeva:x:100:101::/home/jeeva:/bin/rbash |
Impossible. The user MUST have access to at least a few directories/files/devices outside of their home directory or they can't log in. For example, you want them to run /bin/rbash, but if they can't see anything outside of /home/jeeva, then how could they?
The simplest way to restrict them to ONLY those directories/devices/files that they need is to set up a chroot jail. |
All times are GMT -5. The time now is 10:15 PM. |