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

learn more… | top users | synonyms (3)

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 ...
-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 ...
-1
votes
1answer
285 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
90 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
1answer
250 views

Mounted Gluster volume keeps reverting to “root” permissions

Ive got GlusterFS running on an AWS server and its mounted to another AWS server. The folder that is mounted though keeps reverting to "root" ownership, when this happens uploads fail from the web ...
1
vote
3answers
104 views

tmpfs - auto create whole path when write to file

I have mounted tmpfs .e.g. /tmspfs/cache As we expect, so after restart server is ram empty and all content from mount is away. It is ok. But I have in my system some full path e.g. ...
1
vote
5answers
9k views

path separator in php

I'm a Windows user and here is my sample code: <?php echo "Current directory is: " . realpath("."); ?> Output: Current directory is: C:\wamp\www\test Actually, I want to return the path in ...
0
votes
1answer
258 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 ...
1
vote
1answer
826 views

“Path Not Found” when attempting to write to a sub folder within a mapped drive

We have an interesting issue with one of our server shares, or possibly, our Win 7 desktops. When our users try to save files in a sub folder, either via copy/paste or through an application, to a ...
4
votes
2answers
546 views

How to map a folder to memory?

Is there a way to map a particular folder to memory? Say I have C:\somePath and I want that folder to be in memory at all times and maybe changes are dumped to HDD asynchronously without my notice. So ...
0
votes
0answers
115 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
53 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 ...
2
votes
2answers
12k views

How to restrict deletion of a folder on NTFS share, but still allow modify access within folder

I am setting up a set of scan folders from a scanning copier device, and would like to know the best way to protect the folders (for each department) from moving or deletion, but yet still allow ...
0
votes
1answer
368 views

nginx points the sub-directory of an alias folder to the base directory

I am new to Nginx. Now I have a confusion on nginx configurations: My web site contains folders in different locations: location / { root /Path1; } location ^~ /download { alias /Path2; } ...
0
votes
1answer
182 views

Apache Server - Subdirectory on different server [closed]

You have 2 different servers with different IP Addresses. Both servers are Apache based. Server A: already hosts a website (http://example.com) Server B: would host a WordPress website to be in a ...
0
votes
1answer
79 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 ...
3
votes
2answers
3k views

Good default for XDG_RUNTIME_DIR?

The XDG Base Directory Specification is a very interesting spec for user directories. It also provides good default values, except for XDG_RUNTIME_DIR. Now I am writing a software that needs to ...
0
votes
1answer
204 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 ...
2
votes
2answers
961 views

Wrong urls at wp-admin at wordpress with subdirectory and proxy

I am using apache2 and mod-proxy to integrate wordpress blogs into subdirectories of my TLD. Main site: example.com Blog1: [http://example.com/blog] Blog2: [http://example.com/other-blog] Apach2 ...
2
votes
3answers
46 views

NTFS folder permissions traverse

Here is the problem We have NTFS file server with several layers of sub-folders. FolderA\ - User AAA should not have access FolderA\FolderAA\ - User AAA should not have access ...
1
vote
1answer
1k views

/bin/sh: /bin/cp: Argument list too long

I have problem with this command: 'cp' -fr /www/*-aws/* /www/mainhost/aws/awstatstotals/tmp/ Error is Argument list too long - I know many /www/-aws/ folders. I know that I can use FIND command, ...
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 ...
2
votes
1answer
120 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 ...
-1
votes
2answers
234 views
-1
votes
1answer
78 views

Should images be stored on a subdomain or subdirectory?

I'm working on a sharing app where images get stored for 24 hours. Does it bring any advantages to store them on a subdomain http://imgs.example.com instead of a subdirectory ...
-1
votes
1answer
179 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): ...
1
vote
1answer
152 views

Does a Windows Server 2012 FRSM auto-applied quota at a root folder mean the root folder has a cumulative quota equal to all subfolder quotas?

I've done some reading on TechNet and run a few searches for this answer, but so far haven't found anything. I have a root folder with 9 subfolders, and I assigned an auto apply template to the root ...
25
votes
6answers
7k views

Should websites live in /var/ or /usr/ according to recommended usage?

According to a guide on the Linux directory structure, /usr/ is for application files, and /var/ is for files that change (I assume this means "files that belong to the applications"). Is this ...
2
votes
1answer
1k views

How do I enable W3C extended logging on Apache (LAMP or XAMPP)?

How can I enable W3C extended log format on LAMP and where will the default log directory be located (and named what)? (or XAMPP)
0
votes
1answer
49 views

Nginx and multiple applications

I am new to nginx, and here what I am trying to achieve : I have only one domain name. I want to have several applications, accessible with something like : mydomain.com/app1 mydomain.com/app2 etc ...
5
votes
2answers
2k 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 ...
-1
votes
2answers
303 views

How to quickly move files and folders from local server to amazon ec2 instance?

Moving script files from local server to amazon ec2 instance through winscp drag drop is taking too long for me from windows local server. How to quickly move files and folders from local server to ...
0
votes
1answer
1k 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
25 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
723 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
25 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
70 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
7k 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: ...
1
vote
1answer
29 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
347 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
131 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
47 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 ...
1
vote
1answer
113 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
468 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 ...
26
votes
2answers
22k 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
96 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
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 ...
2
votes
1answer
188 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 ...