Re: Becoming Another User

2005-01-03 Thread Randal L. Schwartz
> "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

Re: Becoming Another User

2005-01-03 Thread Alfred Vahau
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

RE: 'Becoming' another user

2003-02-21 Thread Beau E. Cox
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: >

Re: 'Becoming' another user

2003-02-20 Thread R. Joseph Newton
"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

Re: 'Becoming' another user

2003-02-20 Thread R. Joseph Newton
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

RE: 'Becoming' another user

2003-02-20 Thread Beau E. Cox
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'

Re: 'Becoming' another user

2003-02-20 Thread Wiggins d'Anconia
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()