Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2006 18:06:16 +0000
From:      Daniela <dgw@liwest.at>
To:        Josh Paetzel <josh@tcbug.org>
Cc:        questions@freebsd.org
Subject:   Re: Finding a file with wrong permissions
Message-ID:  <200603081806.16199.dgw@liwest.at>
In-Reply-To: <200603081104.40434.josh@tcbug.org>
References:  <200603081058.10027.josh@tcbug.org> <200603081759.45078.dgw@liwest.at> <200603081104.40434.josh@tcbug.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 08 March 2006 17:04, Josh Paetzel wrote:
> On Wednesday 08 March 2006 11:59, Daniela wrote:
> > On Wednesday 08 March 2006 16:58, Josh Paetzel wrote:
> > > I managed to install a pkg that I created and somehow the file
> > > +COMMENT wasn't created in /var/db/pkg/portname.  I touched
> > > +COMMENT in the correct directory because pkg_info was
> > > complaining about a missing +COMMENT.  Some time has gone by and
> > > I have forgotten which port it is.  Now pkg_info complains:
> > >
> > > pkg_info: show_file: can't open '+COMMENT' for reading
> > >
> > > I'm looking for a way to locate this file.
> > >
> > > #find /var/db/pkg -perm 644 -name +COMMENT | wc -l
> > >      378
> > >
> > > #pkg_info | wc -l
> > > pkg_info: show_file: can't open '+COMMENT' for reading
> > >      379
> > >
> > > I've looked through the manpage for find and can't find a 'not'
> > > modifier.  Is there an easy way to find a file that doesn't have
> > > a specific permission.  ie something like:
> > >
> > > #find /var/db/pkg -perm !644 -name +COMMENT
> >
> > Or you could look for a file with zero size.
>
> Forgot to mention that I tried that.  I may have put something in the
> file....damn my memory. :(

What is (or was) your file creation mask (umask) set to?

-- 
Hope is the worst of all evils, for it prolongs the torments of man.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603081806.16199.dgw>