The tag has no wiki summary.

learn more… | top users | synonyms

-4
votes
1answer
18 views

Problems With Directory And WAMP [on hold]

I'm running WAMP (Windows Apache MySQL PHP) v2.5 and I'm running into a couple problems with a directory. The directory is located in H:\Users\Owner\Documents\web site and I have a symbolic link setup ...
-1
votes
1answer
23 views

Hidden Directory Detected

My company web application had a penetration testing done and there's a risk found is regarding the hidden directory: http://example.com/aux/ http://example.com/cgi-bin/ http://example.com/com1/ ...
0
votes
2answers
28 views

How to restrict access to root to daemon user?

I have Apache 2.4 with PHP 5.5.14 installed on latest Debian. According to Apache security tips&tricks I've set my httpd.conf to this: <Directory /> AllowOverride none Require all ...
0
votes
0answers
20 views

remove special character from files in directory [migrated]

I need to remove special characters from all .htm files in a directory. Ideally I need to keep the file name but if I have to I can copy each file to 1 or something like that. Here is the command I ...
0
votes
1answer
15 views

How do I allow access to a directory in apache that is actually a RewriteRule match?

We have a server with a lot of domains. Each domain will have one or more of the following admin areas that we wish to secure by IP: domain.tld/admin (admin area) domain.tld/blog/wp-admin (wordpress ...
0
votes
0answers
22 views

How to approach SSL encryption with file uploads

I added SSL to a site I'm putting together, and it caused a huge error that I have no idea how to approach. The user logs into the site, which allows them to upload files to the server into a ...
0
votes
2answers
45 views

Delete oldest directory, skipping two of them

I have to delete oldest directory. But, two of directories does not have to be "included" in this action. So, directory content looks like this: [root@myserver backup]# ls -la total 84 drwxr-xr-x 21 ...
0
votes
1answer
27 views

How to access original files from before a symlink gets updated, which have since been moved to another dir

We have a website and our deployment process goes somewhat like the following (with lots of irrelevant steps excluded) echo "Remove previous, if it exists, we don't need that anymore" rm -rf ...
0
votes
1answer
32 views

Change permission for home directory on debian [duplicate]

My Debian machine is running DirectAdmin and we have build our own CMS. By now, when we create a new website a new folder and user will created down the /home/ directory. As an developer to setup ...
0
votes
1answer
54 views

Apache Location and Directory access

I have Apache 2.2 running on CentOS 6.4 There is application in / directory and folder where are some files, lets say it is /public. I need to allow access to / directory to ip1, ip2, ip3 and allow ...
-2
votes
1answer
70 views

MySql - Lost /var/lib/mysql directory [closed]

So, the thing is that I was messing around with directories to backup and I delete the folder /var/lib/mysql and now i cant connect to my database gettin this error (I'm using plesk panel): ...
5
votes
2answers
344 views

Apache2 - 301 Redirect when missing “/” at the end of directory in the url

I haven't really noticed this Redirect(301) when requesting a url like this without slash("/") at the end: http://server/directory The server will respone with a 301 Redirect Permanent header with a ...
0
votes
0answers
78 views

How to change default duplicity archive directory?

How can I change the duplicity default archive directory (~/.cache/)? The following option seems to be ignored. Option --archive-dir=/volume4/duplicity/cache/ --name backup duplicity 0.6.21 ...
2
votes
1answer
42 views

How can i manipulate the find command to “find” the directories the “found” file is in?

So i'm trying to use the find command to find all files in my system with mtime -x. It does this but it does not "find" the directories of the file. find . -mtime -2 -exec rsync -av {} /destination/ ...
0
votes
1answer
19 views

Python code location on debian [closed]

Simple question, which of these is a better directory setup for locating my project and why, as I have seen both recommended on different tutorial sites: Option 1: ...
1
vote
1answer
35 views

apache override authentication in a specific folder

How do I change/override the authentication in apache to a different one in a subfolder? I tried this one but it didn't work. How can I fix it? <Directory "/"> AuthName "Front End Access" ...
0
votes
1answer
96 views

Using named groups in a DirectoryMatch directive

I have the following directive in my httpd.conf: <DirectoryMatch ^/path/(?P<SI>[^/]+)/logs/bibi> php_admin_value open_basedir /path/?P=<SI>/ </DirectoryMatch> The ...
0
votes
1answer
40 views

Apache directory listing

Hi i previously had setup a web server using apache 2.0.65, but i decided to update to 2.2. After updating i noticed that the look of the directory listing changed. It previously looked like this, but ...
0
votes
0answers
38 views

LDAP: what's with objectClass top?

I'm trying to get my head around LDAP and have installed a test OpenLDAP server (latest version slapd 2.4.31-1+nmu2) on a Debian 7.3.0 amd64 machine. After the basic setup which is done as part of the ...
1
vote
1answer
45 views

How do I symlink one directory to a chrooted (jailed) directory?

'm trying to create a folder (directory) for a jailed user on my server that will allow him to access another folder outside of his jail. I'm trying to do this with symlink but all it does is create a ...
0
votes
2answers
44 views

IIS: directory only accessible from/over a specific subdomain

to explain my purpose, this example of a directory structure: C:\www\ C:\www\folder-1 The domain "example.com" has "C:\www\" as home directory, and the domain "member.example.com" has the home ...
2
votes
1answer
68 views

Windows 7 / 2008 connect to VPN at login with Group Policy

I am trying to find a way to have windows 7 VPN clients connect to the VPN server automatically via Group Policy. I tried using a login script but it looks like the scripts are shared from sysvol and ...
1
vote
1answer
84 views

Apache: ExpiresByType per directory?

I have a folder with javascript files that should expire faster than the normal scripts. Is it possible to let files expire per directory using Apache 2 other than .htaccess? <IfModule ...
0
votes
2answers
99 views

Powershell - I can create folders with a future date label, but the year is not changing

So, I use Powershell to archive user directories, after a user has left. We keep the archive for 6 months before we delete it. The script is supposed to label the archived folder as "DeleteAfter-(6 ...
1
vote
1answer
3k views

Unable to join 64-bit Windows 8.1 Pro Client to Windows 2003 domain. Win 7 works fine

I am unable to join a 64-bit Windows 8.1 Pro Client to our Windows 2003 domain. A 64-bit Windows 7 client joins fine. After installing Windows 8.1, before joining to domain, if I run nltest ...
0
votes
1answer
145 views

find directories in the current directory, older than 5 days and archive them

This is basic questions. I need to find folders in the current working directory(not recursively) and if they are older than 5 days archive them. zip or tar.gz is fine. I can find the folders with ...
1
vote
1answer
156 views

DocumentRoot Directory Apache httpd

I want to make changes over my httpd.conf file of Apache running in Windows, but I want to know why need to use (or declare) the same root twice. DocumentRoot "C:/Apache/htdocs" <Directory /> ...
0
votes
0answers
111 views

Nginx proxy pass and subfolders

I am trying to setup nginx with a domain I have. Because I only have a single cert, I want to use subfolders to access services I am hosting. When I hit 'htps://domain.com/myservice' it proxies the ...
0
votes
2answers
28 views

Apache virtual hosts, aliasing, and directories

If you have an Apache running at somewhere.net, and you have a number of virtual hosts as well (a.somewhere.net, b.somewhere.net), you can access directories on the main branch while you are on the ...
0
votes
1answer
44 views

Folder sizes differ within two copied NTFS file trees (using ntfs-3g)

I have a NTFS partition, that I previously used with a Windows machine. I installed ntfs-3g as a filesystem driver in CentOS, then mounted the drive. I copy the contents (cp) to a different NTFS ...
2
votes
3answers
113 views

Given an original and backup filesystem, how can I find out if any files are missing?

I found from this posting on Stackoverflow, if you just wanted to get a list of corresponding files whose content differs, then you could execute: diff --brief --recursive dir1/ dir2/ ...and ...
1
vote
1answer
30 views

How to view all the steps involved in ldapsearch operation?

I am using $> ldapsearch -x -H ldap://<Directory Server IPv4 Address> -D cn=admin,o=myorg -s one -b t=TEST -v to view some entries at level one in my tree, this is working fine. ...
-1
votes
1answer
51 views

Collect Email addresses

I'm trying to collect all the email addresses from my Active Directory users. We don't use Exchange and when it was initially set up no emails were entered. Now we are trying to build a mailing list ...
0
votes
0answers
18 views

Web Root and Git location

I've been setting up a CentOS 6 system with apache. I have a web application which is version controlled by Git. I set up a bare repository at /srv/repo.git which has worked just fine in pushing a ...
2
votes
1answer
150 views

When searching Active Directory account, System.Runtime.InteropServices.COMException: The time limit for this request was exceeded

I am getting error when i search for LDAP users in AD. If I restrict the DirectorySearcher.SizeLimit = 1, then i am getting the result (1 result returned). But when I increase the SizeLimit to more ...
1
vote
2answers
535 views

Is it possible to exclude empty directories when creating a tar?

I have a backup command which looks like this: tar cvpzf /backup/incremental-$now.tar.gz --after-date='1 day ago' -C / etc/ home/ root/ --exclude-from=/root/exclusion_list.txt ...
4
votes
1answer
503 views

Is the Apache Directory directive supposed to be relative to the DocumentRoot or not?

Is the Apache Directory directive supposed to be relative to the DocumentRoot or not? I ask in the context of a VirtualHost, but it shouldn't make any difference. In other words, is it supposed to ...
0
votes
0answers
15 views

Combining Location and Directory with BasicAuth

I have set up some basic auth on a site, which is working fine. I get prompted to authorise for all requests except to filea or fileb. <Directory "/var/www/vhosts/domain.com/public"> ...
-1
votes
1answer
35 views

Directory theme of apache

I have a server with a web site. My document root is /var/www. My configuration: <VirtualHost *:80> Servername www.eeeeeb.fr ServerAdmin max@eeeeeb.fr DocumentRoot ...
2
votes
1answer
658 views

Powershell to add users to a group

I have written this bit of PS to add users from a text file to and AD group that the user inputs. It works fine except for the if statement. The if statement is supposed to check the group to see if ...
0
votes
1answer
201 views

Apache2 with Passenger and subdirectory with file listing

I have a server configured with redmine using apache2 and redmine. The configuration was relative easy: <VirtualHost localhost> RailsEnv production # create a link in ...
0
votes
1answer
64 views

How to use a load balancer with apache with php based applications?

I have found that i need to add another server to my setup but my web application is designed with php. Basically, in my application, there is a mkdir command that makes a directory for the user. If i ...
0
votes
0answers
113 views

How do I restrict access of an FTP user in Linux to a directory and its sub-directories?

Our webroot is /var/www/html, with html recursively having apache:apache ownership and read/write user/group permissions, and I want to have a Linux user only be able to view a certain directory ...
0
votes
0answers
20 views

ADLDS CONFIGURATION

I have created an ADLDS Instance for an asp.net application to create/Maintain user objects. CN=CN=UserInstance,CN=Users,DC=test,DC=Com +CN=Lostandfound +CN=NTDSQuots +CN=Roles +CN=UserS ...
0
votes
1answer
218 views

Looking to generate a directory exception to .htpasswd SSL-protected site

I have an entire site under .htpasswd with SSL - any http requests are rejected - and am trying to exempt a folder from the rule. Either to do a basic .htpasswd for the directory, or make it open. I'm ...
3
votes
1answer
70 views

SVNParentPath directory authorization

The question is a bit stupid but I can't get it sorted. I have a server with SVN that uses the SVNPath directive in httpd.conf and all works fine with path authorizations. Now I'm installing a second ...
21
votes
3answers
2k views

Why should you run cd . before doing anything?

In this compilation of sysadmin horrors, one of the authors writes, as a rule of thumb: Always do a cd . before doing anything. Why would you want to do that?
-4
votes
3answers
174 views

Find in all sub directories [closed]

I have a directory with many sub directories, I want to find a file in this directories so I use this command: find ./ -name test.php but this command search just in the top level directory, how ...
-5
votes
3answers
51 views

How to open a directory contains “-”? [closed]

How can I open a directory via PUTTY that contains -? For example the name of dir is: some-thing-dir cd /some-thing-dir not working.
4
votes
3answers
2k views

Is there a hard limit to the number of files a directory can have? [duplicate]

Wondering if there is a limit to the number of files that can be stored inside a directory, in CentOS 6. There is one particular directory which could potentially have millions of subdirectories. ...