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

learn more… | top users | synonyms (3)

0
votes
1answer
575 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
45 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
60 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
140 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
46 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
54 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
70 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
2k 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
64 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
323 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
2k 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 ...
1
vote
0answers
60 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
119 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
134 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 ...
7
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
40 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
2k 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
672 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
138 views

find all end subdirectories in a tree

given the following structure: oz123@debian:~/ $ tree . . ├── a │   ├── a1 │   ├── a2 │   └── a3 ├── a1 │   ├── a11 │   ├── a12 │   └── a31 ├── b │   └── b1 │   ├── b11 │   │   └── b21 │   ...
0
votes
1answer
209 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
1answer
93 views

Software for syncing two folders?

I have a SQL Database that is running 15 minute backups to a folder on the local disk. I also have a maintenance task in SQL Server that's automatically deleting any backups that are over 1 hour old. ...
0
votes
1answer
406 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 ...
4
votes
1answer
110 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 ...
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
111 views

Is there a program/tool/script to monitor or view all recent *large* files created on Windows server?

I have been managing a modest SBS 2003 server for several years. Our network policy is setup to store user profiles and "My Documents" folder on the server. Recently the server disk has been getting ...
0
votes
0answers
325 views

Hi is there any way to point subdomain & sudirectory to another hosting

I have a specific problem, I have a domain -- example domain.com & I have a subdomain -- e.g -- > subdomain.domain.com My domain.com has a dedciated IP & in a subfolder of it I have ...
-4
votes
3answers
700 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 ...
2
votes
3answers
10k views

Allow subdirectory with Apache

I feel like this is a fairly simple fix and have seen similar problems when searching but haven't been able to fix it with those solutions. Basically the problem is I cannot access any subdirectories ...
-1
votes
1answer
70 views

SSH - ftp user multiple folder permissions [closed]

I have a server with SSH access. Hope anyone can help me very quickly with permissions. I have a folder, in that folder there are 10 more folders (f1, f2, f3, f4, f5, f6, f7, f8, f9, f10). I created ...
-5
votes
3answers
52 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.
7
votes
3answers
6k 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. ...
8
votes
3answers
8k views

compare 2 directories and copy differences in a 3rd directory

Running ubuntu 12.04, I want to compare 2 directories, say folder1/ and folder2/ and copy any files that are different to folder3/. There are also nested files, so matching subdirectories should be ...
0
votes
1answer
43 views

Accessing files using folder name and ~folder name

When I try to access a folder: cd "c:\users\myname\google drive\apache-tomcat-7.0.25" it works fine. However when I try: cd C:\Users\myname\GOOGLE~1\apache-tomcat-7.0.25 it doesn't (folder not ...
0
votes
3answers
836 views

Can't start MYSQL after changing directories

So I started running out of space on my linux hard disk. I added another hard drive and now I want to change the MySQL directories. So instead of saving the data into the old hard drive, it saves it ...
1
vote
1answer
467 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 ...
1
vote
1answer
447 views

Setup custom domain with folder in path for Blogger hosted blog

Google Blogger makes it easy to put a blog at a custom top-level domain or custom subdomain, such as: www.example.com blog.example.com The setup involves creating a CNAME pointing to: ...
3
votes
2answers
476 views

How to “cd” to non utf8 directory

How can I change directory to directory that name consists of non ASCII default characters? root@senior:/media/data/hudba/# ls . -l total 3096 -rwxr-xr-x 2 user users 3160192 Jul 31 2006 Lucie ...
0
votes
1answer
154 views

serving webapps out of arbitrary subfolders with nginx

I'm serving webapps out of arbitrary subfolders on a domain. i.e. example.com/app-one (with example.com/app-one/page served by app-one) example.com/folder/app-two (with ...
0
votes
1answer
118 views

Sharing folders with other user on Ubuntu 12.04

I have recently set up a server on Ubuntu 12.04 . I have an mail server hosted on the same server. Now, there are a number of users with email id at my domain who can ssh to my server to see the ...
0
votes
1answer
38 views

Linux directory moved

a directory was moved with mv command in a Linux box, what logs should be looked at for such action? in root bash_history i can see the command was used, unfortunatly bash_history was not recording ...
2
votes
0answers
216 views

windows 2008 r2 Change owner on multiple folders

I've a quest to change the owner on about 800 folders. The owner should be equal to the folder name. I've tried something like this: set /p userDir=username ICACLS "D:\test\%userDir%" /setowner ...
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 ...
0
votes
1answer
251 views

500 Error when using Apache Directory Directive

I am trying to restrict access to certain directories to certain IP's.... I have done some research & the below is what I came up with, however it returns a 500 internal server error when I try ...
1
vote
0answers
108 views

htaccess, mod_rewrite, remove part from URL

I want to access domain.com/api/(.*) instead of domain.com/public/api/(.*) Directory structure: domain.com __folder1 __folder2 __public ____api ______.htaccess2 ____afolder1 ____afolder2 ...
0
votes
1answer
237 views

Rewrite certain URL in Nginx such that another app will serve it

I have a config file for mydomain.com which is served with Drupal. Problem is this rewrite rule takes the control over any request: if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 ...
0
votes
4answers
1k views

Copy files from one server to another with same permissions

Im migrating to new server and i need to move few websites but i need to have same read/write permissions to new serves as they were on old server. I don't need to keep group and owner id's same but ...
0
votes
1answer
238 views

Apache serve files with NTFS permissions?

I hope I came to the right sub for this question. Basically here is the scenario: You have folder name Testfolder which is hosted on Apache. Test folder has files that only certain users on the ...
0
votes
1answer
72 views

SBS 2008 Redirection visibility issues - want to move off SBS 2008

I inherited an SBS2008 server which had a corrupt or otherwise lost userid which was used to setup redirects, etc. I was able to break in by enabling the Administrator ID and resetting the password. ...
0
votes
1answer
88 views

Issue with Apache folder and file permissions

I hope I came to the right sub for this question. Basically here is the scenario: You have folder name Testfolder which is hosted on Apache. Test folder has files that only certain users on the ...
0
votes
3answers
67 views

Apache folder and file permissions

I hope I came to the right site for this question. Basically here is the scenario You have folder name "Testfolder" which is hosted on Apache. Test folder has files that only certain users on the ...