PDA

View Full Version : File permission verification


rich1000
06-22-06, 07:01 PM
I'm trying to get down to exactly what correct permissions/ownership for everything with my miva (on Linux) should be set to. I have assorted issues here and there, but I feel like whenever I change some permission to fix something, later on something else is broken due to permissions.

Everything generally work alright, but I want to make sure all is set perfectly.

Specifically permissions/ownership of files...
1) under /cgi-bin:
mivavm
libmivaconfig.so

2) /mivadata/ dir and all files/dirs under it

3) my dir /etc/local/mivavm-v5.04/ and all under it (all my lib files)

4) /htdocs/mm5/ dir and everything that's under it

I can't find any definitive info on this, and I'd like to get it perfect.

Thanks very much!
rich

dotCOM_host
06-22-06, 07:29 PM
Some of the answers here will depend on the actual server configuration, whether you use something like jailed environment for your site or a wide open system, whether you use any web control panel systems, etc. All these things can affect what the ownership should be set to.

1) should belong to the same user & group that all your other files belong to in the cgi-bin directory

2) same user & group as your regualar html files, unless you are on a system with one of the control panels, which may have different ownership requirements

3) not sure what you are storing there, but if it's just your libs - either your standard user and group ownership, or just root:root

4) same as your standard html files in the htdocs folder

rich1000
06-23-06, 03:59 AM
Thanks...

that helped, and I think I figured out the right combination of security and proper use.