> "ms419" == ms419 <[EMAIL PROTECTED]> writes:
ms419> How can we test if a user is allowed to login? How can we exec
ms419> programs as another user?
Probably sudo. But do you *really* want to let a script act as
another user? And *any* other user? This sounds Scary. What invokes
this sc
Can anyone suggest where to look?
hi,
try searching CPAN.
http://search.cpan.org/
alfred,
[EMAIL PROTECTED] wrote:
How can we test if a user is allowed to login? How can we exec
programs as another user?
I'm writing a script to translate SASL usernames into UNIX usernames,
test if the user is a
Hi Joseph -
> -Original Message-
> From: R. Joseph Newton [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 8:08 PM
> To: Beau E. Cox
> Cc: 'Beginners
> Subject: Re: 'Becoming' another user
>
>
> "Beau E. Cox" wrote:
>
"Beau E. Cox" wrote:
> Hi -
>
> I have a script (simple server) that can be used by
> others remote to me. For security I would like to
> 'become' (assume the permissions) of a specified,
> under-privileged user before listening to the
> outside world - much like Apache 'becomes' the
> user/group
Wiggins d'Anconia wrote:
> Not an expert on such things, and haven't done it before (may have to
> soon so thanks for asking and making me look it up ;-))...
>
> perldoc perlsec
>section on opening in a fork to drop privileges in setuid root programs
> perldoc perlvar
>specifically UID, EU
Thanks Tim and Wiggins - I off and running! :) - Aloha => Beau;
> -Original Message-
> From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 1:31 PM
> To: Beau E. Cox
> Cc: 'Beginners
> Subject: Re: 'Becoming'
Not an expert on such things, and haven't done it before (may have to
soon so thanks for asking and making me look it up ;-))...
perldoc perlsec
section on opening in a fork to drop privileges in setuid root programs
perldoc perlvar
specifically UID, EUID
perldoc POSIX
specifically setuid()