You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Redhat Enterprise <re...@yahoo.com> on 2004/07/15 20:54:00 UTC

[users@httpd] htpasswd issue - help needed urgently- thanks

hi, 

I just complied in 

Server version: Apache/2.0.50

When i try to execute the command 

htpasswd -cm svn-auth-file user1

it gives me the following error

htpasswd: could not determine temp dir

what could i be missing here.

Thanks for your time!!


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd issue - help needed urgently- thanks

Posted by Joe Orton <jo...@redhat.com>.
On Sun, Jul 18, 2004 at 11:46:19PM -0400, BlkPoohba wrote:
> Ok.  This what I know.  I installed it from yum.  yum install httpd
> This is what i get when I check the version of httpd:
> # httpd -v
> Server version: Apache/2.0.50
> Server built:   Jul  1 2004 08:49:07
> 
> Now... I don't know what that server built is referring to because I had
> httpd running for some time now and I did a remove and install on it
> only after I sent the first email about this problem.  This is running
> on Linux, RedHat fedora core 1 if that makes any difference.

This is a bug in the version of APR shipping in Fedora Core 1.  I've
filed https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=128144 and
we'll get an update issued.

Regards,

joe

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd issue - help needed urgently- thanks

Posted by BlkPoohba <po...@blkpoohba.dyndns.org>.
Ok.  This what I know.  I installed it from yum.  yum install httpd
This is what i get when I check the version of httpd:
# httpd -v
Server version: Apache/2.0.50
Server built:   Jul  1 2004 08:49:07

Now... I don't know what that server built is referring to because I had
httpd running for some time now and I did a remove and install on it
only after I sent the first email about this problem.  This is running
on Linux, RedHat fedora core 1 if that makes any difference.

On Fri, 2004-07-16 at 11:41, Joshua Slive wrote:
> On Fri, 16 Jul 2004 11:15:10 -0400, BlkPoohba
> <po...@blkpoohba.dyndns.org> wrote:
> > I really am not trying to be difficult.  I have tried this as root and
> > no matter where I try I get the same result.  And root can write
> > anywhere but just in case something was funny, I tried it in various
> > directories and get the same error.  I don't know exactly what it is I
> > should be looking for in the syscall so I put the last few lines from
> > after I put in the password.:
> 
> Ok.  I don't see any problem there.
> 
> One question: are you *absolutely positive* that you are using the
> htpasswd from 2.0.50.  Some previous versions have a bug that could be
> causing this.
> 
> In particular, check to see that the version of apache that you used
> to compile htpasswd has this fix:
> http://cvs.apache.org/viewcvs.cgi/apr/file_io/unix/tempdir.c?r1=1.2.2.1&r2=1.2.2.2
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd issue - help needed urgently- thanks

Posted by Joshua Slive <js...@gmail.com>.
On Fri, 16 Jul 2004 11:15:10 -0400, BlkPoohba
<po...@blkpoohba.dyndns.org> wrote:
> I really am not trying to be difficult.  I have tried this as root and
> no matter where I try I get the same result.  And root can write
> anywhere but just in case something was funny, I tried it in various
> directories and get the same error.  I don't know exactly what it is I
> should be looking for in the syscall so I put the last few lines from
> after I put in the password.:

Ok.  I don't see any problem there.

One question: are you *absolutely positive* that you are using the
htpasswd from 2.0.50.  Some previous versions have a bug that could be
causing this.

In particular, check to see that the version of apache that you used
to compile htpasswd has this fix:
http://cvs.apache.org/viewcvs.cgi/apr/file_io/unix/tempdir.c?r1=1.2.2.1&r2=1.2.2.2

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd issue - help needed urgently- thanks

Posted by BlkPoohba <po...@blkpoohba.dyndns.org>.
I really am not trying to be difficult.  I have tried this as root and
no matter where I try I get the same result.  And root can write
anywhere but just in case something was funny, I tried it in various
directories and get the same error.  I don't know exactly what it is I
should be looking for in the syscall so I put the last few lines from
after I put in the password.:

write(3, "New password: ", 14New password: )          = 14
read(3, "NewPasswd\n", 4096)            = 10
write(3, "\n", 1
)                       = 1
ioctl(3, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost isig icanon echo
...}) = 0
close(3)                                = 0
munmap(0xbf591000, 4096)                = 0
open("/dev/tty", O_RDWR|O_CREAT|O_TRUNC, 0666) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(3, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost -isig icanon
-echo ...}) = 0
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(5, 0), ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost -isig icanon -echo
...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xbf591000
write(3, "Re-type new password: ", 22Re-type new password: )  = 22
read(3, "NewPasswd\n", 4096)            = 10
write(3, "\n", 1
)                       = 1
ioctl(3, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost isig icanon echo
...}) = 0
close(3)                                = 0
munmap(0xbf591000, 4096)                = 0
time(NULL)                              = 1089990581
getcwd("/home/poohba", 4096)            = 13
write(2, "htpasswd: could not determine te"..., 39htpasswd: could not
determine temp dir
) = 39
exit_group(1)

I don't see any reference to a temp dir though.


On Fri, 2004-07-16 at 09:23, Joshua Slive wrote:
> On Thu, 15 Jul 2004 23:25:40 -0400 (EDT), Poohba
> <po...@blkpoohba.dyndns.org> wrote:
> > /tmp has 150MB left.
> 
> You're not being very proactive here, which means we need to keep on
> playing Q&A... Have you actually tried to write a file to /tmp
> yourself?
> 
> Can you try
> strace htpasswd -cm svn-auth-file user1
> and look at the syscall that attempts to write to /tmp to see why it is failing.
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd issue - help needed urgently- thanks

Posted by Joshua Slive <js...@gmail.com>.
On Thu, 15 Jul 2004 23:25:40 -0400 (EDT), Poohba
<po...@blkpoohba.dyndns.org> wrote:
> /tmp has 150MB left.

You're not being very proactive here, which means we need to keep on
playing Q&A... Have you actually tried to write a file to /tmp
yourself?

Can you try
strace htpasswd -cm svn-auth-file user1
and look at the syscall that attempts to write to /tmp to see why it is failing.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd issue - help needed urgently- thanks

Posted by Poohba <po...@blkpoohba.dyndns.org>.
/tmp has 150MB left.

************************************************************************** 
This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.


On Thu, 15 Jul 2004, Joshua Slive wrote:

> On Thu, 15 Jul 2004 21:34:16 -0400 (EDT), Poohba
> <po...@blkpoohba.dyndns.org> wrote:
> > I have my env set to /tmp  TEMP=/tmp but I still get that error message
> > even if I try it as root.
> 
> That's not surprising, since that is already in the list of
> directories that will be tried by default.
> 
> Does /tmp perhaps have no diskspace left?
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd issue - help needed urgently- thanks

Posted by Joshua Slive <js...@gmail.com>.
On Thu, 15 Jul 2004 21:34:16 -0400 (EDT), Poohba
<po...@blkpoohba.dyndns.org> wrote:
> I have my env set to /tmp  TEMP=/tmp but I still get that error message
> even if I try it as root.

That's not surprising, since that is already in the list of
directories that will be tried by default.

Does /tmp perhaps have no diskspace left?

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd issue - help needed urgently- thanks

Posted by Poohba <po...@blkpoohba.dyndns.org>.
I have my env set to /tmp  TEMP=/tmp but I still get that error message 
even if I try it as root.

************************************************************************** 
This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.


On Thu, 15 Jul 2004, Joshua Slive wrote:

> On Thu, 15 Jul 2004 11:54:00 -0700 (PDT), Redhat Enterprise
> <re...@yahoo.com> wrote:
> > hi,
> > 
> > I just complied in
> > 
> > Server version: Apache/2.0.50
> > 
> > When i try to execute the command
> > 
> > htpasswd -cm svn-auth-file user1
> > 
> > it gives me the following error
> > 
> > htpasswd: could not determine temp dir
> > 
> > what could i be missing here.
> > 
> 
> apr (the library used by htpasswd) looks in the following locations to
> find a writable directory to store temp files:
> 
>          $TMP
>           $TEMP
>           $TMPDIR
>           "C:\TEMP"     (windows only)
>           "SYS:\TMP"    (netware only)
>           "/tmp"
>           "/var/tmp"
>           "/usr/tmp"
>           P_tmpdir      (POSIX define)
>           `pwd` 
> 
> Apparently, none of them work in your case.  You can fix this by
> setting the environment variable TEMP (or TMP or TMPDIR) to the path
> to a writable directory.
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htpasswd issue - help needed urgently- thanks

Posted by Joshua Slive <js...@gmail.com>.
On Thu, 15 Jul 2004 11:54:00 -0700 (PDT), Redhat Enterprise
<re...@yahoo.com> wrote:
> hi,
> 
> I just complied in
> 
> Server version: Apache/2.0.50
> 
> When i try to execute the command
> 
> htpasswd -cm svn-auth-file user1
> 
> it gives me the following error
> 
> htpasswd: could not determine temp dir
> 
> what could i be missing here.
> 

apr (the library used by htpasswd) looks in the following locations to
find a writable directory to store temp files:

         $TMP
          $TEMP
          $TMPDIR
          "C:\TEMP"     (windows only)
          "SYS:\TMP"    (netware only)
          "/tmp"
          "/var/tmp"
          "/usr/tmp"
          P_tmpdir      (POSIX define)
          `pwd` 

Apparently, none of them work in your case.  You can fix this by
setting the environment variable TEMP (or TMP or TMPDIR) to the path
to a writable directory.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org