LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2010, 10:43 AM   #1
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453
Blog Entries: 3

Rep: Reputation: 40
standalone htpasswd without apache


hi ,

i'm trying to find a standalone htpasswd that works from the terminal without having to install apache

where can i find something like that ?

doesn't linux have a default utility for encrypting unix-style passwd files ?

cheers
 
Old 09-02-2010, 11:49 AM   #2
goldenbarb
Member
 
Registered: Aug 2010
Distribution: Fedora, Centos, Debian
Posts: 49

Rep: Reputation: 7
Code:
#!/usr/bin/perl
use strict;
 
my $passWord=$ARGV[0];
print crypt($passWord,$passWord)."\n";
Found here.
 
1 members found this post helpful.
Old 09-02-2010, 12:56 PM   #3
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
thanx ,

that's was quite easy ..lol
 
Old 08-17-2011, 06:41 AM   #4
Suman yuvraj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
$argv[0]

hi,
what does $ARGV[0] stores and how the following syntax will work

my $passWord=$ARGV[0];
print crypt($passWord,$passWord)."n";

thanx in advance
 
  


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
apache ldap authentication with htpasswd laggerific Linux - Software 3 01-07-2010 08:37 AM
Apache: htpasswd error daedalus703 Linux - Software 1 04-03-2006 12:03 AM
Apache Cannot Open .htpasswd File alerola Linux - Security 4 02-11-2006 01:59 AM
[apache] disable htpasswd in subtrees? yapp Linux - Networking 4 01-13-2005 11:22 PM
Apache .htpasswd use windows authentication? meeshka Linux - Networking 1 07-14-2003 10:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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