LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2016, 12:21 PM   #1
itsallgood
LQ Newbie
 
Registered: Jan 2015
Posts: 8

Rep: Reputation: Disabled
Question How do I change a password for a folder on a web server?


All..

New to Linux, new to the forums, thanks for having me!

Anyway, I inherited a simple Linux web server and I know next to nothing about it. Previous admin hosted files in a folder on this web server and gave out the username 'ezdownload' and password to those who needed access.

The folder structure looks like this: /software/webserver/apps

I need to change the password for ONLY the 'apps' directory. There are two other folders under the Webserver directory that I do not want to touch.

Looks like I might be able to do this, type: htpasswd -c /software/webserver/apps ezdownload

But I'm not sure if I have that syntax right so I thought I should ask first. Because if I screw this up then I really am up a creek.. also, do I need to browse to the apps directory first before running the command?

thanks for your help!
 
Old 08-08-2016, 12:42 PM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,166
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
Yeah, no. Don't use that.

Code:
man htpasswd
shows
PHP Code:
-c     Create the passwdfile
so I'd use:
Code:
htpasswd /software/webserver/apps ezdownload
which will prompt for password change only for user ezdownload.

Last edited by Habitual; 08-08-2016 at 12:46 PM.
 
  


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
How to Change Email password from web?? POstfix....... surajthapa Linux - Server 1 03-16-2010 11:22 AM
Password protect a web folder on apache andy1974 Linux - Security 13 05-15-2009 02:28 AM
Change user password from web page goossen Linux - Server 6 07-31-2008 08:37 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM


All times are GMT -5. The time now is 08:33 AM.

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