Results 1 to 3 of 3
Hey
So i'm working on a small simple servermanagement app in php to manage the ubuntu server.
Someone told me I have to use the shell_exec() command in php to ...
- 08-22-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 3
adding users in php with shell_exec() command?
Hey
So i'm working on a small simple servermanagement app in php to manage the ubuntu server.
Someone told me I have to use the shell_exec() command in php to execute the commandlines in ubuntu.
I did a ping test wich works...
But now I want to add a user, so from my understanding I could just do this...PHP Code:$ping = shell_exec('ping -c 1 -w 1 google.com');
echo "<pre>{$ping}</pre>";
But I can't seem to add any users.PHP Code:$user = $_POST['user'];
$out = shell_exec('adduser' .$user);
When I list my user using "users" command in ubuntu, I only see my loginname.
How do I add users using php?
- 08-22-2010 #2Just Joined!
- Join Date
- Aug 2010
- Posts
- 3
Please someone help me out. I need to do a lot of root command through this php application.
I need to know how I can do root commands via php
I know it's shell_exec() but not all the commands work.
Can someone help me out?
- 08-22-2010 #3Just Joined!
- Join Date
- Aug 2010
- Posts
- 3
do I need to do something on the ubuntu server before I can use this shell_exec() function?
I've tried everything I could find and I'm at the end of my rope here!


Reply With Quote