From: Erik Mouw <erik@harddisk-recovery.com>
To: Gautam Pagedar <gautam@cins.unipune.ernet.in>
Cc: linux-kernel@vger.kernel.org
Subject: Re: can i modify ls
Date: Tue, 24 Feb 2004 12:10:41 +0100 [thread overview]
Message-ID: <20040224111041.GA25565@bitwizard.nl> (raw)
In-Reply-To: <005601c3fd75$1c681510$8c01080a@crayii>
On Sat, Feb 28, 2004 at 02:33:00AM +0530, Gautam Pagedar wrote:
> i am new to this mailing list, so please bear with me if i don't follow
> certain rules till i get used to it. I am a research student and currently
> working on a project to tweak the working of 'ls' command depending on my
> requirement. I have observed that 'ls' show ALL THE FILES and DIRECTORIES in
> a particular location even though a user has no access rights to it. I want
> to hide all
> such files for that particular user.
It already works like you expect it to do:
erik@zurix:/tmp/test >mkdir a b
erik@zurix:/tmp/test >touch a/c
erik@zurix:/tmp/test >ls -lR
.:
total 1
drwxr-xr-x 2 erik users 72 Feb 24 11:49 a/
./a:
total 0
-rw-r--r-- 1 erik users 0 Feb 24 11:49 c
erik@zurix:/tmp/test >chmod -r a
erik@zurix:/tmp/test >ls -lR
.:
total 1
d-wx--x--x 2 erik users 72 Feb 24 11:49 a/
ls: ./a: Permission denied
erik@zurix:/tmp/test >chmod -x a
erik@zurix:/tmp/test >cd a
a: Permission denied.
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
next prev parent reply other threads:[~2004-02-24 11:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-27 21:03 can i modify ls Gautam Pagedar
2004-02-24 11:10 ` Erik Mouw [this message]
2004-02-24 15:55 ` Alessandro Salvatori
2004-02-24 16:35 ` Tomas Szepe
2004-02-24 16:44 ` Richard B. Johnson
2004-02-24 16:59 ` Tomas Szepe
2004-02-24 18:44 ` Richard B. Johnson
2004-02-26 20:56 ` Denis Vlasenko
2004-02-25 15:01 ` Markus Klotzbuecher
-- strict thread matches above, loose matches on Subject: below --
2004-02-24 15:04 James Lamanna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040224111041.GA25565@bitwizard.nl \
--to=erik@harddisk-recovery.com \
--cc=gautam@cins.unipune.ernet.in \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.