Questions tagged [directory]
A directory, also commonly called a folder, is a filesystem object used for organizing files and other directories.
685
questions
0
votes
0
answers
12
views
Newbie needs to scale
We are a tiny firm right now but are fortunate that over the next 90 days we'll go from under 10 users to maybe 4/500. I'm knowledgeable enough to know that this is the time to get things right, maybe ...
0
votes
0
answers
141
views
NGINX config for multiple Symfony installations using subfolders
I have a shopware installation (version 6.5.5.1) running on my domain. I want to add more independent Shopware installations, using the same domain (for different languages/countries).
For example, ...
0
votes
0
answers
42
views
sanitize folder names before creation
How prevent the injection when creating folders with user supplied paths in a unix like system?
Ideally subfolders can be created only in selected or working folder. Although the creation of folder in ...
1
vote
2
answers
269
views
Apache rewrite rule for a folder to a different domain
I need to redirect all requests concerning a folder to another (old) web server called www2 keeping the entire original path, for example
https://www.example.org/thisfolder/maps/map.jsp?id=2345
must ...
1
vote
2
answers
58
views
Delete folders asynchronously
I have a large file system in which I have to delete certain directories from time to time. Currently I have a script which amongst other things, deletes a folder and subsequently generates an email ...
0
votes
0
answers
34
views
Isolating a WordPress wesbite within a sub-directory of another
Is it possible to isolate a website within a sub-directory of another on a WHM server? And by isolate, I mean in the event that website within the sub-directory is compromised any malware is contained ...
0
votes
1
answer
62
views
Free up space on C drive Server 2016
I have a server running Server 2016 and the C drive is getting full. This server's only role is to run an accounting program (MRI) that requires SQL Server. I have two SQL Server files in the ...
0
votes
0
answers
176
views
Mount CIFS is seeing directory on network share only if extra directory is created
On my CentOS ver 7, I have mounted drive from Windows Server 2019 (with shared name "Backup-disk"), and on this drive I have two directories ("A" and "B").
Now I have ...
0
votes
1
answer
823
views
Set folder permission by OU
I'm attempting to setup folder permissions on my DC to a shared desktop. I have an OU containing the users I want to allow to view this folder, and a GPO which handles the permissions linked to the OU....
1
vote
2
answers
658
views
Nginx Server with multiple applications on sub-directories
My team has a server we use for internal tools and tests. It has a subdomain pointing to it: myserver.mycompany.com. What we're trying to achieve is to have multiple applications, each with under a ...
1
vote
1
answer
114
views
Apache 2.4: owncloud in sub-directory outside of DocumentRoot
I am working on moving current setup of owncloud from sub-domain https://cloud.example.com to sub-directory https://example.com/cloud to make all my apps covered by one SSL certificate. The problem is ...
1
vote
0
answers
3k
views
NGINX file server with symlinks
This is a bit of a beginner question, but I'm trying to make Nginx serve a static file server that contains symlinked folders. Eg, the root directory might contain directories A and B, which each ...
0
votes
0
answers
122
views
proftpd join multiple paths into single virtual filesystem for specified user
I've tryed configure proftpd for specified user, that join at least two directory paths as single filesystem tree, including chroot option (rootdir). Is it possible any way? Proftpd has support for ...
0
votes
0
answers
159
views
Nginx - Reverse proxy serving ScreenConnect does not prepend subdirectory
I am running an unsecured ScreenConnect web interface on a machine on my local network. I would like to serve it through port 443 using nginx's reverse proxy, and access it via:
https://<WAN.IP....
1
vote
1
answer
523
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 ...
0
votes
1
answer
6k
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 ...
1
vote
1
answer
647
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:
...
0
votes
0
answers
133
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
...
1
vote
1
answer
257
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 ...
0
votes
0
answers
35
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 ...
0
votes
1
answer
2k
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 ...
0
votes
2
answers
1k
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 ...
0
votes
0
answers
25
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 ...
0
votes
2
answers
1k
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 ...
2
votes
2
answers
2k
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....
2
votes
0
answers
162
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 ...
0
votes
1
answer
109
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 ...
0
votes
1
answer
107
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 ...
0
votes
0
answers
402
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 ...
1
vote
0
answers
103
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....
3
votes
1
answer
1k
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....
0
votes
1
answer
1k
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 ...
0
votes
1
answer
840
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 ...
1
vote
1
answer
180
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;
...
2
votes
0
answers
228
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....
0
votes
1
answer
1k
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 ...
0
votes
0
answers
55
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&...
1
vote
0
answers
271
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 ...
1
vote
1
answer
95
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 ...
3
votes
1
answer
980
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 ...
0
votes
2
answers
154
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 ...
0
votes
1
answer
49
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] ...
0
votes
1
answer
5k
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"
*.* ...
0
votes
1
answer
2k
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 ...
-2
votes
1
answer
183
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 ?
0
votes
1
answer
2k
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 ...
0
votes
1
answer
375
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 ...
0
votes
1
answer
559
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 ...
0
votes
1
answer
337
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 ......
0
votes
2
answers
2k
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 ...