I have a Centos 6.5 machine. I add users with useradd username.
These users cannot browse other users directory, but they can browse all the OS filesystem starting from
/ and see configuration, passwords, logs, mysql, web server etc.
I feel that there is something wrong with the way I setup users and/or the whole machine, but I don't understand what.
I just need to create an user restricted to ssh, browse, sftp, ftp etc. only in his own home directory.
But what I have now is:
- ssh, sftp: all OS except files/directory owned by other users
- ftp: only his home
It seems to me also that jailing sftp user is not the same as having ssh jailed and involves things like giving root ownership to his home directory, which I cannot.