[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Directory permissions.



As some of you are aware, I recently transfered my file system from hda1
to hda2.  When I did it I used midnight commander.

MC has an option to keep UID's and GID's when copying.  Supprise! It only
does this on the files.  When it created the directories on hda2 it
made them ALL root.root using umask.

I discovered this when the following error appeared:

	runq 04/29/1997 08:43:00: mailer error: cannot open 
	/var/log/smail/paniclog: Permission denied

Which made me investigate the permissions.

There are two problems I'm addressing here.

1.  Is there an easy way to reset the permissions of my directories to
what they should be?  Such as a program that I can exicute that will set
them or go through and prompt me for the changes.

2.  The above error is actually related to the file permissions now since
I've changed it before.  It seems that cron did some kind of clean up this
morning and changed the permission back (on the files in this directory)
to what they were before.

Here is the directory after I changed permissions to add group write
permission to stop the error:

drwxrwxr-x   2 root     mail         1024 Apr 29 06:43 .
drwxrwxr-x   7 root     adm          1024 Apr 29 06:44 ..
-rw-rw-r--   1 root     mail         3356 Apr 29 09:07 logfile
-rw-rw-r--   1 root     mail       649572 Apr 29 06:56 logfile.0
-rw-rw-r--   1 root     mail         5830 Apr 15 06:44 logfile.1.gz
-rw-rw-r--   1 root     mail        15244 Apr 13 06:44 logfile.2.gz
-rw-rw-r--   1 root     mail        13330 Apr 11 06:44 logfile.3.gz
-rw-rw-r--   1 root     mail        11078 Apr  8 06:43 logfile.4.gz
-rw-rw-r--   1 root     mail         2453 Apr  5 06:43 logfile.5.gz
-rw-rw-r--   1 root     mail        11769 Apr  4 06:43 logfile.6.gz
-rw-rw-r--   1 root     mail            0 Apr 29 06:43 paniclog
-rw-rw-r--   1 root     mail          750 Apr 29 06:43 paniclog.0
-rw-rw-r--   1 root     mail           31 Apr 15 06:44 paniclog.1.gz
-rw-rw-r--   1 root     mail           31 Apr 13 06:44 paniclog.2.gz
-rw-rw-r--   1 root     mail           31 Apr 11 06:44 paniclog.3.gz
-rw-rw-r--   1 root     mail           31 Apr  8 06:43 paniclog.4.gz
-rw-rw-r--   1 root     mail           31 Apr  5 06:43 paniclog.5.gz
-rw-rw-r--   1 root     mail           31 Apr  4 06:43 paniclog.6.gz

Why has this error started since the move from hda1?  I have been using
the file ownerships to set the directory ownerships since I know that mc
kept the file ownerships intact.

So now my system is half-hosed.  I assume there are other things not
working correctly even though I'm not getting any other errors and all
seems to be fine, so far.

I did this to avoid a full install when I repartitioned since I have no
backup system and have installed from ftp.  Somebody out there must have a
good way to reset my ownerships.

About a year ago I remember running across a doc that described the file
system structure standards.  I don't remember if it gave ownerships but
it's worth a shot if someone knows what it's called and where I can find
it.

I thought it might have been a HOW-TO but I just checked linux.org and
found none that looked like they described the file system structure.

I see a re-install in my future.  Can anybody give me a hand with this so
I don't have to resort to the obvious?

--Rick

rickya@siservices.net


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: