[NBLUG/talk] Wierd directory.
fryman at sonic.net
Fri May 21 14:23:29 PDT 2004
On Fri, May 21, 2004 at 02:11:58PM -0700, Steve Johnson wrote:
> On Fri, May 21, 2004 at 12:53:44PM -0700, Troy Arnold wrote:
> > On Fri, May 21, 2004 at 12:47:55PM -0700, Steve Johnson wrote:
> > > I have a directory on my redhat box that I can not view even as root.
> > >
> > > [root at xxxxx ftp]# ls -la
> > > total 9
> > > drwxr-xr-x 6 root root 1024 Jan 16 15:16 .
> > > drwxr-xr-x 23 root root 4096 Apr 15 15:23 ..
> > > d--x--x--x 2 root root 1024 Nov 5 2003 bin
> > > d--x--x--x 2 root root 1024 Nov 19 2003 etc
> > > drwxr-xr-x 2 root root 1024 Nov 19 2003 lib
> > > drwxr-sr-x 5 root ftp 1024 Sep 9 2003 pub
> > >
> > > I can't change teh permissions on teh directory either
> > Maybe it's been made immutable.
> > Try:
> > # lsattr bin
> > man lsattr, chattr
> > If those are dirs for an ftp server, they *should* be execute only.
> They are for an ftp server.. They should have the read bit set? and
> lsattr returns nothing..
my mistake, the lsattr command should be run on the dir /containing/
I'll bet it returns something like:
the 'i' says it is immutable.
Hell, skip the formalities if you want:
chattr -i bin
And no, they don't need the read bit set. The users need to run bin/ls,
not look at it. And you can run a program just fine, even though you
can't 'see' it.
More information about the talk