Answer the question
In order to leave comments, you need to log in
How can I make the user see nothing but /home/%username%?
How can I make the user see nothing but /home/%username%?
usually in the desktop version of the OS, if you sit through the GUI, then only the user's working directory is displayed, and in the Server version, if you create a regular user and log in via ssh, it sees all directories and can read. Question: how can I make the user see nothing but /home/%username% when logging in via ssh?
Answer the question
In order to leave comments, you need to log in
If only for ssh, then you can decide at the ssh server level.
Write a line in sshd.confChrootDirectory %h
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question