Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

SSH and .htpasswd

LEGEND ,
Feb 11, 2007 Feb 11, 2007

Copy link to clipboard

Copied

I have web-based SSH access to a site via control panel. I need to have
several password protected folders (each with their own password) on this
site. The instructions sent me by the host seem to only include the
possibility of having a single user/password combination, because each time
I use the command line, it seems to create a new .htpasswd file.

My question is, is it possible to have several different password/user
combinations under this kind of environment?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================



TOPICS
Server side applications

Views

472
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 11, 2007 Feb 11, 2007

Copy link to clipboard

Copied

Yes you can, see the user docs at:



Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 11, 2007 Feb 11, 2007

Copy link to clipboard

Copied

Sorry, accidentaly sent before I finished. Should be:

Yes, you can, see the user docs at:

http://httpd.apache.org/docs/1.3/programs/htpasswd.html

This explains all the switches and parameteres for .htpassword, so you can
add to an existing file.


--
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 11, 2007 Feb 11, 2007

Copy link to clipboard

Copied

Gareth - thanks.

So, if I have -

jane smith
john doe

in the .htpassword file, then I can restict a folder containing an .htaccess
with user jane to only those who enter 'smith' as the pasword, while another
folder containing an .htaccess with user john to only those who enter 'doe'
as the password?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"gareth" <support@nospam_phploginsuite.co.uk> wrote in message
news:eqnh6p$su5$1@forums.macromedia.com...
> Sorry, accidentaly sent before I finished. Should be:
>
> Yes, you can, see the user docs at:
>
> http://httpd.apache.org/docs/1.3/programs/htpasswd.html
>
> This explains all the switches and parameteres for .htpassword, so you can
> add to an existing file.
>
>
> --
> Gareth
> http://www.phploginsuite.co.uk/
> PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 11, 2007 Feb 11, 2007

Copy link to clipboard

Copied

No, you`d normally have a separate htpasswd file for each directory, as all
the users in the htpasswd file can get access to the directory that its
applied to, unless you specifically specify the user in the .htaccess file.


--
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 11, 2007 Feb 11, 2007

Copy link to clipboard

Copied

So, I can put the .htpasswd file into the folder just like I do with the
.htaccess file? Of course, I'd need to encrypt the password, no?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"gareth" <support@nospam_phploginsuite.co.uk> wrote in message
news:eqnpv0$8ur$1@forums.macromedia.com...
> No, you`d normally have a separate htpasswd file for each directory, as
> all the users in the htpasswd file can get access to the directory that
> its applied to, unless you specifically specify the user in the .htaccess
> file.
>
>
> --
> Gareth
> http://www.phploginsuite.co.uk/
> PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 11, 2007 Feb 11, 2007

Copy link to clipboard

Copied

You can put the htpassword file in the directory with the .htaccess file,
but you don't have to, as long as you put the full path to the .htpasswd
file in the .htaccess file. Usually, .htpasswd files live in a directory
outside the root of your website. They don't have to be called .htpasswd
either so you can have different names for different directories.

The passwords are encrypted inside the .htpasswd file anyway.

Theres a usefull page at http://tools.dynamicdrive.com/password/ that
generates both the htaccess file and htpasswd file for you, you can use it
as an example to see what you need.


--
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 11, 2007 Feb 11, 2007

Copy link to clipboard

Copied

LATEST
Thanks, gareth!

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"gareth" <support@nospam_phploginsuite.co.uk> wrote in message
news:eqnuvb$ea7$1@forums.macromedia.com...
> You can put the htpassword file in the directory with the .htaccess file,
> but you don't have to, as long as you put the full path to the .htpasswd
> file in the .htaccess file. Usually, .htpasswd files live in a directory
> outside the root of your website. They don't have to be called .htpasswd
> either so you can have different names for different directories.
>
> The passwords are encrypted inside the .htpasswd file anyway.
>
> Theres a usefull page at http://tools.dynamicdrive.com/password/ that
> generates both the htaccess file and htpasswd file for you, you can use it
> as an example to see what you need.
>
>
> --
> Gareth
> http://www.phploginsuite.co.uk/
> PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines