Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [directory]

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

1
vote
1answer
16 views

How to show subdomain on subfolder (IIS)

I have a website named: www.website.com And I have an application named: application.website.com Those are on different servers. And now. I want to show application.website.com on www.website.com/...
0
votes
1answer
17 views

Removing Azure AD DS from subscription

I am looking to delete Azure AD Directory services from my subscription (and remove the subscription). But I want to verify that when I do delete Azure ADDS that user accounts will NOT be effected. I'...
0
votes
1answer
62 views

“stat” says “permission denied”, even though all the permissions are in place

I have this: ls -al /home/my_user/dir1/dir2/file1.txt -rwxr-xr-x 1 http http 2798 Dec 30 18:18 /home/my_user/dir1/dir2/file1.txt However, I can't stat it: sudo -u http stat /home/my_user/dir1/dir2/...
0
votes
0answers
15 views

.Nginx subfolder to subdomain [duplicate]

Below is the code configuration from NGINX. Well i'm new on this server, so i ask you how can i have subfolders to (virtual host) subdomains. After a lot of search I have found this gists but it does ...
0
votes
0answers
17 views

Apache2 docroot and the directory directive in apache2.conf

Why is in standard apache2.conf only the container directive <Directory /var/www/> instead of the docroot <Directory /var/www/html>? I have the following release: $ lsb_release -a No LSB ...
0
votes
2answers
109 views

.htaccess password protect a file in a certain directory

I have files with the same name in different directories on the serves (example: stats.php), and I want to password protect some of them (.htaccess file in the root directory). I tried "FilesMatch" ...
0
votes
1answer
109 views

How do I fix my ldap olcAccess to allow users to bind to it?

Background I have a super simple openldap server with basically nothing in it except the admin user, a couple OU's, and a user. I can login and auth against it with the admin user cn=admin,dc=...
-4
votes
1answer
57 views

Rename and replace parts with different filenames [closed]

I know there are different questions about this topic but I have found nothing that fits my question: I want to replace a part of a name in a folder but there are different files with different names....
-1
votes
2answers
48 views

How to mount a folder as a drive and share on network

i want to mount a folder as a drive and share on network, because we use a network based software which wants whole drive (C: or D: or E: etc.) shared over network for a folder inside it, my approach ...
0
votes
1answer
49 views

NGINX Not showing directory contents

I have some trouble with NGINX on my server. I previously used Apache. When I try to request folder contents on my server (like, 192.168.0.128/files), I get a 403 Forbidden error. Anyone know how to ...
0
votes
1answer
54 views

How to restore subdirectory of a duplicity backup?

I have a duplicity backup script running under Ubuntu 18.04 which has backed up the contents of my /etc directory like this: duplicity --archive-dir=/home/bkp/.cache /etc rsync://backup.host::/bkp/...
0
votes
1answer
133 views

Conditional Forwarder or DNS Stub Zone to Non-Authoritative DNS Zone

How could I go about forwarding DNS lookups to a non-authorative zone, in a sort of 'next hop' scenario? The setups is as follows: One ADDS Domain (contosob.local) which contains two DNS servers, ...
1
vote
0answers
34 views

mysql on custom folder

I have already installed MySQL 5.7 (using apt-get) on an Ubuntu server but I need to install version 5.5. I have used the tar.gz binary package and installed it under /home/mysql55/mysql. Now I need ...
2
votes
2answers
77 views

Difference between Azure tenant and directory

Are Azure "tenant" and "directory" different things, or different names for the same thing? According to the documentation, a tenant is a container within Azure associated with a company or group of ...
0
votes
2answers
132 views

Use Robocopy or Powershell to search folder, rename and move

I'm trying to figure out a solution for this ex. paths C:\Designs\CustomerA\PhotoshopFiles\ C:\Designs\CustomerB\PhotoshopFiles\ C:\Designs\CustomerC\PhotoshopFiles\ What I want to do is move the ...
0
votes
1answer
31 views

Need to add a login to a database for SSMS (Sql server) 2008 r2

I need to add a login to a database for SSMS (Sql server) 2008 r2 There is an answer to a very similar question here: How to add users to SQL Server 2008 Management Studio: https://stackoverflow....
1
vote
1answer
394 views

Apache: No matching DirectoryIndex

I'm newbie in apache, i have the following directory structure: html |-- moodle |-- singapur |-- app |-- public |-- js |-- css |-- img |...
3
votes
3answers
502 views

What is the minimum action required in order to have access to a newly authorized server folder

I hope I'm at the right place (right stack exchange website). If not please tell me the right one. I got new rights on a folder on a Windows server by being added to Active Directory Group for which ...
-1
votes
3answers
128 views

Apache cannot access external drive on Linux Mint

I have a Linux server and a Windows server with a external drive for my website files. The problem only exists in Linux Apache configuration, where I cannot access the files for the sites located on ...
0
votes
2answers
152 views

WDS stopped working - no servers under Windows Deployment Services 2008 R2

I have three Windows 2008 R2 servers with MDT and WDS installed. It was reported multicasting stopped working on all of them. I made sure the multicast option was selected in the deployment shares' ...
0
votes
1answer
12 views

In Apache/local, how can I support both directory access and named-host access?

I understand how to use Directory and (I think) VirtualHost directives. I further understand that I can't mix them (although I can nest them). When I mix them I get 404 not found for the Directory-...
0
votes
2answers
161 views

How a subfolder of domain having different IP

We have multiple ecommerce platforms. Say, Magento and Shopware. Magento and Shopware are hosted in different servers. We want to migrate all Magento stores to Shopware. The domain name of Magento ...
1
vote
1answer
68 views

Customizing apache directory listing ONLY for subdirectories

I have a Download folder where I set up a directory listing sorted by last modified date, like this : <Directory /var/www/html/Downloads/> Options +Indexes ...
1
vote
3answers
220 views

Solaris 11 find empty folders (-empty not work)

How to find empty dir and delete in Solaris 11. I try this: find . -type d -empty Output: find: bad option -empty find: [-H | -L] path-list predicate-list
0
votes
0answers
24 views

IIS Website freezes when serving images from a virtual directory

I have a virtual directory in my iis website which points to a directory on the network (on another machine). This directory has over 100k images Every so often the website freezes. When it does, I ...
2
votes
2answers
694 views

Change directory to “This PC” / “Computer” from .BAT batch file

I'm using a batch file to automatically launch a software at login. This software maps a remote drives to which one letter is assigned (R:) and opens the file explorer to R:. I would like to append a ...
0
votes
0answers
16 views

PDF Printer not saving files on redirected folder

so morning headache.... we recently added a server to our office, but is not on-site, is off-site, and when trying to "PRINT AS PDF" files, it just won't save it on redirected folders, is ONLY ...
2
votes
3answers
45 views

How to replicate and flatten deep nested subdirectories' names into new folder

Example I have input directory as follows with two branches at the 2nd level (2 and 22) ~/input_directory/1/2/3/4/5/6 ~/input_directory/1/22/3/4/5/6 I want to run a command to populate ~/...
0
votes
0answers
26 views

Script: Monitor Directory and if new file(s) is/are found send changes per email

I am looking for script for linux, which checks directory and if new file/s is/are added, and sends email in format: There are new files in: Main Dir Subdir A - Filename.txt Subdir B - Subdir B1 - ...
0
votes
1answer
501 views

How do you define the “depth” of a folder structure?

This isn't a question directly related to any piece of software, but rather a question about terminology and definition of directory tree depth. When I look at how find . -maxdepth 0 works it seems ...
0
votes
2answers
372 views

Error configure nginx multiple subfolders with multi wordpress site

I have problem with configure nginx for mutilple subfolder, I had apply many solutions on serverfault, but it didn't work with my site. My sites are using two wordpress. Main site https://optshare.com,...
0
votes
1answer
86 views

Nginx doesn't pick the right php-stack in location

TL;dr I created a location block (/de/forums/) outside of the nginx root folder but the php gets sent to the php compiler inside root so there is a directory mismatch. It wont take the defined php ...
0
votes
1answer
226 views

Allow one member of a security group to access a folder, deny access to the remaining members of the same security group

I wish to know if the following is possible and how to apply it within AD structure running on windows server 2012R2. I apply folder access using security groups. Example = Agents folder can only be ...
0
votes
1answer
17 views

compare 2 directories with different files names and locations of the files

I'm currently having 2 (top level) directories with a lot of sub directories and files. There are a lot of duplicate files between those directories but there is one problem with it, the names of the ...
0
votes
1answer
24 views

Remove files from directory path B which are not found in path A on Linux

I have two paths on same system for example: \mnt\a\data \mnt\b\data There are some directories and/or files in b\data which are not present in a\data. How can I remove those extra directories and/...
0
votes
0answers
89 views

Folder Security Permission corrupted

i m using windows server 2003, in which the AD was corrupted. now i m moved to new server but my files and folders security permission was corrupted. every folder file i have to re- enable the admin ...
-3
votes
1answer
88 views

Recursively removing the content of a directory but not a directory itself [duplicate]

I have a directory which contains other directories and files of unknown depth. How can I delete only the content of the directory -- nested directories and files -- but not directory itself? I've ...
-2
votes
2answers
81 views

Removing the content of a directory recursively [closed]

I want to delete the content of a folder without deleting a folder: all files and all sub folders with sub files. This doesn't delete anything sudo rm -rf /folder1/* Why not? How to get it to work?
0
votes
1answer
59 views

ls *.csv --ignore=“*pattern*” returns files which contain “pattern”

Why does ls --ignore not ignoring the pattern? Looking at the below example: mkdir books cd books touch books_abby.csv touch books_karen.csv touch books_david.csv touch books_tom.csv This creates ...
0
votes
2answers
137 views

Bash directory alias/redirect

I'm trying to compile a library and his dependencies (lots of dependencies), but the system that I'm using didn't have the usual directory structure. I'm searching for a method to "redirect" all the ...
1
vote
1answer
596 views

nginx + fpm + subdirectory

I have an nginx config that looks like this: location ^~ /movies { alias /var/dp.cx/movies/current/public; fastcgi_index index.php; try_files $uri /movies/index.php; location ~* \....
2
votes
0answers
200 views

Getting Access Denied for folder as Administrator

On a Windows Server 2012 R2 machine, logged in as domain administrator trying to access the c:\users\public\desktop folder, getting access denied. This machine is the domain controller. How can I ...
1
vote
1answer
39 views

What's the most common and recommended directory for a web application on FreeBsd? [closed]

I have a website on a FreeBSD server which is reachable from the Internet. I know I can run it from whichever directory I wish. But still, which directory is more right, common and recommended? At the ...
1
vote
1answer
33 views

XFS Folder Dates

I have a server running Centos 7, kernel 3.10.0-514.16.1.el7.x86_64, Samba 4.5.2, and XFS. We archive documents in a bunch of small .tif files, so XFS works great for us. The folder is mounted in ...
1
vote
1answer
165 views

Apache Reverse Proxy | Wildcard directory rerouting (.htaccess)

How would it be possible to have a wildcard directory proxy? I have gotten the basics but the issue is, it gives out the directory which I'm in, my htaccess file: RewriteEngine on RewriteCond %{...
0
votes
0answers
549 views

Unable to change ldap client password(RHEL 7)

Trying to change ldap client password but give following error.help me if we can change anything from 389 console if possible. -bash-4.2$ passwd Changing password for user devid. Current Password: ...
-1
votes
1answer
112 views

Cent OS 7.2 Disk (df -h) 100% full but directory size (du -sch /* ) not [duplicate]

[root@CentOS-72-64-minimal ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/md2 204G 202G 0 100% / devtmpfs 16G 0 16G 0% /dev tmpfs 16G 0 ...
0
votes
1answer
60 views

Postgresql and backups: can't access and manage my folder

I just want to pg_dumpall my postgresql db in /home/ftpuser/backups/ folder i just created. So I created a group (backuppers) with ftpuser and postgres as members. then i chgrp backuppers to /home/...
0
votes
2answers
49 views

How to upload directory from linux

I'm using Centos 7 Server. I do have specific directory which am looking to automatically upload everything inside it each time the size of it changed in order to save a copy of it all time. so i ...
0
votes
1answer
32 views

Linux, search for extended attribute value

When a directory contains some files with non-empty extended attributes, all the attribute values can be shown as follows: $ getfattr -d * # file: file1 user.comment="comment1" # file: file2 user....