These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Root Server Security on the new forum.
I have created 3 virtual servers. If I connect with SFTP to one of the Virtual Server Owner accounts I can see the folders of the other account. I can't access the other VS accounts but I can go up to the parant directories. How can I prevent vs account owners from accessing other directories?
Howdy,
With SSH/SCP/SFTP, users can see any folder they have rights to.
That's in contrast to FTP, which allows you to chroot users into certain folders.
What you're seeing is just a difference in the way the various protocols work. If that's a problem, the simplest way to solve it would be to not allow SSH/SCP/SFTP access.
Though, the thing to remember, is that they aren't seeing anything they don't have rights to anyway... they could simply use a web-based file manager and browse those same files/dirs.
-Eric
If a VS owner can naviagate from his folder up to the root then change files in the "etc" folder for instance, is that not going to impact the sites of the other vs owners?
If this is correct, what I want to achieve is prevent damage to sites of other VS owners by VS owners. I would like to give them access to only their respective folders in home directory.
From what I understand this only possible with FTP and not SFTP, right?
Nah, there's a distinction between what files they can see, and which ones they can modify.
They should only have write permissions in their own homedir, they should purely have read permissions in directories such as /etc. So there's no opportunity for them to go changing things.
-Eric
Ok thanks!