LinuxQuestions.org
Register a domain and help support LQ
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 08-04-2003, 05:24 PM   #1
elam
LQ Newbie
 
Registered: Aug 2003
Posts: 21

Rep: Reputation: 15
htpasswd problems!!!!


Howdy all,

I have recently upgraded my Red Hat Distro from 7.3 to 8.0.
8.0, by default uses Apache 2, which I wasn't aware of.

I have a perl program that lets users manipulate password files that worked fine in apache 1.3, but now I get this curious error:

htpasswd: unable to create temporary file 'htpasswd.tmp.fsvnOz'

Of course, the name changes everytime. I know it's an permissions error, but I can't figure out where. My password file is kept in a top-level directory, outside of the server root, with permissions assigned to user apache, which is what the web server runs as. Even if I change permissions to a+wrx for the entire directory, it doesn't work.

any ideas?

thanks,
elam
 
Old 05-15-2004, 04:09 AM   #2
dbl06
LQ Newbie
 
Registered: May 2004
Location: Nice, France
Distribution: RH8
Posts: 1

Rep: Reputation: 0
htpasswd.tmp

hello, I am not sure I'll bring a reply...just confirm I experience the same issue....
I migrated to RH8 with Apache 2.0
my PHP script
exec('htpasswd -bd path/.htpasswdfile $user $ psw');
the .htpasswd file does not get updated
I tried shell_exec and backticks with no effect
while under Apache 1.3 it works fine!
I also get a httpd error message:
htpasswd: unable to create temporary file 'htpasswd.tmp.D4Fepz'
apache of course is the activator of the script
I have tried to 777 open a /temp dir from the dir where my script is located with no effect
should we know where apache wants to create its temp file, maybe we would have the clue
I've tried to insert echo error_reporting(E_ALL); but nothig shows up
I've tried both relative and absolute paths, with no effect
HELP...
thank you
Daniel, dbl06
 
  


Reply


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
.htaccess .htpasswd plisken Linux - General 5 05-21-2006 02:44 PM
htpasswd integra_twinz Linux - Newbie 10 11-01-2005 11:08 AM
login problems - htaccess / htpasswd mikeindo Linux - Networking 4 10-03-2005 04:18 PM
Help with .htpasswd and .htaccess MikeeX Linux - General 3 03-25-2003 11:41 AM
htpasswd steve_c Linux - General 10 04-16-2002 11:15 AM


All times are GMT -5. The time now is 09:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration