[quote:535db98096][i:535db98096]Originally posted by kt[/i:535db98096]
I was wondering...One of my clients had mentioned being able to view other users accounts. Shell users cannot access them, or execute functions on them, however, they can see all of the other users, and all folders on the servers. I think this is a pretty big security threat. I checked it out and was able to access public_html dir, beacuse I knew it was there..from there I could view all the files.
How can I prevent users from viewing other dir except their own....?
[/quote:535db98096]
It is very clear that files, which have read access permission for the public, are readable by the public as well as those, which have write access permission for the public are writable by the public and those with execute access permission for the public are executable by the public
(when you read this consider the public as those users who are not in your user group)
However, if you can read a file it doesn't mean that you can modify it unless you have write access permission
Unfortunately, it is beyond the size and time of a post to explain this in details just read a Unix/Linux Guide/Administrative book, or even use
man chmod
in a ssh session to get more information.
However if you don't like your customers have a shell access just disable Shell access for them.