Questions tagged [directory]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
34 views

Redirect to folder only if root from other site referrer

I have a redirect from root to subfolder. If user visits https://example.com it redirects to https://example.com/subfolder. But I want it not to redirect if referrer is my site, so user can reach root ...
user avatar
0 votes
0 answers
17 views

What are the differences between these ext4 features: dir_nlink vs large_dir

From the ext4(5) man page: dir_nlink Normally, ext4 allows an inode to have no more than 65,000 hard links. This applies to regular files as well as directories, which means that there can be no more ...
user avatar
0 votes
1 answer
199 views

Where to find the website folder in ubuntu server?

So someone gave me the task to find where is the website code exist on ubuntu server when I look at the the index.html file path it is /var/www/example.com/html but when I go to /var/www directory I ...
user avatar
1 vote
1 answer
133 views

NGINX getting an application in a subfolder to work with redirects

I've installed Mautic in a subfolder like: example.com/m Most of Mautic is working fine with my configuration (admin panel, using Mautic etc.) but for some redirects in my subfolder, I get a 404: ...
user avatar
  • 145
0 votes
0 answers
54 views

Move /usr to new partition on running Oracle Linux 7/8 server?

I need to move the /usr directory to a new partition on a running server and delete the old /usr directory without "crashing" the system and no live CD is allowed. The new ssd is already ...
user avatar
0 votes
0 answers
19 views

Installing Magento in a subfolder i.e., example.com/magento

Prerequisites were successfully installed. I installed Elastic Stack on Ubuntu 20.04 LTS. I followed all steps on this link (up to #2. Install and Configure Kibana on Ubuntu which I did not need). No ...
user avatar
  • 123
0 votes
0 answers
45 views

Copy files from the same subdirectory to the same Directory in Windows

I am having a hard time describing the problem and I can't find the solution anywhere so here is an example SourceFolder\ProjectA\Legal\ContractA.txt SourceFolder\ProjectB\Legal\ContractB.txt ...
user avatar
1 vote
1 answer
46 views

Is it possible to set up an alias on an Active Directory domain controller Linux server? [closed]

We have a Red Hat Enterprise based Linux distro that is the domain controller for a bunch of Win 10 clients. Some clients are not in the right AD domain (they are on a former domain that was used ...
user avatar
0 votes
0 answers
30 views

Directory not read

I have a problem with a user's folder. ls -la shows the permissions as ???? instead of drwx. I tried with sudo chmod ug+rw -R /path/folder to reassign the value but it doesn't change. How can i make ...
user avatar
0 votes
1 answer
160 views

nginx - subfolders alias include all subfolder

I'm currently trying to fiddle around with a location block that has a different root. However I have some issues when accessing files that are in a subfolder on the different root. Here is my broken ...
user avatar
  • 23
0 votes
2 answers
410 views

No such file or directory in sh file running

It may be duplicate because there is some similar question but I am not able to fix it, that's why I ask again with my code. My sh have these code: cd /home/domain.com/data/domain-statistics git fetch ...
user avatar
0 votes
0 answers
19 views

batch folder rename on macos / linux

I have 500+ folders which are named with this pattern: May 2020 The folders contain photos, but for some reason the photos creation date in the meta is wrong, or was overwritten. The correct ...
user avatar
0 votes
2 answers
359 views

Nginx and PHP-FPM with subdirectory variable - sends file instead of parsing

Wit the following setup I don't know how to make nginx pass the CGI request to the index script in the appropriate version subdirectory. It instead serves the index as a download. PHP-FPM is a linked ...
user avatar
2 votes
2 answers
237 views

How to get the nearest subdirectory of a file as output in PowerShell?

I need to get only the nearest subdirectory and file name from the file path as follows. Ex:- (1)E:\Dump\DumpText-1.txt - Dump\DumpText-1.txt (2)E:\Dump\SubDump1\DumpText-1.txt - SubDump1\DumpText-1....
user avatar
2 votes
0 answers
65 views

Can OpenLDAP deliver operational attributes by default?

I have configured OpenLDAP with the memberOf overlay and everything works as expected for me. I can see the group memberships in the operational attributes of an object. Now i am running into the ...
user avatar
0 votes
1 answer
76 views

Errors structure in Openldap

I have a question concerning Openldap. I'm using a solution(PingFederate) that gets errors from openldap to do different things depending on the filter. For example i can say : detect the invalid DN ...
user avatar
0 votes
1 answer
29 views

subdomain vs subfolder in site address

I have a main website, from which users can navigate to several web applications. I'm trying to decide if the URL for an application should be as a sub-domain or as a sub-directory, namely which of ...
user avatar
  • 1
0 votes
0 answers
128 views

"Combine" multiple FTP directories so they appear as one

I own a website that allows users to upload files. I have MY files on there as well, but I don't want to mix their files with mine, just in case somebody puts a bunch of malicious files and need to be ...
user avatar
1 vote
0 answers
21 views

WP with reverse proxy: Accessing Admin section from subdomain

I have a blog on a subdomain (WP installation), which for SEO reasons I’m moving to a folder structure. The subdomain and the main site are on different servers/platforms, so I’m using a reverse proxy....
user avatar
  • 11
3 votes
1 answer
345 views

Ubuntu Apache Subdomain not Displaying

Using Ubuntu 18.04 I have my main website www.example.com, all the files are hosted in /var/www/html/ and it works as expected. I would now like to make a new website in a subdomain www.blog.example....
user avatar
0 votes
0 answers
56 views

Move files older than day

I am looking for some solution, where I have to move all the directories and files under the source directory to the destination a day before. I want to move the directories till yesterday but not ...
user avatar
  • 1
0 votes
1 answer
69 views

User-Permission on Folder without affecting owner:group

How can I allow a specific user on my Ubuntu desktop to view/open all folders and files in a specific location without affecting or changing the owner:group of that location? Until now I need to ...
user avatar
  • 43
1 vote
1 answer
55 views

Nginx subdomain + subfolder to subfolder

The goal is to load pages from blog.example.com/blog using example.com/blog and all the posts, categories and authors. location /blog(/.*)$ { rewrite ^ $1 break; proxy_set_header Host $host; ...
user avatar
2 votes
0 answers
148 views

Ubuntu 20.04 to Microsoft Active Directory Integration

I'm having an issue integrating Ubuntu with a Windows Active Directory, the "Realm Discover" always fails to find any realm at all. My DNS server is absolutely fine and I am using Ubuntu 20....
user avatar
0 votes
1 answer
270 views

SFTP Chroot write in chrooted /

Hey, I'd like to write with the chrooted user in his / but i can't. Example: i have /home/sftponly/ as ChrootDirectory Inside has to be another Directory with Permissions to this User, otherwise i ...
user avatar
0 votes
0 answers
28 views

is the linux directory inode different then the file inode?

Im currently reading the book "How Linux Works" by Brian Ward and on chapter 4.5 it is said "A directory inode contains a list of filenames and corresponding links to other inodes&...
user avatar
1 vote
0 answers
72 views

Compare 2 Directories and Move Differences to a Third directory

Running Ubuntu 20.04 and want to compare two directories called 1 and 2 and move differences to a separate directory called 3, ideally conserving the subdirectories. I am able to get almost the ...
user avatar
  • 11
1 vote
1 answer
77 views

Ridiculous Number of Files in a Directory

My employer acquired a company with one particular piece of software that stores a lot of PDF and PNG file files in one directory. When I first replicated it from AWS, there were about 11.5 million ...
user avatar
3 votes
1 answer
436 views

What does "Promote this server to domain controller" actually mean, when the server is already a DC?

Apologies in advance, I've already Googled this and I keep finding things about domain controllers not promoting, etc. I found one question that was close, but they didn't actually go into depth about ...
user avatar
  • 41
0 votes
2 answers
70 views

How to permanently remove directory in CentOS?

I have a directory I want to remove in /opt/ [user /] $ sudo su [root /] # cd /opt [root opt] # rm -rf tomcat9 [root opt] # ls [root opt] # ls tomcat9 But i still cannot seem to remove the tomcat9 ...
user avatar
0 votes
1 answer
33 views

Windows cannot set folder security by user group

I have create a new user group [Group A] in Windows Server, create a new user [User 1] as member of [Group A]. If I set a folder security to [Allow] by user [User 1], the setting will work, [User 1] ...
user avatar
0 votes
1 answer
2k views

Rsyslog keeps writing to /var/log/messages and subfolders

I have a rsyslog on CentOS 8 where I configured several systems to subfolders with this part of config $template RemoteLogs,"/var/log/hosts/%HOSTNAME%/%$YEAR%/%$MONTH%/%$DAY%/syslog.log" *.* ...
user avatar
  • 158
0 votes
1 answer
830 views

Explanation :File permissions override folder permissions, unless the Full Control permission has been granted to the folder

According to the article: http://ntfs.com/ntfs-permissions-precedence.htm The hierarchy of precedence for the permissions can be summarized as follows, with the higher precedence permissions listed ...
user avatar
  • 101
-2 votes
1 answer
101 views

How to move a website to a new server? [closed]

I am going to move my website to a new server. I need to copy the /var/www directory to the new server. Should I use SCP or RSYNC ?
user avatar
  • 35
0 votes
1 answer
800 views

nginx redirects subdirectory requests without trailing slash to a URL with specified port

I have the following problem. In my local test configuration, when I try to access https://www.testdomain.local/admin it will always redirect me to https://www.testdomain.local:8443/admin/ which ...
user avatar
0 votes
1 answer
219 views

How can I rsync a directory that might be busy with updating files?

I would like to transfer a directory of files to a remote destination. Easy. However, at any given time, one or many of these files may be in-use and being updated by users. This doesn't bother rsync ...
user avatar
0 votes
1 answer
315 views

How can I fetch the junk folder from office365 into another imap server?

Office365 put the received mail in the INBOX folder, but also it puts many good emails in the junk folder. How can I fetch the emails from the junk folder into a local imap account, putting them in ...
user avatar
0 votes
1 answer
178 views

OpenLDAP vs Google Secure LDAP

I work on a school (500 students + 50 teachers) and we have: G suite for education RADIUS server for WiFi WPA auth Moodle Another apps with auth (big blue button, Emby, Sinology, closed web, forms ......
user avatar
  • 1
0 votes
2 answers
710 views

set permission automatically to all subfolder and subfiles in specific folder

I want to set a folder such that anything created within it (directories, files) inherit default permissions and group , by anyuser (root also) so , the content of this folder will be deleted by my ...
user avatar
0 votes
1 answer
63 views

Mount a directory on a new partition or disk [closed]

I would like to know how to mount a directory on a new partition or disk. I have a directory, example: /u01/app/mylab/data Inside this I have several files and directories, with specific permissions ...
user avatar
0 votes
2 answers
126 views

How to restrict all but defined accounts to access folders on MS server?

I've been trying to only allow defined members on Active Directory from accessing folders used for an IIS server. There are too many accounts to deny one by one leaving only one or two users to access ...
user avatar
  • 1
0 votes
1 answer
99 views

AD Query for non expiring password but filter only active users

I need to do query which filters users with non expiring password setup. I have something like this: (&(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536))...
user avatar
1 vote
0 answers
293 views

Mounted network drive: cwd can't find current directory

I'm on Debian using python3.7. I have a network drive that I typically mount to /media/N_drive with dir_mode=0777 and file_mode=0777. I generally have no issues with reading/writing files in this ...
user avatar
1 vote
1 answer
7k views

Virt-Manager shared folder Linux host Windows guest

I have a Manjaro Linux up-to-date host with a KVM Windows 10 guest with SPICE guest additions installed managed through Virt-Manager. I'd like to be able to access the host via a shared folder on the ...
user avatar
1 vote
1 answer
1k views

Nginx : How to do dynamic path routing requests to single root directory with different country (geoip module)

How to do dynamic path routing requests to single root directory and url to /<country_zone>/<actual_url>/* . I am able to retrive $country_zone value which can be any of (in|uk|us|...
user avatar
1 vote
0 answers
22 views

Upgrade from Win 7 to WIn 10 causing slowness due to home folders on DFS share

I have my home folders pointing to DFS share. Problem started when I am trying to upgrade my windows 7 to Windows 10, it is trying to scan thousands of profiles on the DFS instead of the system local ...
user avatar
  • 11
2 votes
1 answer
328 views

Remove Access of object or user from directory using PS

We have several servers in the same domain and the requirement is to remove permission from a specific folder which is defined in the power-shell script and I need to specify the name of the object ...
user avatar
1 vote
0 answers
75 views

Terraform, specifying location for vms on datastore

I was wondering as I couldn't find it in the documentation or I've missed it a lot. I am using Terraform 0.12.9 with newest vsphere provider. My goal is to do a clone from a template and it basically ...
user avatar
-1 votes
1 answer
75 views

Keep URL safe from search search engine results [closed]

I've tried to ask this a few times but I think readers are missing the problem, so I'm rewording it. I'm aiming to create a set of online TRUE lifestyle zines - Meaning that they cover a number of ...
user avatar
1 vote
2 answers
336 views

Giving a single sub directory multiple names via htaccess

Primary Scenario ( Answer Needed ) If my website http://website.com has multiple subdirectories: /features/ . /articles/ . /projects/ Which all contain their any number of files and folders; Is ...
user avatar

1
2 3 4 5
14