LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-28-2004, 08:12 AM   #1
alanpollenz
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Add FTP User Via Web Form


I would like to be able to add FTP only users via a PHP web based form. The form would be located in a password protected area and I would be the only one with access to the form. I'm running RH 9.

The following creates the directory and chmods it, but the user is not added. Any ideas?


Code:
system ('useradd testuser -p test');
$dir="testee";
mkdir($dir,0755);

Thanks.

Alan Pollenz
 
Old 05-28-2004, 03:09 PM   #2
donni
Member
 
Registered: Aug 2003
Location: Crawley
Distribution: Debian GNU/Linux Sid
Posts: 49

Rep: Reputation: 15
You should ask this in a programming forum.

If the user isn't added, maybe it's not possible with the permissions granted to the php script.
Don't forget `man useradd` just to make certain.
 
Old 05-28-2004, 05:14 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,066

Rep: Reputation: 295Reputation: 295Reputation: 295
You could also just download and install webmin for this, unless there's some reason why it has to be something you've written yourself.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web form to upload to FTP server phatboyz Linux - Networking 2 05-18-2005 10:26 AM
how to add ftp user. luqman Red Hat 1 02-24-2005 08:51 AM
Web/FTP/Shell user stats software? inspleak Linux - Software 1 04-03-2004 05:54 PM
I want Linux source code for FAT file system in user readable form not in binary form ramya272 Linux - Newbie 5 02-05-2004 07:54 PM
How to add an FTP user who can just read and download the files and folders? yuzuohong Linux - General 1 02-15-2003 12:29 AM


All times are GMT -5. The time now is 12:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration