Permissions Problem

From: Inuyasha4Life (PlzIdontLikeSpam_at_Nospam.com)
Date: 03/12/04


Date: Fri, 12 Mar 2004 15:02:42 -0500

Probably a simple thing to fix, but I just don't know how.

I've granted multiple users access to my computer via ftp (only to the
/srv/www and /srv/ftp folders, their home folders, and the subfolders of
those folders) but I need one more thing.

For obvious reasons, I don't normally run my computer as root. I normally
log in as my account, which is a simple user account with access to all the
defaults plus www and ftp. The others who are accessing the folder have the
exact same permissions as my user account.

I want to be able to delete files they upload to my computer. The problem
right now is if they upload a file, it gets the attributes

-rw-r--r-- <username> users .....

Because it is listed under their username, I cannot delete their files due
to the "no-write" permissions on "others in group." Therefore, I need to
change the attributes to one of the following:

-rw-rw-r-- <username> users.....
(or)
-rw-r--r-- MPDelBuono users.....

(MY username is MPDelBuono)

The second one would be preferred, because by making them set to my account,
then the others cannot delete the files -- I am the only one that can
delete files. Then again, I trust them, so it's not a necessity.

Ok that's enough of the background information. Now the question...

The question is NOT how to change permissions. I'm not stupid enough not to
be able to figure out chmod -R 664 /srv/www. That's the easy part. The
problem is that to do that, I have to log in as root. I'd prefer not to do
so (and not to use a "run as root" program). I want to be able to delete
these files from my user account. So I want this directory to automatically
set the attributes listed above. Either -rw-rw-r-- or always place them as
my username, regardless of who uploads it.

How do I do this?

Thanks for any help!
-- Inuyasha4Life

Running SuSE 8.2 Pro (soon to be 9.0 Pro, hopefully...)



Relevant Pages