LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2006, 04:29 PM   #1
Vinter
Member
 
Registered: Feb 2005
Location: Germany
Distribution: Aptosid
Posts: 148

Rep: Reputation: 19
Restoring /var permissions?


Hi,

after messing up my partition table quite badly and barely being able to rescue most of the /var data, I am facing the problem of wrong permissions and ownership. Well, this currently results in X failing to display any text (at least for most fonts), and several servers refusing to start up.
So, is there any way to restore the permissions of /var, at least for vital components? I am running a mostly up-to-date Debian Testing desktop system, getting some scripts from the net is not a problem.

Would a simple reconfigure of the respective packages do? I am fed up with random stabbing and producing more and more problems, which is why I figured I should ask this time

Any help would be greatly appreciated.
David

Last edited by Vinter; 08-09-2006 at 04:31 PM.
 
Old 08-10-2006, 09:41 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,000

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
I'm not running debian or any servers, just a desktop, but every subdirectory in my /var except a man page subdirectory has a root owner and group with 755 permissions(owner has rwx with all others having rw-). You can apccompolish that with:

# chown -R root:root /var
# chmod -R 755 /var

The man page subdirectory, /var/catman, has a root owner and belongs to group "man" with both owner and group having rwx pwrmissions and others having only rw permissions which would be 775 permissions. T get that do:

# chown -R root:man /var/catman
# chmod -R 775 /var/catman

That's at least a start. However, some files in the /var subdirs are only readable by root on my system, particularly certain log files. Having them world readable may have security ramifications but everything should at least work and you can tweak those permissions later. Also, some subdirs of the /var subdirs have different ownership/permissions particularly in /var/lib. What you really need is the output of this:

# ls -alR /var

from someone running a similar version of debian. That will printout the full ownership/group/permissions of every file in /var. From that you can make a meaningful comparison. You may want to make that request in the debian forum.
 
  


Reply

Tags
emergency, permissions


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
Restoring Permissions keysorsoze Linux - Software 8 05-16-2008 12:42 PM
restoring default device ownerships/permissions under_r_run Linux - Newbie 5 07-27-2005 01:27 PM
Need help restoring /var permissions Thiink Slackware 1 02-21-2005 05:36 AM
Help restoring file permissions from a Dump bminish Linux - Newbie 3 12-12-2004 01:34 PM
Restoring /var tree ZooL Linux - General 6 09-23-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:39 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
Open Source Consulting | Domain Registration