Perl, Web front end, access rights - Help a newbie?

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Apr 28 14:10:43 UTC 2004


On Tue, Apr 27, 2004 at 09:55:42AM -0400, Madison Kelly wrote:
> Hi all,
> 
>   First and foremost, I am a strict newbie when it comes to perl 
> programming so please be gentle ;). I am trying to write a somewhat 
> simple program that will let me use a webpage front end to generate a 
> list of files and folders to be copied from of partition onto another.
> 
>   My question is: How can I get 'root' access to the server via a CGI 
> script? I am pretty sure that it can be does because CUPS seems to do it 
> (I have to enter the 'root' username and password before I can manage 
> printers).
> 
>   I have already written the first part where I use two lists, one for 
> valid source partitions (which can only be read from) and one for valid 
> destination partitions (which can be accessed read/write) and any other 
> partition will be ignored. The script verifies that at least one valid 
> source and one valid destinatiton exists before continuing. Now I want 
> to start the webifying but I need your help (pretty please?)!
> 
>   I am trying to decifer the CUPS source but it is quite out of my 
> league so alas... :)

Remember:  Cups runs it's own webserver on port 631, it is not a cgi for
another web server.  Cups runs as root, so it can do whatever it has to
for different users.  It is no indication of what cgi under some other
web server can or can't do.

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list