perl scripts as a user

Eugene Tsyrklevich eugene at securityarchitects.com
Mon Sep 18 02:16:44 CDT 2000


~sdpm~
perl -wle 'print +(getpwuid $<)[0]'

perldoc perlvar (search for $<)
perldoc -f getpwuid


On Fri, Sep 15, 2000 at 01:23:09PM -0700, Michael DeVicariis wrote:
> ~sdpm~
> Does anyone know what user perl scripts runs as?
> 
> 
> 
> Michael DeVicariis
> Web Administrator/Developer
> Programmer/Analyst
> UCSD Auxiliary & Plant Services
> (858) 534-0700
> 
>  
> 
> -----Original Message-----
> From: Chris Radcliff [mailto:chris at velocigen.com]
> 
> >From what I remember of Access and linked tables, the Web server doesn't
> have permission to access the remote drive on which the source db sits.
> As a result, running the script from command line works (using normal
> user permissions) but the CGI version won't (using IIS/Apache's user
> permissions). 
> 
> Unfortunately, I don't remember ever solving this issue. Perhaps this
> hint will help others more proficient in Windows arcana.
> 
> ~chris
> 
> 
> ~sdpm~
> 
> The posting address is: san-diego-pm-list at hfb.pm.org
> 
> List requests should be sent to: majordomo at hfb.pm.org
> 
> If you ever want to remove yourself from this mailing list,
> you can send mail to <majordomo at happyfunball.pm.org> with the following
> command in the body of your email message:
> 
>     unsubscribe san-diego-pm-list
> 
> If you ever need to get in contact with the owner of the list,
> (if you have trouble unsubscribing, or have questions about the
> list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
> This is the general rule for most mailing lists when you need
> to contact a human.
> 
> 
~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list