serverfault.com

VN:F [1.9.22_1171]
Rating: 6.0/10 (1 vote cast)

Common Server issues – FAQs and answers from those in the know

Existing SFTP-Client to FTP-Server gateway / bridge device or software?

6 April 2026 @ 6:30 pm

I am seeking help here looking for something which can do what the title suggests. FTP is a terrible protocol, but many very expensive legacy devices that I'm dealing with still require it for remote support. The legacy devices cannot be upgraded to SFTP or equivalent due to both technical and non-technical reasons. I'm trying to find an existing product or a daemon "protocol proxy" that can just be deployed on a small device, docker, or VM and left alone. Preferably on something like an Intel NUC right next to the legacy device, so that the insecure FTP protocol is not ever going over the intranet. Tunneling over SSH is also not viable due to the random ports used by active/passive mode data connection. There are some 'managed file transfer' tools out there which are like pulling out a nail with a jackhammer... looking for something less 'enterprisey' in that regard. I have created a protocol proxy daemon like this using Java with some Ap

Nginx, redirect <old_host>/ endpoint to <new_host>/frontend/index.html masking external source

5 April 2026 @ 6:48 am

I'm trying to set up Nginx to proxy_pass the location / to an external host. I want the redirect to be masked so it looks like it's served from the old host. So I can't use return 301 <new_host> And I only want to redirect the / endpoint, not /api This is my default.conf for nginx: server { # catch all request listen 80; server_name _; location /api/ { proxy_pass http://apiserver:8080/api/; proxy_redirect default; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location / { proxy_pass http://<new_host>/frontend/index.html; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Select the remote display an RDP session connects to [migrated]

5 April 2026 @ 2:33 am

I have 2 Windows 11 Pro boxes. Machine A has 2 screens, Machine B has 3. The problem is that after I connect (not using use multimon) From A to B, all the applications running on B move from Display 1 (as identified by the Display Settings GUI) to Display 3. mstsc.exe /l on Machine B shows three displays, 0:, 1: and 2:. 0: corresponds to Display 3 from the GUI (i.e., not the one I want), 1: corresponds to Display 1 from the GUI (i.e, the one I want.) I suspect that the incoming connection is routed to "0:" by default. The selectmonitors parameter allows me to control which monitor on Machine A is used, but I want to control which monitor on Machine B is used. Is there a way to configure RDP on either host to connect to display 1 (or "1:") on Machine B?

Direct Raw Disk Export over iSCSI without VHDX Backing (Windows)

20 March 2026 @ 5:01 am

I am attempting to implement block-level remote disk access between two Windows systems: System B (Target): Hosts a physical disk (e.g., \.\PhysicalDrive0) System A (Initiator): Connects over iSCSI and mounts the disk as a local block device Current Approach: Using Windows iSCSI Target Server, which requires virtual disks backed by VHD/VHDX files. Issue: Creating a VHDX for a physical disk results in full-size allocation (e.g., a 400 GB disk requires ~400 GB storage) This introduces: Significant storage overhead Delay in provisioning It prevents instant exposure of the physical disk over the network Requirements: Export a raw physical disk directly (no intermediate full-size VHDX) Enable immediate / near-instant provisioning Maintain read-only access on the initiator side Ensure no additional storage footprint (no disk duplication) Preferably using Windows-native mechanism

How to log user activity with Azure AD?

9 March 2026 @ 10:50 am

In the Azure AD ecosystem, what tools or functionality can be used to query and log user activity statuses at regular intervals? In my prior job the IT team had an Azure/AD "view" (or equivalent) that allowed Reporting Analysts to pull down user activity. The data was in 5 minute intervals, and would tell us if a PC was active, idle, or locked in that period. The idle status was based on the lack of keyboard and mouse activity. The company was fairly invested in the Azure environment, I remember them using Intune and Endpoint Manager, and am sure there were other Microsoft products but cannot recall sorry.

Active Directory removal of lingering objects

8 November 2025 @ 4:45 am

In our Windows Server 2016/2019 Active Directory Environment, We are getting Directory Service 1988 events. We tried through MS GUI tool but unable to process, received failed to remove lingering object and operation failed. We tried removing manually from domain controller. Follow the this Format repadmin /removelingeringobjects Authserver 04dc247f-cb35-43ac-8856-23f4603076b0 CN=configuration, DC=rootcon, DC=local /advisory_mode Removal of lingering objects was successful on authserver, but still showing. How should lingering objects be removed?

High I/O NFS writes causes system hang [closed]

16 April 2025 @ 9:19 pm

Downloading from my NAS using NFS works for low volume, but during a large file transfer the system hangs and is non-responsive to input using SSH or GUI. After transfer is complete, it will act normal. The system doesn't reboot, or crash. However, when copying files using SFTP/SMB/SCP/Rsync, the problem does not occur, only NFS. fstab: XX.XX.XX.XX:/mnt/BigMomma /mnt/BigMomma nfs auto,hard,intr,vers=4.2,rsize=4096,wsize=4096,noatime,fsc,rdirplus,tcp,actimeo=1800 Running Linux Mint 22.2 NFS to TrueNAS with Wireguard S2S tunnel. Small files work better when operating over WAN/VPN than large sizes. Optimal size is 1396 which is an ethernet packet size minus various overhead, but the IOPS increases. Anyone know the cause?

How can I configure an Azure OpenAI resource so that one cannot spend more than some given amount of money on it?

5 August 2023 @ 3:26 am

I created several Azure OpenAI resources in my Azure account. I deployed GPT models in each of the Azure OpenAI resources. I access them via the Azure OpenAI Playground. How can I configure each Azure OpenAI resource so that one cannot spend more than 50 USD monthly on it? I tried adding a budget, but I couldn't find an option to put a hard limit on the expenses.

Disable Windows Defender Firewall pop up for a target folder

22 April 2023 @ 11:45 am

When I compile and run a Go application, Windows Defender Firewall will prompt to allow use of the application. This may be due to the application using sockets. Here is what's happening: I make changes to the code I compile and create an .exe Run the new .exe Windows Firewall presents a Security Alert popup Windows Defender Firewall notification at compilation Is it not possible to create a firewall rule exception for a whole folder? I could disable the firewall but that's not a good idea.

MySql: ERROR 1045 (28000): Access denied for user 'root'@'localhost' although password is okay

21 March 2023 @ 9:43 am

I run Debian 11 with mariadb and everything worked fine. Just yesterday I saw that different commands, such as "/etc/init.d/mariadb reload" or "mysql -u root" bring the error: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) But I can log in with "mysql -u root -p xxx". The password seems to be okay: SELECT User, Host, authentication_string,plugin FROM mysql.user WHERE User='root'; brings this output: | root | localhost | *A1500BDAC90A8E0183B2803086BD6D6E0999EC60 | mysql_native_password | | root | ::1 | *A1500BDAC90A8E0183B2803086BD6D6E0999EC60 | mysql_native_password | | root | myserver | *A1500BDAC90A8E0183B2803086BD6D6E0999EC60 | mysql_native_password | | root | 127.0.0.1 | *A1500BDAC90A8E0183B2803086BD6D6E0999EC60 | mysql_native_password | What I don't understand: with the plugin "my