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

learn more… | top users | synonyms (3)

3
votes
6answers
11k views

Can I make windows treat Shortcuts to Folders the same it would a Folder?

I'm moving some folders to an external storage drive and replacing them with a Shortcut, however the shortcut is listed in with the Files, not the Folders. It also doesn't show up in the folder Tree ...
0
votes
0answers
35 views

setfacl access files and directories by other group under RHEL 7

I exhausted all option on the setfacl to allow other group to access (cp, mv, touch ) a file and subdir of my directory. Background: I have a RHEL 7.2 and created 4 different users, as a (default by ...
0
votes
1answer
18 views

Can I hide time and date and size in Nginx webserver directory listings?

By default Nginx webserver shows the date , time and the size of all uploaded files when you browse each directory . It's something like " 21-Apr-2016 07:38 719858135 " . Is there a way to ...
0
votes
3answers
2k views

How to allow only specific directories to use htaccess?

Currently in apache2.conf I have AllowOverride all set for /var/www which simply allows htaccess for all the sites on the server (which is Ubuntu, 9.04). However, I'd rather only allow overrides in ...
0
votes
0answers
23 views

Configure Azure AD Connect

I'm trying to set up an domain in Azure AD Connect on a Workgroup computer. The challenge that we have is, we have a dedicated domain controller for the purpose of Azure AD Connect and the other ...
0
votes
0answers
7 views

Dovecot: update change directory structure, two structures exists now

When I updated my dovecot two days ago, changes were made in configuration. Mails were stored in /var/mail/vhosts/domain/user and now they are in /var/mail/vhosts/domain/user/Maildir So I have two ...
1
vote
1answer
1k 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 ...
1
vote
2answers
2k views

create second samba4 active directory domain controller for backup

I built up a samba4 active directory domain controller on ubuntu 14.04 and everything is working fine. The Windows clients can log in and do stuff. So far so good. However, in case of emergency, I ...
2
votes
2answers
1k views

How to Grant Apache Access to Directory

I am currently getting a locally hosted website up and running, but have encountered problems in accessing it from the host computer and other computers, as well. I have already created exceptions in ...
0
votes
0answers
8 views

Create two users with different privileges for the same folder

I've the following scenario: I need to create two users that will access in FTP the same folder with different privileges by using vsftpd. What do you recommend me? Is it a good idea to create ...
13
votes
12answers
108k views

Windows command prompt: how to get the count of all files in current directory?

What command would you use in cmd.exe to find the number of files in the current directory? Is there a powershell option here? Update: I was hoping to avoid dir, as I know there are 10,000+ files in ...
1
vote
0answers
22 views

Confused on BigFix Action Script syntax

I am using BigFix in an Enterprise Environment and noticed a recent round of Microsoft patches for 2016 have failed on a small group of assets. I was able to work around this by creating Custom Copy ...
-3
votes
3answers
56 views

What should the owner of `.` and `..` directories be? [closed]

A few questions about the . and .. directories: ls -la drwxr-xr-x 3 root root 4096 Mar 21 12:47 . drwxr-xr-x 60 root root 4096 Mar 15 14:36 .. Are . and .. actually directories or are they like ...
-1
votes
0answers
109 views

Windows 7 Can't Login to Samba 4.1.6 Active Directory Domain

Setup - Ubuntu 14.04 Samba 4.1.6 Domain test.local Basic Explanation -- With a Windows 7 client, I can join a Samba domain, but log into it after that. I can join and login to the same domain ...
0
votes
3answers
1k views

FTP -> VSFTPD -> allow uploading folders

I have a Fedora FTP server that uses VSFTPD. I wanted to know how I could allow the users to upload directories and make directories. Thanks in advance.
1
vote
3answers
81 views

How can I ensure only salt-managed files remain in directory and keep the diff clean?

Assume a directory like this: - etc/nginx/sites-available/ - hostA - hostB - hostC Where hostA and hostB are created by salt. hostC was created earlier by salt as well, but since than ...
1
vote
2answers
613 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: ...
0
votes
1answer
66 views

cronjob error “/bin/sh: /path/to/file: No such file or directory” [duplicate]

i've installed a python software that allows to run javascript on the server i've put the binary file (jsrunner) in this address /usr/local/bin/jsrunner so in the ssh when i try it it works fine ...
1
vote
1answer
22 views

Nginx point subdirectory to root

How can I point www.domain.com/ru/ to open the content of www.domain.com/ ? Not a redirect. I have tried alias and root but can't figure how to make it work. Thank you.
0
votes
2answers
30 views

Serving images from two different directories with Nginx

This should be basic... I'm brand new, and no amount of googling and searching stack exchange is helping. I have a website that I want to be able to serve images from, from different directories. I ...
3
votes
2answers
16k 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 ...
36
votes
7answers
10k 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 ...
0
votes
0answers
24 views

How to configure rsyslog to forward all log files from specific directory?

I have already configured and working setup of centralized log server with web interface. But i need to forward all log files from specific directory in remote host "/Volumes/path/to/dir" to my ...
0
votes
1answer
30 views

Linux CLI Make a Tar.Gz with Tar.Gz First-level Directories

Currently, I use this command to make tar.gz archives: sudo tar -zcpvf archive.tar.gz directory1 directory2 directory3 Is there a way to compress multiple archives like above, but instead of ...
0
votes
1answer
38 views

Prevent deletion of folder but let access to everything inside of it

I know there is the +i flag for files and directories, but i have a deeper Problem. Is there a way to prevent a folder from being deleted by an User which should be able to create / access / remove ...
0
votes
4answers
69 views

Scan windows file system for directories containing certain words

Is there a command that I can run on a windows Server 2008 r2 that will only show directories that contain a certain word. For Example I want to find all directories that contain "logs" That means ...
1
vote
0answers
47 views

“Deny from all” not working

I have made following configuration on httpd.conf. But, any IP still can access PHPMyAdmin URLs/aliases. What have I missed? Is this related with "Alias" directive? Alias /phpmyadmin ...
4
votes
7answers
5k views

Free tool/script for directory size calculation [closed]

Does anyone know of a free command-line tool or script that calculates the size of a directory including all subdirectories? It needs to be compatible with Windows 7, work with hard links and ...
14
votes
3answers
49k views

Cannot delete folder with rm -rf. Error: device or resource busy

I'm trying to delete /var/www/html but I'm getting this error: rm: cannot remove `html': Device or resource busy
0
votes
2answers
70 views

Mount folder automatically in home directory for every old&new user

I want to allow access to /var/www/dev/ to every user in my system (+50) via their home directory For one particular user I can do: mkdir /home/user_name/www_dev mount --bind /var/www/dev/ ...
2
votes
1answer
2k views

Cannot read/write FTP directory vsftpd on centos 6.0 (empty folder)

I have Centos 6.0 and installed vsftp with YUM, I added a user with Webmin panel, set its home dir to "/var/www/html" and its shell to "/bin/sh", user id is 500, user group is same as name: ...
41
votes
2answers
18k 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
4answers
2k views

Real time Sync between two folders on different servers

What is the best way to sync two folders completely in real time over two servers (Ubuntu) in same network? Do you think syncing folders is a better idea than having a shared folder? If a shared ...
11
votes
8answers
30k views

How do you handle “CMD does not support UNC paths as current directories”?

I am attempting to change directories to a file server such as: cd \\someServer\\someStuff\ However, I get the following error: CMD does not support UNC paths as current directories What ...
0
votes
0answers
31 views

Nginx with software installed in subdirectories

I'd like to create a directory/website structure like this: / /index.php /tac /tac/1app1/index.php /tac/1app2/ /tac/1app3/ So there is one CMS in the root. In subdirectories there should be other ...
36
votes
7answers
36k views

How to copy file preserving directory path in Linux?

I have Eclipse projects and ".project" file in them, the directory structure looks like 'myProject/.project'. I want to copy these '.project' files to another directory, but I want the enclosing ...
1
vote
1answer
1k views

Folder rights doesn't work on group, but does on user

I've got this share where I want to restrict access to two folders so that only members of a group can get access to them. I've done this countless of times, but this time there's something odd going ...
10
votes
5answers
358 views

How do I change to the directory I just moved that file to?

So lets assume I've just done: mv ./myfile /to/some/other/place/ And I now decide I want to follow the file, and go into that directory. Whilst I could head for the mouse, select the text, type ...
1
vote
2answers
3k views

Adminstrator receives PermissionDenied when issuing get-childitem in PowerShell

I am trying to backup a drive from a laptop that is defunct. This drive was pulled from the machine and mounted in an external enclosure and connected to a desktop via USB. Laptop that the drive was ...
-4
votes
3answers
117 views

Understanding administrator rights on a machine [closed]

As a developper I need to create a folder within a customer' server and I need to be sure that they wont be able to access that particular folder's content even if they are administrator or in any ...
1
vote
3answers
9k views

Change all file permissions to 644 and all folder permissions to 755 recursively

How to change all file permissions to 644 and all folder permissions to 755 recursively using chmod in the following two situation: If they had 777 permissions Regardless of the permission (with ANY ...
0
votes
1answer
68 views

Could not evaluate: Could not retrieve information from environment bootmaster source(s)

Feeling like a complete newbie to puppet (I admit I am very rusty :-) So my manifest/site.pp file contains. file {"/tmp/findme.txt": source => "puppet:///modules/concat/concatfragments.rb" ...
0
votes
1answer
46 views

Find the latest modified *.csv file and copy it into a different folder

My goal is to copy the latest file (based on modified date) in Windows to a different folder, and then rename the file to something different. My last line that is commented out was just a test to ...
0
votes
0answers
13 views

Cloaked domain forward with directories

I need to forward somedomain-a.com to somedomain-b.com. I want the forward to be cloaked, so even though someone is at somedoamin-b.com from a forward, it will still say somedomain-a.com in the search ...
0
votes
0answers
81 views

Folder modification date not updating when sub folder is created

I have found a pretty annoying behavior in windows server 2012 and failed to find a solution to fix it. I also tried this on a Windows 7 instance and it simply works :( Some aspects of the issue are ...
0
votes
1answer
21 views

Directory vs Files for efficient search and retrieval of files

I am working on a website where users have ability to store all kinds of media on the server and there can be any number of users. I thought I would store all the media which users upload like this: ...
0
votes
2answers
1k views

Changing Data directory in MariaDB

I have a doubt : Is mariadb support datadirectory location change from the default location to the another user defined location ? When Iam trying to change datadir location of mariadb by ...
1
vote
1answer
12k views

How to write a dos batch script to create a folder structure?

I would like to be able to have a dos batch script that I could utilize to create a specific folder structure below what ever directory I may be in at any given time. The specific folder structure ...
0
votes
1answer
4k 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
4answers
2k 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 ...