LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   urgen! what is the /var directory default permission and ownership (https://www.linuxquestions.org/questions/linux-newbie-8/urgen-what-is-the-var-directory-default-permission-and-ownership-684782/)

RMLinux 11-19-2008 10:58 PM

urgen! what is the /var directory default permission and ownership
 
Hi Guys!

I want to know the default permission and ownership on /var.

Because I change all the permission to 755 and root:root as ownership.
My system website doesnt work now.

thank you.

n03x3c 11-19-2008 11:00 PM

Code:

drwxr-xr-x  25 root  root      4096 2008-10-04 09:47 var
This is what I get when I do ls -l /

My sys is fedora, and everything is perfect.

dkm999 11-19-2008 11:05 PM

You don't say what distribution you are running, or whether SELinux is enabled. On my (RedHat) systems, the /var directory is owned by root, and the permissions are set to 755, and the command
Code:

#ls -Z /
gives this output for var
Code:

drwxr-xr-x  root  root system_u:object_r:var_t:s0
(I think this is more or less standard.) Is there anything in the log files either for the system (/var/log/messages) or for the web server (/var/log/httpd/????)

RMLinux 11-19-2008 11:16 PM

Quote:

Originally Posted by dkm999 (Post 3348257)
You don't say what distribution you are running, or whether SELinux is enabled. On my (RedHat) systems, the /var directory is owned by root, and the permissions are set to 755, and the command
Code:

#ls -Z /
gives this output for var
Code:

drwxr-xr-x  root  root system_u:object_r:var_t:s0
(I think this is more or less standard.) Is there anything in the log files either for the system (/var/log/messages) or for the web server (/var/log/httpd/????)

yES my SELinux is enabled I can use ls -aZ
I am using RHEL4 2.6.9-55.ELsmp

n03x3c 11-19-2008 11:29 PM

Hmm, you try restorecon -R and give a try, it might fix problem if problem is related with SELinux...

RMLinux 11-19-2008 11:30 PM

Quote:

Originally Posted by n03x3c (Post 3348280)
Hmm, you try restorecon -R and give a try, it might fix problem if problem is related with SELinux...

by the way what is this SELinux compare to another RedHat Linux?

claudius753 11-19-2008 11:33 PM

Quote:

Originally Posted by RMLinux (Post 3348282)
by the way what is this SELinux compare to another RedHat Linux?

http://www.nsa.gov/selinux/info/faq.cfm

RMLinux 11-21-2008 12:58 AM

Quote:

Originally Posted by claudius753 (Post 3348288)

i do it manually I just compared to another linux pc but I copied RHEL3 format I use RHEL4 SELINUX.

any help?


All times are GMT -5. The time now is 09:56 AM.