1

SSH : how to assign specifics directories to each user?

view story
linux-howto

http://stackoverflow.com – No, it is not a duplicate of that, because I want to assign one directory to one (or more) user, when they log in throught SSH. For example, according to user's loggin : userFoo => I want him to arrive /somewhere/here/ after SSH login userBar => I want him to arrive /somewhere/here/ after SSH login userOof => I want him to arrive /anywhere/ after SSH login And so on. How can I do that ? (They are connection with PuTTY and I can't force them to connect with additionnal data like ssh -t user@server 'cd /home/some/dir ; exec "$SHELL"' (HowTos)