Re: [OT] change user when executing some script
- From: bob@xxxxxxxxxx (Bob Proulx)
- Date: Thu, 14 Jun 2007 00:42:46 -0600
Douglas Allan Tutty wrote:
Galevsky wrote:
How can I make the /home/user1/testfile belong to user1, the owner of
the script instead of the user that launches it ?
On DEBIAN, to remove a file, you need write permissions on the directory
in which it resides. I suppose user1 could give group write to the
directory. You would then create a group and put user[1-3] in that
group.
Yes. That would be good.
Do this in a subdirectory of your home. If your $HOME is writable by
others, group write, then many programs will refuse to trust files
there. (e.g. sendmail/postfix/exim, procmail, ssh, etc.)
Bob
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: [OT] change user when executing some script
- From: Galevsky
- Re: [OT] change user when executing some script
- References:
- [OT] change user when executing some script
- From: Galevsky
- Re: [OT] change user when executing some script
- From: Douglas Allan Tutty
- [OT] change user when executing some script
- Prev by Date: Re: crob chgrp
- Next by Date: re: risk assessment for old toolbox
- Previous by thread: Re: [OT] change user when executing some script
- Next by thread: Re: [OT] change user when executing some script
- Index(es):
Relevant Pages
|