LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-11-2004, 04:51 PM   #1
r_squared
Member
 
Registered: Oct 2004
Distribution: RedHat Fedora core 2
Posts: 35

Rep: Reputation: 15
how to I add users to my system thru a program I make?


I am trying to set up a free web site server. And I was wondering how I would go about getting the information from the web page and using it to add users to my server. Do I simply just add lines to the password and shadow files(and if so how to I input the passwords, because they are encrypted)? r^2
 
Old 12-11-2004, 05:45 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
read
Code:
man useradd
and
Code:
man passwd
these are the commands you need to add a user, and set the users password.
 
Old 12-11-2004, 07:15 PM   #3
r_squared
Member
 
Registered: Oct 2004
Distribution: RedHat Fedora core 2
Posts: 35

Original Poster
Rep: Reputation: 15
ok, but how to I get it to do that automaticly? what kind of program can I write to send this data to the shell? r^2
 
Old 12-11-2004, 07:55 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
use a bash script.

you want to add users from a web page? use a form that gets info like desired username and desired password, then feeds it to a CGI bash script.

Last edited by qwijibow; 12-11-2004 at 08:02 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to sort regular users and system users from /etc/passwd joeyBig Red Hat 9 05-29-2008 12:59 AM
I can't add users to "samba users" in control center g_jakes Linux - Security 3 05-20-2005 02:10 PM
can't add users to "samba users" in control center g_jakes Linux - Networking 1 05-20-2005 01:28 PM
can't add users to "samba users" in control center g_jakes Linux - Wireless Networking 1 05-20-2005 01:27 PM
Is it possible to make a Linux server execute a program on a WinXP system? Cichlasoma Linux - General 4 04-23-2004 06:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:14 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