LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-08-2008, 12:34 PM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
simple php user administrator


I want to do a simple PHP code which makes possible to add user on my linux PC.
I just want to read the input from the PHP source (input) and call the shell_exec with useradd command.

something like this:
<?php
$name = "name";
$password = "password";
$command = "adduser ".$name." -p ".$password;
shell_exec($command);
?>

It is that possible??
I don't know if the command useradd will work this way. (it doesn't!)

Or there is any better (already existing) solution to manage the users on a linux server (slackware)??
 
Old 06-08-2008, 11:29 PM   #2
sunethj
Member
 
Registered: Nov 2006
Posts: 97

Rep: Reputation: 16
did you try webmin. It can do almost all system administration tasks. If you only want to do user administration you can create a webmin user and give user management privileges.
 
Old 06-09-2008, 02:41 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
Oh...
This was exactly what I was looking for.
Thank you.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where to get linux administrator script, ex: script to let's user change user info. hocheetiong Linux - Server 1 03-17-2008 12:06 AM
Hi. My name is TheFourthDoctor and I'm (now) a Linux user/administrator. TheFourthDoctor LinuxQuestions.org Member Intro 2 06-11-2007 06:00 PM
How do I switch ROOT/ADMINISTRATOR to another user?? Balarabay1 Linux - Software 4 07-21-2006 03:54 AM
550 relaying to <user@host.com> prohibited by administrator mighty_falcon Linux - Software 2 05-11-2006 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration