yes, I mentioned that horribly at the end of my description.
My sudoers enrty looks like this.
Cmnd_Alias OMADDU = /opt/scalix/bin/omaddu
%group ALL=(ALL) NOPASSWD: OMADDU
the group has the apache user in it, and it does not ask for a password when I su to apache and run it,
Hi All,
I am running Scalix email server and I am looking for a way to build a web interface to add and remove users (this would be much like the way one would add and remove linux users).
I have set the apache user to have rights to run the program in the /etc/sudoers file.
While apache came...
Thanks for pointing me in the right direction...
I ended up using the command
exec("sudo mount --bind /olddir /newdir");
and adding the line
apache ALL=/bin/mount, NOPASSWD: /bin/mount
to my /etc/sudousers file
This only allows apache to sudo the mount command.
Hi there, I am trying to make an interface to do some scripting tools I normally run from a bash script and convert them to php pages.
I need to figure out how to run the command from a webpage
mount --bind /olddir /newdir
This allows me to access files in /olddir by going to /newdir (I'm...
Thanks, just ran a quick test, created a txt file on my desktop and renamed it to test.exe and was able to sucessfully upload it..
This is a server that I have built with FC4 and Apache, PHP, MySQL etc... All updated to the nexest versions.
So it appears to either be a limitation in size, or...
Currently, I am using the following to test an upload page I am building.
<form enctype="multipart/form-data" action="test.php" method="post">
<div align="center">
<p>
Upload</p>
<p><input name="userfile" type="file" /><br />
<input type="submit" value="Upload" />...
as a side note, the article recomends to keep register_globals off.
in order for test.php?testvar=anything to work, you would need to put in the code
$testvar=$_GET['testvar'];
if it is a web based php script (IE you are sending it variables via post or get or some other method), you shouldnt have to modify the permissions.
If you just want to make it an executable, you can do chmod +x script.php
Just so we are clear, when you say "insert row", you are talking about inserting a new id with new notes?
And when you say "add more notes" you are talking about updating a current row? IE: add to the existing data already there?
I dont have a ton of experience with this but I can post some code on what I have found.
This takes a 5 digit league id used for myfantasyleague.com and parses the info I need with the built in PHP XML parser. I then create variables for the parsed data and eventually (not in this example, dump...
Thanks for your reply, but, how would I make this script accept either a variable after the script name, or open a file and read the seperate names in and execute the script?
I have a page that I currently enter a name into a text box and hit submit to POST that data to another PHP page which then uses this name to run a couple of functions and make changes to a mySQL db.
What I am looking to do is either;
A. Turn the 2nd page into an executable that instead of...
Hi there,
I am looking to provide a link to a PHP script, have it parse the comma delimited data on that page so I can enter the data I want into a mysql DB..
Here is an example of the page http://www.fftwelve.com/totstatsfx.php?folder=Monsters&pos=QB&weekstat=YTD&list=all&cnf=1&howmany=
Can...
I was wondering if it is possible to use variables in a sql statement when creating MySQL tables..
For example, if I wanted to add a table called "good" to my database, this would be it..
$sql = 'CREATE TABLE `good`(
`id` int( 5 ) NOT NULL AUTO_INCREMENT ,
`good` int( 4 ) NOT...
I'm sorry, just tried that out.. That is not what I was looking for..
What I am looking for is something like this
http://fozzil.net/Untitled-1.gif
this is an image that I created with photoshop. The bottom word has a black outline around it using the stroke command in photoshop..
Any way to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.