Sponsored Content
Top Forums UNIX for Dummies Questions & Answers weird password popup on "admin" mentions Post 302432630 by lex0062 on Friday 25th of June 2010 02:15:57 PM
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?
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
crlhelper(8)															      crlhelper(8)

NAME
crlhelper - Helper program used to store-and-forward CRLs SYNOPSIS
crlhelper <semid> <parentpid> <directory> [prefix] DESCRIPTION
A helper program used by the Apache httpd mod_revocator plug-in to store-and-forward CRLs from upstream to the various Apache processes in the preform MPM. This saves each process from having to fetch the CRL itself. This is not expected to be run by end-users. The mod_revocator plug-in requires the mod_nss plug-in to also be registered with this Apache httpd process. Whenever an Apache httpd process configured to use the mod_revocator plug-in is started, this program will be automatically invoked via reference to the mod_revocator configuration file stored under /etc/httpd/conf.d/revocator.conf which contains the following default entry: # CRL Helper: # This helper program does the actual CRL retrieval # # NOTE: Located at '/usr/bin/crlhelper' prior # to 'mod_revocator-1.0.3-16'. # CRLHelper /usr/libexec/crlhelper OPTIONS
<semid> The semaphore which corresponds to the mod_revocator plug-in registered with the Apache httpd process during startup. <parentpid> The primary parent pid of the Apache httpd process into which both the mod_nss and mod_revocator plug-ins have been loaded. <directory> Since the mod_revocator plug-in depends upon the mod_nss plug-in being configured, this option specifies the destination directory of the NSS databases that will be associated with this executable specified by the following entry in the mod_nss plug-in's /etc/httpd/conf.d/nss.conf configuration file: # Server Certificate Database: # The NSS security database directory that holds the # certificates and keys. The database consists # of 3 files: cert8.db, key3.db and secmod.db. # Provide the directory that these files exist. NSSCertificateDatabase /etc/httpd/alias [prefix] Optional prefix to attach prior to the names of the NSS certificate and key databases contained in the directory referenced by the previous argument and specified by the following entry in mod_nss plug-in's /etc/httpd/conf.d/nss.conf configuration file (must be uncommented in order to be utilized): # Database Prefix: # In order to be able to store multiple NSS databases # in one directory they need unique names. This option # sets the database prefix used for cert8.db and key3.db. #NSSDBPrefix my-prefix- BUGS
Report bugs to http://bugzilla.redhat.com. AUTHORS
Rob Crittenden <rcritten@redhat.com>. COPYRIGHT
Copyright (c) 2013 Red Hat, Inc. This is licensed under the Apache License, Version 2.0 (the "License"); no one may use this file except in compliance with the License. A copy of this license is available at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITH- OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Rob Crittenden Jul 3 2013 crlhelper(8)
All times are GMT -4. The time now is 03:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy