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
votes
1answer
22 views

Best architecture/components for a mixed environment (window + Linux) [closed]

I would like to ask for recommendations; In my mediumsize company (less than 150 users) most clients are using Windows machines, the servers are mostly Windows serves .... I would like to migrate to ...
1
vote
0answers
10 views

How to use XSL to make a href using XML data [migrated]

I'm trying to create an XML file that shows different news articles within an iframe. A shortened version of the news' body is shown as a subtitle (which is already prewritten and chosen with the help ...
-1
votes
0answers
17 views

On a OS X machine, how can remove a directory that has name “--crm”? [migrated]

I am trying to remove a directory that has the name --crm. When I do rm -f -R '--crm' I get the following error: rm: illegal option -- - usage: rm [-f | -i] [-dPRrvW] file ... unlink file I ...
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
1answer
111 views

Confused on BigFix relevance - x64 files

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 ...
0
votes
2answers
688 views

Apache 2 .htaccess matching all sub directories of current directory

I want to disable the php engine in all directories below the current one. I have tried using <Directory> and <DirectoryMatch> but cannot find the correct regex syntax for matching just ...
0
votes
0answers
31 views

Logins to domain host fail with security database error

I have two DCs on site, and an ADFS box in AWS (for using SSO). It was working mostly alright for a long time. Then yesterday I created a new DC inside of AWS for disaster recovery. After that, ...
-1
votes
0answers
20 views

“find” doesn't list all files under specific directories [migrated]

I'm attempting to get a list of all files under specific folders, recursively, with the "find" command. find / -path "/usr/sbin/*" -o -path "/usr/bin/*" -o -path "/usr/local/sbin/*"-o -path "/usr/...
0
votes
1answer
23 views

Apache Aliased Directory doesn't work for child directories of alias

I'm trying to run two different applications under user. Application 1: /home/user/public_html/app/public/ Application 2: /home/user/public_html/forum/ VirtualHost has the Server set to ...
0
votes
1answer
72 views

group permissions on directory being ignored for user

It seems that there is a Linux user (on an Ubuntu 12.04.4 server) who is unable to access a shared directory, even though that user belongs to the group which owns the directory. Here is an example ...
43
votes
6answers
15k views

Meaning of directories on Unix and Unix like systems

I've been using Linux for a couple of years now but I still haven't figured out what the origin or meaning of some the directory names are on Unix and Unix like systems. E.g. what does etc stand for ...
72
votes
23answers
27k views

rm on a directory with millions of files

Background: physical server, about two years old, 7200-RPM SATA drives connected to a 3Ware RAID card, ext3 FS mounted noatime and data=ordered, not under crazy load, kernel 2.6.18-92.1.22.el5, uptime ...
3
votes
7answers
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
48 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
35 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
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
9 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 ...
14
votes
12answers
113k 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 ...
-3
votes
3answers
57 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 ...
0
votes
3answers
2k 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
112 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
636 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: ghs....
0
votes
1answer
90 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
27 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
40 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
17k 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 ...
38
votes
7answers
11k 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 correct?...
0
votes
0answers
34 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 server....
0
votes
1answer
32 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
42 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
85 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
51 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 /usr/share/...
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
53k 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
89 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
3k 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
19k 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
31k 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 ...
38
votes
7answers
39k 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 ...
2
votes
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 ...