Re: [cgiwrap-users] 'with rewrite' option
Brought to you by:
nneul
From: Mark M. <mar...@um...> - 2001-10-19 19:15:50
|
On Fri, 19 Oct 2001, Joe Hourcle wrote: > --with-rewrite=FILE > use a file to rewrite user directories > > Unfortunately, I can't seem to find documentation on what the format of > this file is. Can someone point me in the right direction? The format of the file is lines of the form: username:relative/path/to/cgi-bin/directory/from/home/directory Documentation begins on line 1149 of the file util.c :) > [I mean, hell, I ideally, I'd love to be able to tell it to completely > ignore the password file, and use something else, but without breaking > digging through the code, I'm going to assume that it's just using > standard system calls, [which doesn't necessarily use the standard > password file, of course]] Well, digging through the code, on line 90 of cgiwrap.c we have: /* Now, get whatever information that is available about that */ /* user - fetch this information from the passwd file or NIS */ if ( !(user = getpwnam(userStr)) ) { MSG_Error_NoSuchUser(userStr); } So you don't need a /etc/passwd file as long as your getpwnam() function in the standard library knows where to get user information. In other words, your assumption appears to be a valid one. By the way, many thanks to Nathan for a great program! I think it is much better than suEXEC. Mark Montague LS&A Information Technology The University of Michigan mar...@um... |