[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] HTACCESS



Here's a good one that I can't figure out:

I have :
/home/sites/home/cgi-bin/pw/

I want to password protect this directory.
I have:
.htaccess:

require valid-user
AuthName EnterPW
AuthType Basic
AuthUserFile /home/sites/home/cgi-bin/pw/.htpasswd 


I then did usr/sbin/htpasswd ?c /home/sites/home/cgi-bin/.htpasswd username

However, when the password box comes up. It doesn't work.
Any ideas why?

Thanks




At 05:19 PM 6/22/00 +0100, you wrote:
Actually, I missed a bit:

> > A couple of days on this list someone posted the directions
> > to change it so
> > that you can have full root access when you ftp.
>
> I missed those, but a little investigation show that...
>
> > Can you please post this and to reconfirm, if I just need
> > root access via
> > ftp for a short while, I can just uncomment what I changed
> > for it to go
> > back to they it was?
>
> ..."all" you need to do is to edit /etc/ftpusers and remove
> or # out root
> from the file.
>
> Of course, you know this is a VERY BAD idea. This means your
> root password
> is flying across the internet in clear text. If you really
> must do this,
> immediately change the file back *AND* change your admin/root
> password at
> the same time.

You also need to add the following line to /etc/proftpd.conf

RootLogin on

Then restart inetd:
/etc/rc.d/init.d/inet restart

Regards,
Jonathan Michaelson

Way to the Web Ltd
Commercial CGI Scripting, Web Hosting
http://www.waytotheweb.com

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users