LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   htaccess on TinySofa (https://www.linuxquestions.org/questions/linux-security-4/htaccess-on-tinysofa-231762/)

tommytomato 09-17-2004 09:05 AM

htaccess on TinySofa
 
can any one tell me what this mean please, so i can find a fix for it..

htpasswd -c /home/httpd/pass/passwords user_name
New password:
Re-type new password:
htpasswd: could not determine temp dir

I've done this so many time, but never seen this


TT

unSpawn 09-25-2004 07:24 AM

htpasswd: could not determine temp dir
Try this as the user you use htpasswd as: "env| grep ^TM".
This should return tempdir vars like TMP, TEMP.
If not, set them.

tommytomato 09-25-2004 06:41 PM

thank you for the relpy

I got it worked out

I had to updare apr on my system

TT

alireza 10-21-2004 07:56 AM

Similar problem
 
Hi,

I have similar problem with htpasswd , How can i set tmp directory on my machine?
It would be appreciated if you can help me;

Thanks.

tommytomato 10-21-2004 07:59 AM

All i can remeber is i had to update some thing on my Linux box and it worked.

I'll hunt around and have a look for it

TT

tommytomato 10-21-2004 08:07 AM

This is from my notes

Hope it helps you out

Quote:

Password Protect web folders

Step 1
==================================================================================
System is Trustix 2.1
==================================================================================
Created a folder called ( protect ) /home/httpd/html/protect/
then add in the .htaccess file into the folder.
-------------------------------------------------------------------------
also put your web contect into the same folder /home/httpd/html/protect/
-------------------------------------------------------------------------

sample of .htaccess file below, use note pad and save as ( .htaccess )

----------------------------------

AuthType Basic
AuthName "You Wish Jelly Wish"
AuthUserFile /home/pass/passwords
Require user user_name user_name

----------------------------------

created a password file and place it into the folder called ( pass )

use note pad and save as ( passwords )

folder is /home/pass

The run the htpasswd -c command

---------------------------------------------------
Sample: htpasswd -c /home/pass/passwords user_name
---------------------------------------------------

htpasswd will ask you for the password, and then ask you to type it again to confirm it

---------------------------------------------------------
# htpasswd -c /home/pass/passwords user_name
New password: mypassword
Re-type new password: mypassword
Adding password for user user_name
---------------------------------------------------------

Check your password file by doing this below
--------------------------------------------
vi /home/pass/passwords
--------------------------------------------

To add a new user to htpasswd please go to the directory were the file

# cd /home/pass
#htpasswd passwords demo

Step 2
==================================
Apache Configuration httpd.config
==================================

Open your httpd.config file /etc/httpd/conf/httpd.conf

vi /etc/httpd/conf/httpd.conf


at the bottom at this to the httpd.conf file

---------------------------------------

<DIRECTORY /home/httpd/html/protect>

AllowOverride AuthConfig

</DIRECTORY>

----------------------------------------

Now do a restart Apache web server

--------------------------
/etc/init.d/httpd restart
--------------------------


All times are GMT -5. The time now is 12:50 PM.