02-25-04 02:39 PM
Hello All,
I admin about 12 unix boxes where I work, all running Solaris 9. One
of them is a web server for our intrAnet and it runs apache. The other
day, I was sshd into the web server and noticed all the files and
directories under cgi-bin were owned by httpd:httpd and most had write
perms to them. Yes, the webserver is running as httpd. I thought
someone had rooted the box at first. Anyway, as it turns out, the
boss wanted to be able to access the web server files over nfs from
his linux box in his office, so he set all the perms to something that
worked for him. He said he did not want the files owned by root for
security reasons.
I wasn't expecting an clear answer from him at this point, so I
thought I would toss the question up here. Why would root ownership
on a file (excluding setuid binaries) be a bad idea from a security
standpoint?
I'm asking because the convention I use is chown root:root 644 for
most things. If I need write access to the file by a regular user, I
would root:user 664, or user:user 664. If what my boss said holds any
water, I need to rethink my ideas on file ownership strategy, so this
is why I pose the question.
Thanks,
bl8n8r
[ Post a follow-up to this message ]
|