LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-04-2006, 02:29 PM   #1
yitzhakbg
LQ Newbie
 
Registered: Jul 2003
Location: Beit El, ISRAEL
Distribution: Mandrake 2005 (10.2) LE
Posts: 25

Rep: Reputation: 15
Can't define password inside a script in Ubuntu 6.06


I have a script which creates new users. It worked perfectly well under Mandriva 2006, but It breaks under Ubuntu Dapper Drake.
Following are the two options which don't work:

1. User with no password:

passwd -d $username
Either doesn't work in Ubuntu, or at least will somebody show me what to do.

2. Creating a password like this:

echo $userpass |passwd $username --stdin

Can someone please help?

Thanks,
Yitzhak

Last edited by yitzhakbg; 09-05-2006 at 04:47 AM.
 
Old 09-05-2006, 12:12 PM   #2
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
If I were you. I'd read the manpages first. I#m sure there's some clues to be found.
 
  


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
ssh passwordless question matticus Linux - Newbie 4 07-12-2006 03:45 AM
Can't get passwordless ssh working thorney Linux - Networking 3 11-27-2005 10:08 PM
GDM passwordless login js72 Fedora 4 02-28-2005 03:20 PM
Passwordless SSH for Cluster nedian123 Linux - Networking 3 12-07-2004 10:15 PM
Regarding Passwordless SSH nedian123 Linux - Software 1 08-05-2004 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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