PDA

View Full Version : file:///


mfaridi
07-27-2008, 09:40 AM
why when I type
file:///

in firefox and press Enter I can see all directory of my system , I think it is danger and I can browse my system for example my brother can sit on my system and browse everything , I do not like this happen
What I must do ???

ephemera
07-27-2008, 09:52 AM
$ chmod go= ~

then, create a new login account for your brother and make him use that.

killasmurf86
07-27-2008, 01:17 PM
Read:
Handbook: permissions (http://www2.lv.freebsd.org/doc/en_US.ISO8859-1/books/handbook/permissions.html)
man chmod (http://www.freebsd.org/cgi/man.cgi?query=chmod&apropos=0&sektion=0&manpath=FreeBSD+7.0-RELEASE&format=html)
man chown (http://www.freebsd.org/cgi/man.cgi?query=chown&apropos=0&sektion=0&manpath=FreeBSD+7.0-RELEASE&format=html)
man chgrp (http://www.freebsd.org/cgi/man.cgi?query=chgrp&apropos=0&sektion=0&manpath=FreeBSD+7.0-RELEASE&format=html)

BSDfan666
07-27-2008, 03:18 PM
I run my private user account under umask 027, I also chmod all my files to 640 and directories to 750..

If the user can browse your files via "file://" in Firefox, they can do it from xterm as well... hide stuff that's important to you, if they can evade file permissions... use OpenSSL to encrypt the files.