Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

htpasswd creating passwd file probs

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  I give up - easy answer on user doc root I am sur..  
Author Message
sliver

External


Since: Nov 09, 2003
Posts: 3



(Msg. 1) Posted: Sun Nov 09, 2003 6:06 am
Post subject: htpasswd creating passwd file probs
Archived from groups: alt>apache>configuration (more info?)

Hey all!

I haven't had problems with using htpasswd before - but lately, my head is
spinning....

I run the command to make a password (eg. htpasswd -c
/home/user/passwords/passwd dude). It'll prompt for a password 2 times,
then say's it made it. If I'm logged in as root - the file isn't created.
If I'm logged in as user - the file is created, BUT, it wouldn't work....I
stirred and stirred (and fried), then I found that the permissions for the
passwd file were wrong (600)...when I make it (644) all's good!

I guess I'm wondering - Is this normal?...do you have to chmod the passwd
file once it's made always? Why can't root use htpasswd? Does any of this
make sense?

Thanks!

 >> Stay informed about: htpasswd creating passwd file probs 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sun Nov 09, 2003 10:29 am
Post subject: Re: htpasswd creating passwd file probs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

sLIVER <sLIVER.DeleteThis@dontemailmeanyspam.not> wrote:
 > I guess I'm wondering - Is this normal?...do you have to chmod the passwd
 > file once it's made always?

If you create it with the wrong permission yes, umask is used to
decide the permission of new files/directories.

 > Why can't root use htpasswd?

This I don't know. Check the log files of your system. Since htpasswd
uses the crypt libraries, maybe those are broken.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: htpasswd creating passwd file probs 
Back to top
Login to vote
sliver

External


Since: Nov 09, 2003
Posts: 3



(Msg. 3) Posted: Sun Nov 09, 2003 5:25 pm
Post subject: Re: htpasswd creating passwd file probs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure RemoveThis @onlyforfun.net> wrote in message
news:bokqcr$1fofta$3@ID-18487.news.uni-berlin.de...
 > sLIVER <sLIVER RemoveThis @dontemailmeanyspam.not> wrote:
  > > I guess I'm wondering - Is this normal?...do you have to chmod the
passwd
  > > file once it's made always?
 >
 > If you create it with the wrong permission yes, umask is used to
 > decide the permission of new files/directories.
 >
  > > Why can't root use htpasswd?
 >
 > This I don't know. Check the log files of your system. Since htpasswd
 > uses the crypt libraries, maybe those are broken.
 >
 > Davide
Thanks! I'm still not sure why htpasswd would give the file those
permissions when it didn't a while ago. What is the ideal file permissions
for the passwd files?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htpasswd creating passwd file probs 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Sun Nov 09, 2003 5:37 pm
Post subject: Re: htpasswd creating passwd file probs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

sLIVER <sLIVER.TakeThisOut@dontemailmeanyspam.not> wrote:
 > Thanks! I'm still not sure why htpasswd would give the file those
 > permissions when it didn't a while ago. What is the ideal file permissions
 > for the passwd files?

The permission aren't really important, as long as the file can
be read by the Apache process, the most important thing is to
put the file somewhere where he can't be reached trought the Web.
So, don't put it somewhere in your htdocs tree, put it in /etc/ or
something. Where the other configuration files of apache are is fine,
be sure to include the full path of the file in the AuthPasswdFile
directive.

Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htpasswd creating passwd file probs 
Back to top
Login to vote
sliver

External


Since: Nov 09, 2003
Posts: 3



(Msg. 5) Posted: Sun Nov 09, 2003 10:13 pm
Post subject: Re: htpasswd creating passwd file probs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message
news:boljed$1bcpmg$2@ID-18487.news.uni-berlin.de...
 > sLIVER <sLIVER.RemoveThis@dontemailmeanyspam.not> wrote:
  > > Thanks! I'm still not sure why htpasswd would give the file those
  > > permissions when it didn't a while ago. What is the ideal file
permissions
  > > for the passwd files?
 >
 > The permission aren't really important, as long as the file can
 > be read by the Apache process, the most important thing is to
 > put the file somewhere where he can't be reached trought the Web.
 > So, don't put it somewhere in your htdocs tree, put it in /etc/ or
 > something. Where the other configuration files of apache are is fine,
 > be sure to include the full path of the file in the AuthPasswdFile
 > directive.
 >
 > Davide
Ya, the setup is all correct, again, it was just something I noticed lately
about setting up new passwords. It works once I change the permissions.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htpasswd creating passwd file probs 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
multiple users in .htpasswd each having its own .txt file - hello all I am running apache 1.3.8 on my linux server I have setup a directory under /usr/local/apache/htdocs/allusers. Under allusers I have files for each user user1.html, user2.html etc, all owned by root Is there a way so that when any of these..

Accidently Deleted htpasswd file from bin - Hi, I am running Apache on a Windows XP machine. I have Accidently Deleted htpasswd file from bin and in a bit of trouble, can I download this file from anywhere? Janusz -- ***************************************************** QOTSA: "Nicotine...

SSI installation probs - Hello All, I'm trying to get SSI running on Apache2 with no success. I've followed all the instructions/ suggestions that I can find, but I can not figure out what I'm doing wrong. Hopefully someone can spot what's out-of-whack with my http.conf file...

Creating SSL Certs - Hi Folks, i have troubles to create certs for my ssl server. i did these steps like descriped at http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#keyscerts $ openssl genrsa -des3 -out server.key 1024 $ openssl rsa -noout -text -in server.key $..

Log file question - Hi, I'm new at apache and I couldn't figure out by the doc the config so that the requests for image files *.gif, *.jpg, etc are not logged. Right now when a page is requested it gives me one line for each image which makes the log file huge and hard to...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]