LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2008, 11:58 PM   #1
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
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.
 
Old 11-20-2008, 12:00 AM   #2
n03x3c
Member
 
Registered: Aug 2008
Location: India
Distribution: Fedora, RedHat
Posts: 101

Rep: Reputation: 17
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.
 
Old 11-20-2008, 12:05 AM   #3
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
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/????)
 
Old 11-20-2008, 12:16 AM   #4
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by dkm999 View Post
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
 
Old 11-20-2008, 12:29 AM   #5
n03x3c
Member
 
Registered: Aug 2008
Location: India
Distribution: Fedora, RedHat
Posts: 101

Rep: Reputation: 17
Hmm, you try restorecon -R and give a try, it might fix problem if problem is related with SELinux...
 
Old 11-20-2008, 12:30 AM   #6
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by n03x3c View Post
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?
 
Old 11-20-2008, 12:33 AM   #7
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
Quote:
Originally Posted by RMLinux View Post
by the way what is this SELinux compare to another RedHat Linux?
http://www.nsa.gov/selinux/info/faq.cfm
 
Old 11-21-2008, 01:58 AM   #8
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by claudius753 View Post
i do it manually I just compared to another linux pc but I copied RHEL3 format I use RHEL4 SELINUX.

any help?

Last edited by RMLinux; 11-26-2008 at 03:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 07:33 PM
Default permission on files/directory wegadnie Linux - Newbie 5 11-20-2008 04:27 AM
Can I set default file/directory permission levels? toes Linux - Security 5 01-05-2007 07:21 PM
Default home directory permission kumarsundaram Linux - Security 14 06-30-2005 08:33 PM
Default home directory permission in SUSE 9.1 soldonz Linux - Security 1 05-26-2005 06:41 AM


All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration