A directory, also commonly called a folder, is a filesystem object used for organizing files and other directories.

learn more… | top users | synonyms (3)

1
vote
1answer
418 views

Can I have two (or more) Apache VirtualHosts separated by subdirectories?

I think this is a simple question, but let me explain better. I have the following development environment: Ubuntu Server 12.04 LTS; Apache 2.4; PHP 5.5; Everything is working fine, except the ...
0
votes
1answer
23 views

Why a given user can access a folder and another one does not?

I have two servers: Server one: deploy@server:/home/vftp$ ls -la total 24 drwxr-xr-x 6 ftp ftp 4096 May 7 2013 . drwxr-xr-x 7 root root 4096 Jul 19 2013 .. dr-xr-xr-- 3 ftp ftp 4096 Feb 18 ...
0
votes
3answers
2k views

Local login script to delete folder of currently logged in user

How can I create a login script that will delete the contents of the folder below, each time a user logs off of a PC? (We have a shared PC that about a dozen users use, for a particular program. That ...
2
votes
1answer
287 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/ ...
22
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?
0
votes
1answer
22 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
55 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" ...
8
votes
1answer
6k views

Changing MySQL data directory in Ubuntu Server 10.04

I was getting the following error when trying to change the data directory in ubuntu server 10.04. 100809 19:33:00 [Note] Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Can't find file: ...
0
votes
1answer
735 views

User folder not showing up in Windows Explorer

I have a user that logs into the domain receiving an error message regarding their "my documents" folder being inaccessible. Browsing the D:\Users directory using Windows Explorer on the server, the ...
1
vote
1answer
24 views

Show website on one server in subfolder on another server

I have two websites. One website is a microsite developed by someone else, hosted on a subdomain and I would like to serve this website via a URL on the second website, for example: ...
0
votes
1answer
254 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 ...
1
vote
0answers
92 views

Composer runtime error when deleting subdirectories

I am running 'composer install' on my server, and then using the script feature to delete all subdirectories called '.git' but I am running in the following composer error. Delete all .git dirs find: ...
0
votes
1answer
45 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
7answers
10k views

script for win/dos to create folders from list of names in a file

Scripting question. Dang, it should be easier than this. I have a file with a list of names. I'd like to turn those names into folders. Whenever I try the FOR loop, all I get is the name of ...
1
vote
1answer
88 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 ...
1
vote
1answer
317 views

Apache 2.2 Ldap Authantication error 500 - AuthLDAPURL

I have an Apache server on RHEL 6 that uses our active directory for authentication, We added a new "LocationMatch" AuthLDAPURL ...
23
votes
2answers
19k views

Add directory structure to SVN, without files

Is there a way to add a directory structure to an SVN repository without adding the files contained in the folders?
0
votes
2answers
83 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 ...
1
vote
2answers
1k 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 ...
2
votes
1answer
144 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
271 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 ...
1
vote
0answers
29 views

ASP.NET Webapp Works as Full Website, but not as Application

I have a fairly simple ASP.NET (targeting.NET 4.0) web app, which is used as a dynamic request form. I have tested this and it is working as a Web Site within IIS 7 running on Windows Server 2008 R2. ...
0
votes
2answers
145 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 ...
0
votes
0answers
1k views

Cannot rename new folders in a server folder

Windows Server 2008 R2 SP1 - Windows 7 SP1 - Folder located on server, normally accessed via drive letter There is one folder on the network where all users have modify rights. Suddenly people are ...
6
votes
5answers
13k views

Check to see if a directory exists remotely (shell script)

Is there a way to see if a directory exists on a remote server? Perhaps there's a better way, but I'm writing an application deployment script, and I want to create a directory on a remote server if ...
0
votes
1answer
236 views

Shared file size limited to local drive size

I wish to use alfresco as a shared file system using Windows (XP, 7 & 8) Explorer. I can access the shared folder, and can modify files on it. I can mount the alfresco filesystem, and it mounts ...
0
votes
1answer
167 views

Mount a folder on OpenVZ Container

I'm struggling to get an NFS filesystem mounted on godaddy VPS. It looks like they are using OpenVZ, and I'm unable to mount an NFS filesystem share from one VPS to another. Does anyone know a way to ...
0
votes
1answer
846 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 ...
2
votes
1answer
1k views

Redirecting subsite on same domain to other IIS using HTTPS

I've seen many similar questions (and answers) on this subject, but none seem to be on exactly the same situation I am facing. Which is weird since I don't think it is that special, so forgive me if I ...
-1
votes
2answers
62 views

How to load my app from client's domain name

I am building a SAAS product which is hosted on abc.com and i will have few clients with domains client1.com, client2.org, client3.in etc. Now i want to serve my application to each client on their ...
24
votes
2answers
12k views

How to keep the full path with rsync?

When backing up with rsync, How do I keep the full directory structure? For example, the remote server is saturn, and I want to backup saturn's /home/udi/files/pictures to a local directory named ...
1
vote
1answer
446 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 /> ...
1
vote
1answer
97 views

Copy any file with a specific file extension in subfolders into a folder

I found a script on here that would use 7zip and extract all the files in all the sub-folders of a specific folder and put them in their own folder using the script below. What I need is add to it ...
0
votes
1answer
130 views

Rename subfolder directories Windows 2008 R2

Just trying to work out a way to rename some sub folders and could do with some help. Basically, When our staff write documentation for a proposal, they create a folder with the project name. When ...
0
votes
1answer
389 views

Setting folder permission on a remote Windows 2008 R2 server in PowerShell or Command Prompt

Does anyone know of a way to set a folder's permissions on a remote server using either PowerShell or the command prompt? In other words, sitting at server01, launch PS or CP, type a command to set ...
0
votes
2answers
41 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
2answers
3k views
2
votes
3answers
127 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 ...
0
votes
1answer
57 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 ...
1
vote
1answer
39 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
53 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 ...
1
vote
0answers
56 views

lighttpd access control affecting subdirectory trees sibling to a htpasswd file

Suppose I have a htdocs directory tree served by lighttpd htdocs htdocs/foo htdocs/foo/spam htdocs/foo/eggs htdocs/foo/eggs/stirred htdocs/foo/eggs/fried htdocs/bar htdocs/bar/bacon Now I'd like to ...
0
votes
1answer
1k views

Nginx: Rewrite/Redirect URLs in a subdirectory to root

I want to rewrite or redirect any URLs inside a subdirectory to root, like so: www.site.com/subdirectory/item => www.site.com/item I tried this, but doesn't seem to work properly: location ...
0
votes
1answer
58 views

Expose a directory as public but hide another same-level directory

I have a web application that has the following directory structure: /subdomain_name /app /public This web application is installed for every new user in our VPS. They provide a subdomain ...
2
votes
1answer
254 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
0answers
47 views

Redirect subfolder to subfolder and remove subfolder via nginx

I'm trying to redirect a subfolder to another subfolder with nginx. The hard part is removing the target subfolder from displaying, as it's a ruby app and not a true root folder. They are both on the ...
0
votes
1answer
91 views

How can i serve domain subfolder from different Apache 2 server?

Squid 3 reverse proxy is pointin to 80.241.222.151 for domain http:// www.megasity.com Apache 2 server is on 80.241.222.151 with all files in the root folder so all requests are served from here Now ...
1
vote
1answer
109 views

centos6 lost '/etc/pki/tls/' folder

I am trying to learn how to install ssl_mod, but with some wrong operation, I lost /etc/pki/tls/ folder. I am trying to yum remove mod_ssl, yum install mod_ssl, but still can not create anything ...
6
votes
1answer
2k 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 ...
-1
votes
1answer
39 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 ...