Latest Server related questions

Score: -1
A X avatar
How to sign out of a specific session for a Microsoft Account?
my flag
A X

If I am logged into a Microsoft Account (e.g. Office 365) in many places, and I want to end an active login session that is specific, but not end ALL active login sessions, how do I actually do that?

I can only find documentation on how to log out of all active sessions but not a specific one. Any help is greatly appreciated.

Score: 0
Thomas B avatar
Howto: Pam session steps loggued in GDM UI
mr flag

On Ubuntu 20.04, with gdm3 When my user succesfuly loggued-in, I've a pam-session script that do a lot of long running jobs before starting gnome. I simple looking for writing some basic info in the GDM UI to let know the user what's going on.

At the first login, I noticed "creating /home/users/myusersname directory" writted under the password field. It's done automaticaly, so it should be possib ...

Score: 3
Jackie avatar
Why is a moby/buildkit:buildx-stable-1 getting created when I try to build leading to a container name conflict?
ng flag

I have the following docker-compose...

version: "3.8"
services:
  proxy:
    container_name: proxy
    extra_hosts:
      - "host.docker.internal:host-gateway"
    build:
      context: proxy
      dockerfile: Dockerfile
    volumes:
      - ./proxy/certificate:/usr/cert
    ports:
      - "443:443"
  ui:
    container_name: ui
    restart: always
    build:
      context: frontend
    ports:
      ...
Score: 1
LCaraway avatar
Expanding XFS file system from another device?
pk flag

I have two virtual devices on a fedora system. Both are in a raid 5 configuration. No LVM is in place. The system it’s self is installed on one of the devices. That same device is also the one with some un-allocated extra space. Id like the use the space and add it to the file system which is dfw on the other device. Is this is even possible? I was hoping to avoiding rebuilding the system. What are my ...

Score: 0
trouble_bucket avatar
Failing to create Digital Ocean Droplet with firewall
st flag

I am trying to create a firewall and then create a DO Droplet with that firewall added to it. Here's my playbook:

- hosts: localhost
  vars:
    digital_ocean_token: '{{ lookup("env", "DO_API_TOKEN") }}'
    ephemeral_ssh_key_pub: '{{ lookup("env", "EPHEMERAL_SSH_KEY_PUB") }}'
    ephemeral_ssh_private_key_file: '{{ lookup("env", "EPHEMERAL_SSH_PRIVATE_KEY_FILE")
    public_ip: '{{ lookup("env", "P ...
Score: 2
slondr avatar
How do I give a postgres user all privileges to a specific database?
ng flag

I'm setting up a new database server which I intend to use as a backend for many services. Each of these services generally only care about a single database in the system, so I'd like to isolate the accounts each service connects with to only be able to access that database. The service applications manage their own schema, so I want to give them admin-like privileges to their database, but they should ...

Score: 0
Rostyslav avatar
iptables: No chain/target/match by that name. Ubuntu 16-04 (WSL2)
ht flag

I know, there are many questions with this topic, but none of them helps me.

After I run sudo iptables -w -t nat -A PREROUTING -s 100.64.0.8 -j CONNMARK --set-mark 25119

I get iptables: No chain/target/match by that name.

I was following this answer to identify the part of the rule that causes the error. I have discovered that if I run sudo iptables -w -t nat -A PREROUTING -s 100.64.0.8, no error is be ...

Score: 0
Cannot add an on-prem Windows server to an Azure Virtual Network
br flag

I have an on-prem Windows Server (Core), and have been attempting to connect it to Azure using a new "Azure Network Adapter" (from the "Azure Hybrid Center" home page in Windows Admin Center)

I have done some experimenting, and I can run through the wizard in Windows Admin Center, to create a Azure Network Adapter along with a brand new Azure VPN Gateway with self signed certificate. I get no err ...

Score: 2
RDK avatar
My Nginx webserver does not correctly serve content with accented characters in files names
it flag
RDK

I just created a new web server using a Linux box and NginX. It seems to be working correctly for most content.

I just converted a site which used to be on a Windows Server box and for the most part the content and functionality (HTML and JavaScript) transferred ok. However, I have discovered that NginX seems to have problems with image names (perhaps other files also??) which contain accented ...

Score: 0
Fedor Beznravny avatar
proxy hlds from subdomain to docker conatiner
gr flag

There are several docker containers with different hlds servers. There are several subdomains for them. How to combine them, to make, for example, map subdomain.domain.com to some container udp port, like 27015?

Nginx, maybe, could not be used, maybe, haproxy will help?

Score: 0
cristobalito avatar
Dovecot with imapfilter - moving underlying maildir++ messages
mx flag

I've got a somewhat convoluted setup where I'd like to:

  • sync email from hosted provider via offlineimap to local Maildir++
  • use Dovecot to host a local IMAP server backed by said Maildir++
  • run imapfilter against Dovecot to filter and manage emails
  • re-sync emails back to my hosted provider via offlineimap

I've been playing around with the Dovecot part of this over the weekend, and mostly got it working. ...

Score: 0
zorlax avatar
Is allowing a forward forward rule in UFW from and to the same interface sane?
fr flag

I'm experimenting with setting up a wireguard network using Linux peers (Ubuntu and raspberry). The "Server" peer is running UFW and I've been looking at the log to try and figure out what rules I should have to get the setup working as intended. The last hurdle, I think, is that UFW logs a block when I'm connecting via SSH between peers. The actual connection goes though though so I'm not sure why it l ...

Score: 0
Adam A avatar
How can I set up AWS Client VPN using IAM roles for authentication?
kr flag

Context: I am trying to set up Postgres RDS in a private_isolated subnet of a VPC. I want to use pgAdmin to do work on it, which means I either need a bastion or a VPN connection. A bastion requires a long-running EC2 instance, and I currently don't have any EC2 running at all. I would like to set up the VPN connection as that seems more to-the-point. We don't have AD or a SAML provider though - we have ...

Score: 0
jak kaj avatar
Ping to/from KVM QEMU VM running in another network namespace
om flag

I cannot ping to the default network namespace from a KVM QEMU VM running in a separate network namespace.

Here is my setup:

ip netns add test-ns

# Creating veth
ip link add if-in-ns type veth peer name if-notin-ns
# Default namespace
ip link addr add 10.21.0.10/24 dev if-notin-ns
ip link set dev if-notin-ns up
# Test-ns namespace
ip link set dev if-in-ns netns test-ns
ip netns exec test-ns ip addr a ...
Score: 0
Nikko avatar
cors policy blocking request from my docker django nginx app
ng flag

I am trying to make a POST request from my React app deployed locally to my dockerized Djano app deployed in Google Compute Engine. I am receiving this error:

Access to XMLHttpRequest at 'http://X.X.X.X/register/' from origin 'http://localhost:3000' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.

I have added django-cor ...

Score: 0
Jeethesh Kotian avatar
EC2 server losses internet connection and application fails to send email, sms and even yum updates
cn flag

I have 5 EC2 servers in the same VPC and all of a sudden yesterday, all of my applications started failing to send email and sms. So I tried doing git pull of my project it also timed out. Then tried to install telnet using yum that to failed with Time out. I have checked almost everything including Network ACLs, Security Groups, Subnets, Iptables, etc and everything is correct. I am not sure why is  ...

Score: 0
Apoorv Pal avatar
How to create a shared Disk with the image stored on Host in KVM?
gr flag

I am currently trying to setup a disk, using the raw img format on the host, which is then shared between multiple guest VMs (which are running Alpine Linux), using the libvirt / KVM virtualization platform. While I attached the disk to different guest VMs (the disk is given the <shareable/> tag in the XML configuration), it seems to work fine except that the disk needs to be remounted to check  ...

Score: 0
Rabin avatar
Established TCP connection but no data is returned
in flag

I'm running a simple registry with podman and bind it to a local private IP address.

podman container create \
   --name insecure-registry \
   --privileged=True \
   --env REGISTRY_HTTP_ADDR=0.0.0.0:5000 \
   --volume /var/lib/registry:/var/lib/registry:rw \
   --publish 10.20.30.40:5000:5000 \
   registry:2 

And when I try to expose the registry using port-forwarding to a limited source IP's, from w ...

Score: 0
Legends avatar
Permission for Users group successfully modified via code, but change is not reflected in Security tab for the Users group
id flag

I have C# code (at the end) which:

  1. Creates a file
  2. Prints the current ACL
  3. Gives the builtin users group "write permissions" to the previously created file
  4. Prints the current modified ACL

The write permissions are successfully assigned via code as you can see in the console ouput.

enter image description here

My question is: Why does the security tab of the file, not reflect this permission change for the Users group ?

enter image description here

C# code ...

Score: 1
Anvay avatar
Nova Compute State "down"
US flag

I am doing a live migration test in an OpenStack cluster. (Mitaka). I have 3 VMs deployed on 2 compute hosts. The nova-compute state is UP when I start the cluster. But after sometime the although the status is Enabled the state is down because of which my VMs get disrupted.

root@ctl:/var/log/nova# openstack compute service list
+----+------------------+--------------------------------------------- ...
Score: 0
codeman avatar
Nginx phpbb3 2 urls
in flag

I have Nginx installed and i want to config the forum.

The url EXAMPLE: example.com Forum phpbb3 Access : example.com Another web into the same domain: example.com/web Nginx forum path /var/www/html/foro (example.com) Nginx web path /var/www/html/web (example.com/web)

I created the Nginx configuration, but only let me to access to example.com, if i put example.com/web or example.com/{whatever you li ...

Score: 0
demu avatar
Azure AD B2C on backend or front end?
tr flag

I have a service oriented application where the fornt end is a NextJs application and the backend is a .net core API project.

I want to use Azure AD B2C to provide Authentication.

Should I configure AD on the front end to perform the login and send the token to the backend api or should I do it on the API backend side?

In particular, If I configure also Google login, Can it be done on the APIs with AD  ...

Score: 0
Tip32a avatar
Access a log on a remote Windows server locally in near realtime
za flag

I am using Windows server 2019 and an application that creates .log text files.

I need a way to be able to copy these logs (well their contents) to another location via the internet in near real-time. I know there are a dozen or more complex remote file sync apps. I am looking for simple. The remote PC is running windows.

Thanks Tom

Score: 1
Budianto IP avatar
Why doesn't the timezonedb extension have the latest data?
cn flag

I've created a Dockerfile, and I use the wordpress:php7.4-apache.

I've tried to install the timezonedb extension using 3 different methods separately.

Method 1.

RUN docker-php-source extract \
    && pecl bundle -d /usr/src/php/ext timezonedb \
    && docker-php-ext-configure timezonedb \
    && docker-php-ext-install -j$(nproc) timezonedb \
    && docker-php-source del ...
Score: 0
El-Salatinie avatar
postfix mail consumes too much memory of ubuntu server
cn flag

I had an issue, that the mail server always crashes. after investigations i found out, that it is a system memory issue. server had 8GB Ram and i've increased it to 16GB. it is now much better but still consuming too much memory.

following is top processes in my server:

top

top - 15:36:40 up  7:58,  1 user,  load average: 91.59, 92.19, 91.31
Tasks: 455 total,  92 running, 306 sleeping,   0 stopped,   ...
Score: 0
Rob Gilton avatar
How to allow connections from in-cloud kubernetes pods to an on-premises network?
in flag

We have a private on-premises network with some servers that need to remain on-premises. We want to allow pods in our in-cloud kubernetes cluster (linode) to be able to talk to those private servers, without exposing those private servers to the internet as a whole.

If this were not kubernetes, we'd use an IPSec VPN to do this -- but I'm not sure how to get something similar done in kubernetes.  ...

Score: 0
Greendrake avatar
AWS Elastic Inference not working after waking up from hibernation
ng flag

I babysit a Python daemon in an EC2 instance watching incoming jobs and running PyTorch inferences on them in Elastic Inference.

When there are no jobs, I hibernate the instance. When there are jobs, the instance is waken up and the Python script continues its loop from where it was frozen.

When the script tries to run an inference after waking up from hibernation, it throws this error:

EI Error C ...
Score: 0
Steve Moretz avatar
firewall-cmd block outgoing connection to an ip list
in flag

I have searched a lot about this, this is possible to have many of these commands one for each ip:

/usr/bin/firewall-cmd --direct --add-rule ipv4 filter OUTPUT 0 -d ::FFFF:85.185.0.0/112 -j REJECT
/usr/bin/firewall-cmd --direct --add-rule ipv4 filter OUTPUT 0 -d ::FFFF:85.198.0.0/115 -j REJECT
/usr/bin/firewall-cmd --direct --add-rule ipv4 filter OUTPUT 0 -d ::FFFF:85.198.48.0/116 -j REJECT
...

Score: 1
hachan29 avatar
Nginx UDP proxy shared connection is busy
pr flag

We are proxying UDP packets for a game server through a Nginx reverse proxy. Clients timeout very often because the Nginx can't handle the requests. Initially it works flawlessly, but when more clients are connected to the game server (40-50), we encounter problems.

How could we make Nginx handle it?

Here is the proxy setup

stream {
    upstream backend {
        server [server-ip]:[port];
    }

    ser ...
Score: 0
Sawtaytoes avatar
With iptables, is it possible to route only certain domains?
cn flag

I'm routing specific devices through a separate gateway device that connects to a Tailscale VPN exit node.

I'm using this command so my device can act as NAT router to Tailscale:

sudo iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE

But this only works because I've enabled IP forwarding in sysctl:

sudo sysctl net.ipv4.ip_forward=1
sudo sysctl net.ipv6.conf.all.forwarding=1

I'd like to be more ...

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.