[Tutor] uid
Joerg Woelke
lumbricus@gmx.net
Sat, 15 Sep 2001 19:21:14 +0200
On Sat, Sep 15, 2001 at 10:58:41AM -0400, Rick Pasotto wrote:
> On Sat, Sep 15, 2001 at 02:09:15PM +0200, Joerg Woelke wrote:
> > On Sat, Sep 15, 2001 at 12:17:56PM +0200, Hans Gubitz wrote:
> > > I want to cp a file and extract it to different users. I can do this
> > > as root, but I want extract to be done with the uid of the user.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > >
> > os.suid()
>
> Did you *try* that? It doesn't exist on my system.
Aeh sorry - os.setuid() *duck*
>
> 'suid' -- meaning 'set user id' -- is not at all what he wants.
>
> He simply needs to set the owner of the file so
>
> os.chown(user)
>
> will do what he wants.
>
Then I misunderstood the marked sentence.
Greets J"o!
--
It would be illogical to assume that all conditions remain stable.
-- Spock, "The Enterprise" Incident", stardate 5027.3