weird password popup on "admin" mentions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers weird password popup on "admin" mentions
# 1  
Old 06-24-2010
weird password popup on "admin" mentions

I had a site that sold stock photography and some guys I know set up a shopping cart and gallery system for it. One thing they did was give me an admin page (mysite.net/admin) where I could upload new images and change prices and all that. For that admin page they set a password popup prompt.

I have since dropped the stock photo business and am running a blog on the same server in the same domain, but whenever I am working on a post in the blog's admin area, I get this old popup from the old shopping cart version of the site askign for a username and password.

It's not such a hassle for me, but I have other people working on the blog with me and it confuses them. I asked my friends who set it up but they can't remember where they set the password prompt to come up.

The username is not related to my shell usernames or any account on the system that I am aware of. It is not a password protected directory either, as far as I can tell.

I'm running CentOS with MediaTemple hosting on a dedicated virtual server.

Where might they have set up something like this in the system?

Last edited by lex0062; 06-24-2010 at 04:27 PM..
# 2  
Old 06-24-2010
On Apache it might be buried in an .htaccess file. MediaTemple I'm less sure.
# 3  
Old 06-25-2010
It's an Apache server. MediaTemple is just the hosting company.

I looked in the .htaccess file and there was nothing there that I could find. This is the one in the /mydomain.com/httpdocs/ directory, right? There isn't another one somewhere?
# 4  
Old 06-25-2010
Quote:
This is the one in the /mydomain.com/httpdocs/ directory, right? There isn't another one somewhere?
There may be one in any of the subdirectories under /mydomain.com/httpdocs/
# 5  
Old 06-25-2010
Ok, I found a file called htpasswd in the /var/www/vhosts/mydomain.com/conf/ directory and it has the username and an encrypted password, and it appears some code was inserted into httpd.conf in the same directory, but I cannot edit httpd.conf as I get a permission error when I try to save it, even though I am operating as root. This would seem to be related to the use of Plesk for virtual host control, and I see instructions around the web for using a vhost.conf file to insert information into the httpd.include file, but nothing about how to remove things from that file.

Here is the text that was inserted into httpd.include :

Code:
<LocationMatch "/admin*">
AuthName "Need Password"
AuthType Basic
AuthUserFile /var/www/vhosts/mydomain.$
require valid-user
</LocationMatch>

How do I remove that?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Shell Programming and Scripting

Weird behavior of command "local"

Hi there, I'm running into a very weird situation. Let's forget about the purpose of my initial script please. I noticed the bug whatever I'm trying to do. I'm on an old server running bash 3.1.17. Say we have the following script : foo:~# cat /tmp/test #!/bin/bash f1() { local... (9 Replies)
Discussion started by: chebarbudo
9 Replies

3. AIX

Change "root" to "root.admin" in outgoing e-mails

Our AIX servers send e-mails which have the "from" address set to "root@company.com" for our root user ("C{M}company.com" in /etc/sendmail.cf). The problem is that when bad e-mails are sent out or rejected by remote servers, they are being returned and delivered to e-mail box of "Mary Root". ... (2 Replies)
Discussion started by: kah00na
2 Replies

4. Shell Programming and Scripting

Commenting out "expr" creates weird behavior

This really puzzles me. The following code gives me the error 'expr: syntax error' when I try to do multi-line comment using here document <<EOF echo "Sum is: `expr $1 + $2`" EOF Even if I explicitly comment out the line containing the expr using "#", the error message would still exist... (3 Replies)
Discussion started by: royalibrahim
3 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

find: "weird" regex behaviour

I have these two files in current dir: oos.txt oos_(copy).txt I execute this find command:find . -regex './oos*.txt'And this outputs only the first file (oos.txt)! :confused: Only if I add another asterisk to the find find . -regex './oos*.*txt' do I also get the second file... (7 Replies)
Discussion started by: courteous
7 Replies

7. OS X (Apple)

Weird "security" bahavior with SSL certificates

Hello, I have been attempting to automate the addition of SSL certificates to keychains on a MAC using the "security" command. I've noticed two things, 1 of which I don't understand. 1. If I use something like "security add-trusted-cert -d -k /System/Library/Keychains/SystemRootCertificates... (1 Reply)
Discussion started by: prafulnama
1 Replies

8. Shell Programming and Scripting

Weird problem with output from "date '+3600*%H+60*%M+%S' "

Hi, I came across a script a few months ago that allowed you to use the following script to include the current time into your prompt (useful from auditting purposes): # Set Prompt typeset -RZ2 _x1 _x2 _x3 let SECONDS=$(date '+3600*%H+60*%M+%S')... (5 Replies)
Discussion started by: m223464
5 Replies
Login or Register to Ask a Question