Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-02-2010, 10:43 AM   #1
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 ?

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

Rep: Reputation: 7
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
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453
Blog Entries: 3

Original Poster
Rep: Reputation: 40
thanx ,

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

Rep: Reputation: 0

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

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

thanx in advance


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration