LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-08-2006, 02:30 PM   #1
rcorkum
Member
 
Registered: Aug 2005
Location: Thunder Bay, Ontario, Canada
Distribution: Slackware Current
Posts: 113

Rep: Reputation: 15
Cool proper permissions for /var ?


I was messing around installing xaraya and got a permission error it couldn't write its config to /var so I did chmod -R 777 * inside /var and boy that was a dumb mistake I admit
ssh died next reboot so I redid permission to root only

now this is my current var root
Code:
[/var] >ls -l
total 4
drwxr-x--T  2 root root   72 2006-11-12 21:22 X11R6/
lrwxrwxrwx  1 root root    3 2006-11-12 21:22 adm -> log/
drwxr-x--T  5 root root  136 2006-11-21 03:25 cache/
drwxr-x--T  3 root root   72 2006-09-14 04:11 db/
drwxr-x--T  2 root root   48 2006-09-28 18:17 empty/
drwxr-x--T 15 root root  368 2006-09-08 21:51 lib/
drwxr-x--T  3 root root   72 2000-05-09 18:50 lock/
drwxr-x--T 14 root root 3040 2006-12-08 15:24 log/
lrwxrwxrwx  1 root root   10 2006-11-12 21:22 mail -> spool/mail/
drwxr-x--T 12 root root  288 1993-11-24 22:29 man/
drwxr-x--T  3 root root   80 2001-05-17 23:11 named/
drwxr-x--T  8 root root  528 2006-12-08 15:31 run/
lrwxrwxrwx  1 root root   15 2006-11-12 21:22 rwho -> /var/spool/rwho/
drwxr-x--T 15 root root  376 2003-06-05 18:43 spool/
drwxr-x--T  5 root root  128 2006-08-08 01:02 state/
drwxr-x--T  8 root root  336 2006-11-24 22:50 swaret/
drwxr-x--T  4 root root  184 2006-12-08 01:00 tmp/
drwxr-x--T  2 root bin   240 2006-11-13 14:39 webmin/
drwxr-x--T  8 root root  192 2006-12-03 21:07 www/
drwxr-x--T  2 root root  136 2006-11-12 21:58 yp/
now www don't have permission now I know the quickest way to fix this quagmire is a reinstall.
is that honestly the easiest or shouuld I run through the entire folder figuring out permissions i don't mind doing htat would just need a list of whats what for stock stuff.

I post this so others can gain from my dumb mistakes to
 
Old 12-08-2006, 02:41 PM   #2
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
Distros handle certain things differently, so permissions may not be the same across the board. If you have a back-up, try restoring from that. You could also try a separate install on the hard drive, and then mounting the new /var in with your previous partitions. You could then mount the original /var separately, and copy the necessary files over. This might prevent you from a full re-config.
 
Old 12-08-2006, 02:46 PM   #3
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
This is mine (Slackware 11.0), looks quite different from yours.
Code:
drwxr-xr-x 18 root root 1024 2006-11-30 22:38 var/

drwxr-xr-x  2 root root 1024 2006-10-13 18:03 X11R6/
lrwxrwxrwx  1 root root    3 2006-10-14 21:02 adm -> log/
drwxr-xr-x  7 root root 1024 2003-09-15 22:11 cache/
drwxr-xr-x  3 root root 1024 2006-09-14 09:11 db/
drwxr-xr-x  2 root root 1024 2006-09-28 23:17 empty/
drwxr-xr-x 22 root root 1024 2006-10-14 22:07 lib/
drwxrwxrwt  4 root root 1024 2006-12-07 10:24 lock/
drwxr-xr-x 14 root root 1024 2006-12-08 19:42 log/
lrwxrwxrwx  1 root root   10 2006-10-14 21:02 mail -> spool/mail/
drwxr-xr-x 12 root root 1024 1993-11-25 03:29 man/
drwxr-xr-x  3 root root 1024 2001-05-18 04:11 named/
drwxr-xr-x 12 root root 1024 2006-12-08 14:15 run/
lrwxrwxrwx  1 root root   15 2006-10-14 21:02 rwho -> /var/spool/rwho/
drwxr-xr-x 16 root root 1024 2004-06-07 06:40 spool/
drwxr-xr-x  5 root root 1024 2006-08-08 06:02 state/
drwxrwxrwt  5 root root 1024 2006-12-06 14:49 tmp/
drwxr-xr-x  5 root root 1024 2001-02-26 02:59 www/
drwxr-xr-x  2 root root 1024 2005-09-23 15:39 yp/
 
Old 12-08-2006, 03:10 PM   #4
rcorkum
Member
 
Registered: Aug 2005
Location: Thunder Bay, Ontario, Canada
Distribution: Slackware Current
Posts: 113

Original Poster
Rep: Reputation: 15
yes should have stated been a long day and tis the busy season

slack 11
and thanks for a copy of your permissions I will reset to match see if that helps thanks alot and thanks for both replies.
 
  


Reply



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
Need help restoring /var permissions Thiink Slackware 1 02-21-2005 05:36 AM
Getting my fstab to give proper permissions Esmo2000 Linux - Newbie 3 11-10-2004 12:21 PM
How do I set up proper drive permissions (fstab reamins static despite all mounts) Lechium Linux - Hardware 9 07-03-2004 09:33 AM
Proper use of permissions ? wmcase Linux - General 4 02-04-2004 03:41 PM
'Proper' file and directory permissions etherdeath Linux - General 5 03-02-2003 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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