create files as a different user

create files as a different user

am 23.10.2007 17:03:46 von aleccolvin

I am the administrator for my school club and we have a shared-host
linux webserver account for which I am not root. I would like to set
it so that whenever the user www_assistant creates a file in /home/
httpdocs it is created with its ownership set to club_admin instead of
www_assist

What's the simplest way to do this?

Thank you,
Alec

Re: create files as a different user

am 23.10.2007 18:25:11 von aleccolvin

I am trying to create this special permissions situation in the shared
folder so that when one of my assistants creates a file they won't be
able to use chmod to prevent me from deleting it.

-- Alec

Re: create files as a different user

am 23.10.2007 18:59:05 von Michael Tosch

Coltrane04 wrote:
> I am trying to create this special permissions situation in the shared
> folder so that when one of my assistants creates a file they won't be
> able to use chmod to prevent me from deleting it.
>
> -- Alec
>

This is not a shell question.
Your question is better for comp.unix.admin

Maybe this helps:

The folder must be owned by club_admin and has group
club_group.
Create club_group in the system and add the members
club_admin and www_assist.

Make the folder group-writable (g+w bit) and maybe set the g+s bit
(so a new file always gets group club_group).


--
Michael Tosch @ hp : com