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 02-23-2009, 12:24 PM   #1
GlassOnion
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Weird /var permission problem


I apologize if this is a dumb question, but I've been searching the forum and the web and I haven't been able to figure it out.

I just upgraded from Fedora core 5 to 10 with the netinstall disk. The installation all went fine and most things are working. Whenever I try to run X in a user account, I get an error that the log file can't be accessed. After messing around for a bit, I figured out that everything works just fine if I log in as root.
The user problem seems to be read access to the /var directory. I can cd to the directory but if I try to list the directory contents I get a cannot acces . permission denied error. I've tried chmod as root on the var directory to 777 and still none of the users are able to read the contents of the var directory.

Any help/suggestions would be GREATLY appreciated!

Thanks!
 
Old 02-23-2009, 12:46 PM   #2
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
A lot of tools have changed in the range of Fedora 3 up to 7 (including the switch to Xorg). Upgrades usually keep configuration files intact, and it is possible that some of these configuration formats are not what FC10 expects. Upgrading Fedora version by version would have take longer, but is known to work correctly in most cases.

Most files and directories in /var are supposed to be owned by root. Maybe you should remove the current X installation and install it from scratch. This can be tough to remove, though, due to the many dependencies.

linux

Last edited by gergely89; 02-27-2009 at 11:52 PM.
 
Old 02-23-2009, 04:20 PM   #3
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
Many of the log files under var are restricted to root by design. I suspect even if you change the permissions, they may get changed back as the log files are updated.


Even though you changed the directory permissions, the existing file permissions do not change. Directory permissions and file permissions are not the same thing.
 
Old 02-23-2009, 04:33 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by GlassOnion View Post
I just upgraded from Fedora core 5 to 10 with the netinstall disk. The installation all went fine and most things are working.
Upgrade? Good $DEITY. I spose there's too much change between FC5 and F10 for it to upgrade perfectly...


Quote:
Originally Posted by GlassOnion View Post
Whenever I try to run X in a user account, I get an error that the log file can't be accessed.
Exact message please?


Quote:
Originally Posted by GlassOnion View Post
After messing around for a bit, I figured out that everything works just fine if I log in as root.
Ah, but the root account ain't for performing regular unprivileged user tasks...


Quote:
Originally Posted by GlassOnion View Post
The user problem seems to be read access to the /var directory. I can cd to the directory but if I try to list the directory contents I get a cannot acces . permission denied error.
(extended) directory permissions ('ls -alZd /var/log')? In the event nothing works a mass file relabelling might help if it's due to SE Linux, but first please check /var/log/audit/auditd.log for AVC messages (or sealert in /var/log/messages).


Quote:
Originally Posted by GlassOnion View Post
I've tried chmod as root on the var directory to 777
HAL sez: don't do that Dave...
 
  


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
var/www Folder permission bsctov Linux - Software 4 05-03-2008 12:15 PM
Permission problem pasting content to the var/www/html folder bluetxxth Fedora 2 10-01-2007 11:53 AM
/var/log/messages weird entries blizunt7 Linux - Security 5 11-01-2005 06:56 PM
cps printing problem - /var/spool (permission denied) carboncopy Slackware 10 11-11-2004 04:28 AM
IDE weird and /var permisions e1000 Slackware 4 04-14-2004 02:37 PM


All times are GMT -5. The time now is 10:11 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