Mr. DJ
12-04-2002, 09:15 AM
Does anybody know how to disable the ls/dir command outside somebody's site map, I've been on a raq which had it
for example:
i'm having a site on a raq and i want to see the source of another site, I just go to /home/sites en with ls i can see which other sites are running on that machine. But I want to disable it so nobody can acces somebody's site
BruceT
12-04-2002, 11:53 PM
The only way to do it is setting up chrooted environment, which is way more trouble than could be worth on the RaQ. Better off doing that on a generic Linux/BSD box.
You'll be able to see the contents of all site /web dirs, as they're all read-enabled anyway. But the group permissions will keep you from looking in other user dirs, site log/cert dirs, etc.
No good way to keep people from seeing the contents of /home/sites though...
Mr. DJ
12-06-2002, 07:39 PM
do you think a jailed environment will work? Maybe that's a solution :) but it's some work
I saw your reply somewhere else :( never mind...
mostaman
12-30-2002, 10:02 PM
why not chmod 711 /home
Just a thought:)
BruceT
12-30-2002, 11:34 PM
There's a LOT of stuff under /home...
Also, I'm not sure that the webserver would have read access...?
Mr. DJ
12-31-2002, 11:18 AM
That's the solution, I did it for /home/sites/ and /home/.sites/ and its ok