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

RE: Verifying file permissions



do fix_perms
#!/bin/sh

# this command changes
#  all files to be mode 774
#  all dirs to be 2775
#  and everything to be owned by nobody.www-data

find /path/2files/ -exec chown nobody.www-data "{}" ";"
find /path/2files/ -type d -exec chmod 2775 "{}" ";"
find /path/2files/ -type f -exec chmod 664 "{}" ";"

this is 4 web. change user.group to whatever u want.

justin 
-----Original Message-----
From: craigw [mailto:craigw@lvcm.com] 
Sent: Friday, April 19, 2002 8:27 PM
To: debian-user@lists.debian.org; Andy Saxena
Subject: Re: Verifying file permissions

On Fri Apr 19, 2002 at 10:54:26PM -0400, Shawn McMahon wrote:
> begin  Andy Saxena quotation:
> > 
> > I was wondering if there is any way to verify the file permissions
on
> > the files installed by debian packages.
> 
> Depends; what do you mean by "verify"?
> 
This is an interesting question, and I have an idea of what Andy's
getting at; I hope to learn from some good answers.

When I install a new system, one of the first things I do is:
ls -lR / > original_filesystem.txt

This habit got its start from one time when I really hosed some of the
permissions, and several things quit working.

CraigW


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org




-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: