Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey I'll spare the long winded explanation of this to this point...
Looks like I may need to add public execute permissions to the httpdocs folder on my server for a domain... I'm just curious what sorts of dangers/vulnerabilities this could cause. Is it a big deal?
Well, it's a typical setting. If noone knows the exact name of files in that directory, then noone can reach them. But for dynamic sites accessing index.(EXT) might be a start point to look up all other scripts names and read them directly. Perhaps more correct way to do that is to chown root:webserveraccountname /your/path/to/httpdocs and chmod 0710. Then, again, if your webserver will be compromised, cracker will have access to index.(EXT) so he again can do the same trick.
Hey I'll spare the long winded explanation of this to this point...
Looks like I may need to add public execute permissions to the httpdocs folder on my server for a domain... I'm just curious what sorts of dangers/vulnerabilities this could cause. Is it a big deal?
Thanks!
To get access to a directory you need r-x permissions on that directory(to cd into it). Files should only get r-- permissions.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
the exception to the above rule would be rwx for directories and rw- for files in places where files are going to be uploaded or modified by the webserver (such as temporary files, an upload directory or a cache for information downloaded from other servers, such as images etc..)
but never under any circumstances should the root directory of www or the root of the script's directory or it's configuration files or any of the program or html documents be writable by anyone but the owner of the document (also the web server should not be the owner of anything other then files uploaded via http or downloaded by scripts or created by scripts) otherwise malicious code could be injected into your web site that could be used to spread an infection to anyone who browses your site or collects information from them as they enter it into your computer
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.