LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-21-2004, 04:59 PM   #1
BrianFFM
LQ Newbie
 
Registered: Sep 2003
Location: Frankfurt Main / Germany
Posts: 5

Rep: Reputation: 0
Script to set userpassword


Hello all,

I have create a script to add a useraccount on my webserver. the script creates all directorys (html, cgi-bin, temp), set the permissions and send me a mail with all informations.

everything run ok but only the password.

export PASSWD=$(pwgen -1 -c -n)

now $PASSWD is the created password.

I try to use passwd or useradd -p

nothing is running .. can some on tell me how is the syntax ??

e.g

passwd -e $USERNAME $PASSWD (not running)
useradd -g ftpuser -d /var/www/$USERNAME -s /bin/ftp -m $USERNAME -p $PASSWD (not running)

Help please

Thanx, Brian
 
Old 08-13-2005, 10:47 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I ran into the same/similar problem last spring. Here is a link to paper I started on the subject:
http://www.adamsinfoserv.com/twiki/b...aUserScripting

Unfortunately, it is incomplete.

Because the commands involved vary from distro to distro (see Discussion),
it would be very helpful if you would tell us what distro you are using.
 
Old 08-30-2005, 08:02 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
What happened? ... Inquiring minds want to know.
 
  


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
Script to set up permissions amwink Linux - General 2 10-22-2005 09:32 AM
LDAP Authentication(UserPassword validation) joeyBig Linux - General 4 09-21-2004 05:50 PM
Script to set userpassword BrianFFM Programming 3 02-24-2004 05:19 AM
How to set iptables script for lan matthewchin Linux - Networking 4 07-21-2003 04:23 AM
how to set cgi script willl_hunting Linux - Newbie 3 03-20-2001 09:40 PM

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

All times are GMT -5. The time now is 12:50 AM.

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