[LUNI] trash
Joe Frost
captinsano443 at yahoo.com
Tue Nov 12 10:43:00 CST 2002
--- shaun beier <shaun_beier at hotmail.com> wrote:
> I want to make it so a user can not delete any file in a particular
> directory no matter if that user made the file or not (ie once the
> file is
> created, there is no getting rid of it unless you have root access).
> Unfortunately, I am talking about Gnome because I have to give the
> people
> using the computer some sort of windows appearance...
>
>
> Shaun
I'm liking the 0300 perm for the directory.
They would have to no the name of the file to
delete. I'm assuming your users are just as smart
as mine are and have no clue about anything.
So this would be ok.
For example
~user/Desktop/Trash is the folder on the gnome
desktop for the trash (I don't know for sure
I don't use it)
root# chmod 0300 ~user/Desktop/Trash
user$ ls -ld Trash
d-wx------ 2 user user 4096 Nov 12 11:34 Trash
user$ ls -l Trash
ls: testing: Permission denied
user$ touch Trash/joe
user$ ls -l Trash/joe
-rw------- 1 user user 0 Nov 12 11:35 Trash/joe
user$ ls -l Trash
ls: testing: Permission denied
user]$ ls -l Trash/*
ls: Trash/*: No such file or directory
How's that work?
I'm pretty sure gnome's "empty trash" would have
to follow the permissions on the directory.
So they could add but not delete unless they
know the name.
joe
__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
More information about the luni
mailing list