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
0
votes
1answer
20 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....
1
vote
0answers
19 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
0answers
22 views

How to change the error that we get from Openldap in case the account is locked or expired?

I have a question concerning openldap. Is there a solution to change errors via a proxy or any way with Openldap. Because as you maybe know Openldap returns the same error when the account is locked ...
1
vote
1answer
69 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
0answers
22 views

Powershell rename dir

OS: W2k16 Server Powershell: 5.0 I need to rename a nuget package dir how microsoft say: Rename the folder. The default folder name is usually <name>.<version>. The version can include -...
0
votes
0answers
15 views

Setup Blooger in a Subdirectory

I would like setup Blogger to be on a subfolder in a Ruby on rails app to : pulpoludo.com/blog RUBY ON RAILS To do this I use rack-reverse-proxy in my rails app : In config/application.rb : config....
0
votes
0answers
7 views

Configure apache2 to share specific pages on a specific interface with LocationMatch?

We have a web server that has two interfaces with two seperate IPs. Currently the server listens on both interfaces for all pages. I want to restrict access to specific pages on one interface, while ...
0
votes
1answer
17 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
0answers
23 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
0answers
13 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
1answer
41 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
0answers
41 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
1answer
30 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
1answer
28 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
0answers
99 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
1answer
145 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
0answers
23 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
0answers
25 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
1answer
69 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
1answer
189 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
2answers
47 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
1answer
30 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
1answer
480 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
1answer
302 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 ...
-3
votes
1answer
96 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 ?
1
vote
1answer
160 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
1answer
131 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
1answer
46 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
1answer
105 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
0answers
52 views

S3 “folder-per-client” permissions strategy

I was originally planning on an S3 bucket per client, with bucket policies restricting access to that bucket to a single IP (the clients' single-tenant server). However, most S3 compatible service ...
0
votes
2answers
339 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 ...
0
votes
1answer
23 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 ...
0
votes
2answers
119 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 ...
0
votes
1answer
20 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))...
1
vote
0answers
164 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 ...
1
vote
1answer
4k 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 ...
1
vote
1answer
455 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|...
1
vote
0answers
16 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 ...
2
votes
1answer
55 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 ...
1
vote
0answers
33 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 ...
-1
votes
1answer
73 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 ...
1
vote
2answers
135 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 ...
-1
votes
3answers
318 views

Change WordPress root directory in nginx

I have a website that address is site.com and also a WordPress that is site.com/blog. I would change the WordPress root directory in the nginx. here is my config: server { listen 80 ...
0
votes
2answers
184 views

Copying files in Linux keeps full path

I made a script to, every 6 hours, copy a folder to a backup folder, then put them in /var/www/html/backup/. My command to copy the files was cp -vR ~/world ~/backups/Backup\ on\ $date/world My ...
1
vote
0answers
96 views

Domain misconfiguration when loggging in to Samba 4.5 AD DC

I have set up a Samba 4.5 as a Domain Controller, I have added to AD a Windows 10 computer and a Windows 7 computer and a user and I can login from the windows computer. Relevant info: My domain is ...
0
votes
0answers
50 views

redirecting domain to subfolder with .htaccess

I'm new to using and changing the workings of a server and all that. So far I've only had one server with one domain for myself, but now a business is getting some traction and I want to use a ...
1
vote
1answer
48 views

Linux File System - Folder Removal with Special Charakters

we have an Linux Debian Server in our House as Developer Machine. One of our developers has created accidental an Folder Called Ð?оваÑ? папка How can I Remove this folder. I have tried ...
1
vote
1answer
106 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
232 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'...
2
votes
1answer
5k 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/...

1
2 3 4 5
14