Latest Server related questions

Score: 0
DNS Server Search order in Windows 10 and VPNs
ph flag

DNS queries to hosts accessible through a VPN fail. How to fix?

On a Windows 10 host, DNS queries for hosts known only to the VPN-accessible DNS Server fail to resolve. The DNS queries are sent to my local DNS Server (192.168.1.1) which returns no DNS Answers. DNS queries are not sent to the VPN-accessible DNS Server (10.0.1.1).

Powershell Get-DnsClientServerAddress shows:

PS> Get-DnsClientServerAdd ...
Score: 0
RogerTheShrubber avatar
Apache - Redirect while dropping everything after domain
mx flag

So I can do a simple redirect on an Apache virtual host like this:

<VirtualHost *:443>
        ServerName www.old-domain.com
        Redirect / www.new-domain.com/new-resource

</VirtualHost>

But of course, if I go to www.old-domain.com/old-resource it redirects to www.new-domain.com/new-resourceold-resource. I'd like to just drop everything after the old domain name, regardless of t ...

Score: 0
Kerberos kinit with keytab not working with certain encryption methods -- PER USER
ru flag

I have two users, say userA and userB. userA can use a keytab with aes but not rc4 and userB can use a keytab with rc4 but not aes.

This is the snippet that makes the keytab, tests it, and puts it into place:

#!/bin/sh
PRINCIPAL="xxxxx"
# METHOD="rc4-hmac"
# METHOD="aes256-cts-hmac-sha1-96"
METHOD="rc4-hmac-exp"
KEYTAB="/tmp/$PRINCIPAL.keytab.$METHOD"
PASSWORD='xxxxx'
set -x

umask 0007

KEYTAB_T ...
Score: 3
How can I quickly test a path in bash to determine if any segment of it is a symlink?
us flag

If I have a path like this with a symlink:

/this/one/two/three

Is there is a quick one-liner for determining if one more more segments in the path is a symlink? For example, I'd want to detect if this, one, two, or three in the example above was a symlink.

One way is to compare the path containing the symlink to the output of readlink -f <path>. Wondering if there is a faster way.

Score: 1
namespace - nobody to root mapping
us flag

I'd like to create new user namespace being root with the command:

# unshare -U bash
$ echo $$
3500
$ id
uid=65534(nobody) ... etc

After that I edit /proc/3500/uid_map im my initial namespace as root:

# echo "0 100000 65536" > /proc/3500/uid_map

My /etc/subuid file I've created:

root:100000:65536

Now when I'm back in newly created user namespace by unshare:

# exec bash
uid=65534 ... etc

still ...

Score: 3
Scriptguru1701 avatar
Windows - Group Policy - Numerous Share Drives w/ Item-Level Targeting
jp flag

Overview

We have been working on getting our numerous sites to map share drives for each user that needs access to their sites. We have no way of standardizing this from within their AD profile as some users move around a lot and end up not telling IT until they need access to a particular site share drive. In turn we have created security groups for each site and will be using this as an item-level ta ...

Score: 1
GitLab Runner failing to register after migration to new cluster
ec flag

I have GitLab installed in Kubernetes with their Helm chart.

I migrated my old Gitlab deployment from one cluster to another with the following steps:

  • Scale down all pods in old cluster
  • Apply values.yml with helm to new cluster (to create PVCs)
  • Scale down all pods in new cluster
  • Change DNS records, HAProxy, etc
  • Manually rsync data from old PVCs to new PVCs (minio, gitaly, redis, postgres, promethe ...
Score: 0
vinzee avatar
How to forward port 8080 from a distant server to the client from the client using a tunnel ssh?
ke flag

I have installed GitLab in docker on a distant machine. I would now like to forward the port 8080 from this distant machine to my local port 8080.

On the distant machine:

sudo docker run --detach --hostname gitlab.example.com --publish 443:443 --publish 8080:80 --publish 2222:22 --name gitlab --restart always --volume $GITLAB_HOME/config:/etc/gitlab --volume $GITLAB_HOME/logs:/var/log/gitlab --volume $GI ...
Score: 1
nginx - 301 redirect wrong URLs used on extern website
uz flag

For some reason, some extern websites have links to my website subdomain.example.com looking something like this: <a href="https://subdomain.example.com/https://subdomain.example.com/index.php?id=54597">Link</a>

I cannot get these links corrected as I have no control over these links. So instead of showing a 404 error, I would like to redirect https://subdomain.example.com/https://subd ...

Score: 0
Min Hong Tan avatar
office 365 email status delivered, but recipient not receive or quarantine
ma flag

our company recently migrate out gmail to o365, it running fine for one month, after that,a lot of recipient are complaining not receive any email from our company, we have checked admin console, and the status shown the message deliver status as "delivered".
recipient not found in junk/quarantine console. any possible to trace? we have submitted question to consultant and escalated to Microsoft, a ...

Score: 0
ygoe avatar
Systemd restart rate limiting
jp flag

I'd like to set up a systemd service so that it restarts quickly at first, but slows down after a short while. The reason is that a service might temporarily fail and come back up quickly for highest availability. But should the issue persist longer, this will generate lots of log entries. In that case the restart interval should be longer to not cause such a load but still come back if the issue resolv ...

Score: 0
UDP Traffic forwarding via linux system
cn flag

I would like to allow two clients (on the left side) to talk to one remote entity (on the right). All entities besides the linux PC are not configurable w.r.t. to listening ports.

I imagined the solution to be as follows

enter image description here

And use the following iptables configuration

iptables -t nat -F POSTROUTING
iptables -t nat -F PREROUTING

sudo iptables -t nat -A PREROUTING -i enp10s0 -p udp --sport 55555 -j DNAT -- ...
Score: 0
AWS - How to handle global "Round Trip Time"?
aw flag

Hey serverfault people,

Image a generic "Software as a Service" company offering a service running on AWS (hey, that's us). There is no rocket science involved, standard web-application doing its thing as usual and an end-user smartphone app. As customers are from Europe, naturally the AWS eu-central-1 region is containing everything for multiple tenants.

Now Sales manages to win a customer from

Score: 0
MansNotHot avatar
How to change folder permission using FileZilla Client on Windows for Filezilla Server on Windows Server?
be flag

I have tried many things including using Cygwin with a domain user because Windows Server cannot use CHMOD which FileZilla tries, but nothing worked sadly.

I am open to using a different FTP Client if nessesary.

This is all to change the permissions for some folders for the FTP user from "Not Writable" to "Writable" for Wordpress

Score: 1
Hamza AZIZ avatar
slow environment with high CPU usage
sn flag

I'm new to Linux metrics

in our test environment we experiment a slowness, after investigation we have found that the disk space used to store backup data is full, but what is wired for me is that the disk i/o is not high at all

we are working with MySQL server

here is the output of the top commandenter image description here

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.