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 08-19-2007, 11:01 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Scripts : password generates agains a user in encrypted mode


Dear Friends ,

I need a script where the script contains a username Like 'jackson' . Now When I execute the script then it prompts me a password against the user jackson And after that it encrypted that password and store it into another text / other file as encrypted mode .

Plz help me ragarding this issue or give me some tips ....

Last edited by shipon_97; 08-20-2007 at 12:16 PM.
 
Old 08-20-2007, 10:38 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Since you didn't define any I'll use Apache's htpasswd:
Code:
#!/bin/sh
htpasswd -n "$1" > /some/file; exit 0
 
Old 08-20-2007, 10:59 AM   #3
sumit dash
Member
 
Registered: Jul 2007
Location: Hyderabad
Distribution: Red Hat
Posts: 33

Rep: Reputation: 15
password

hi,
plz elaborate your question.
 
Old 08-30-2007, 01:15 AM   #4
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Original Poster
Rep: Reputation: 31
Scripts : password generates agains a user in encrypted mode

Thx unSpawn
#!/bin/sh
htpasswd -n "$1" > /some/file; exit 0


The above script is working fine . But for a particular user , if I want to run this script then what will I do ? i.e., , If I want to encrypt passowrd for a particular user Like "Oracle", then what will I do ?
 
  


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
enable password for single user mode cyrulo Linux - Security 3 02-28-2007 12:14 AM
Storing password used in shell scripts in encrypted file Swakoo Linux - Security 2 12-06-2006 10:39 PM
password for single user mode V Naveen Linux - General 1 11-24-2006 05:27 AM
Samba user mode with out password lhrt Linux - Software 3 09-06-2006 08:27 AM
Password Recovery and Single User mode natso Linux - Newbie 4 05-28-2002 04:59 AM

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

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