TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-26-2009, 07:05 AM   #1 (permalink)
The Visitor
Newcomer 
 
Join Date: May 2009
Posts: 1
Thanks: 0
shanto19 is on a distinguished road
Unhappy apache user cannot execute useradd via sudo

Hi all
My server is REHL 5 with php 5.1.6.
In my app I want apache to add user through sudo.

My sudoers file is:
Quote:
%apache ALL=(ALL) NOPASSWD: ALL
apache ALL=(ALL) NOPASSWD: ALL
My test.php :
PHP Code:
<?php
$username
="hixhix";
system("/usr/bin/sudo /usr/sbin/useradd -s /sbin/nologin -M $username",$returnvalue);
echo 
"return value: $returnvalue";
?>
However, user 'hixhix' not created by apache at all, it always returned 1.
how can I make my apache tu add user using sudo?
Please help me. I need your help.
Thanks and regards.
shanto19 is offline  
Reply With Quote
Old 11-12-2012, 07:41 AM   #2 (permalink)
The Contributor
 
Join Date: Oct 2012
Posts: 46
Thanks: 0
ww628815 is on a distinguished road
Default

Nike used basketball as a reference sport because Authentic Air Jordan Retro 3 probably the sporting events that produce extensive standby time with the feet. The basketball players are always running around and making sudden twists and turns to obtain the ball faraway from their opponents. 2012 New Jordan Shoes , they require the assistance of an good shoe to arise Wholesale Air Jordan Retro 6 the feet to throw the ball within the hoop.
ww628815 is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy to Modify Login Script with Hierarchical User Permissions and XML Account File Wildhoney Script Giveaway 4 05-04-2011 06:11 AM
Apache down! Apache down! delayedinsanity General 1 05-04-2008 09:24 PM


All times are GMT. The time now is 03:36 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design