Re: Chown as regular user?
From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 05/26/05
- Previous message: SimonV: "Re: Chown as regular user?"
- In reply to: SimonV: "Re: Chown as regular user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 26 May 2005 17:52:06 +0200
In comp.os.linux.security SimonV <Simon.vanherweghe@gmail.com>:
> Suid only works with compiled programs and perl scripts, no other
> scripting language. (thats what I found when googl'ing)
Not quite, one can write a small C wrapper calling some script no
matter which language, make this wrapper suid call it and voila
the script runs as root. That's how sudo works, it can run any
script you like as root or any other user.
> But I'm using perl, and indeed, they are running correctly with
> set-uid.
> The only thing that doesn't work is chown, because this is something
> the root must do and I wont setuid my perl-script as root.
Better it is. What about using GID bit on the dir you want to
write to, as I already pointed out?
-- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 297: Too many interrupts
- Previous message: SimonV: "Re: Chown as regular user?"
- In reply to: SimonV: "Re: Chown as regular user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|