Thanks, Dave! I'll try it out. Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Dave Cragg > Sent: Friday, February 06, 2004 1:50 AM > To: 'How to use Revolution'; 'Improvements to Revolution' > Subject: Re: How do you pass authentication on the command line? > > > At 1:01 am -0600 6/2/04, Ken Ray wrote: > >I have a situation where I've got Panther running on my G4 > and it has > >Web Services turned on. A Rev CGI is running that reaches out of the > >web server directory to another directory on disk to write a > text file > >in a specific folder. However once it does this, the owner > of the file > >is "www" (with read/write permissions) and the group is > "wheel" (read > >only > >permission) and the "Other" also only has read-only > permission. What I > >then need to do is have another standalone Rev app on the > same machine > >open, edit, and save back to that same file. The problem is > that I can't > >do that with the current permissions, and the only way I > know to make it > >happen is to do a "sudo chown" through the terminal... but > it asks for > >password authentication. I need to be able to do it straight > from Rev. > > > >So how do you "sudo" via shell() in Rev and pass > authentication on the > >command line? > > Not answering your question exactly, but couldn't you have the CGI > script do a chmod on the file with shell just after it saves it. This > won't need sudo as the CGI runs as the owner of the file and can > change permissions. I just tested here and it worked. > > Cheers > Dave > _______________________________________________ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-> revolution > _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
