Latest Server related questions

Score: 0
Create lvm volume in the last cylinders of the disk
hm flag

In all magnetic disks, the speed difference between the first and last sectors is noticeable, up to a factor two or three. This is still true with the new multi-terabyte disks. So it still makes sense to reserve the last cylinders of the disk for infrequently used files, particularly backups.

With a partitioned disk, it is trivial to do this, with the only caveat of allowing for future changes of ...

Score: 1
Only have connectivity to nginx pod from the node its running on
ws flag

I've installed kubernetes master and one node v 1.20. I deployed nginx with

kubectl run nginxpod --image=nginx


$ kubectl get pods -o wide
NAME       READY   STATUS    RESTARTS   AGE   IP              NODE         NOMINATED NODE   READINESS GATES
nginxpod   1/1     Running   0          19s   192.168.2.195   xps15-9560   <none>           <none>

On master when I curl on master it times out ...

Score: 0
jkoop avatar
user that exists doesn't exist when setting chroot with usermod
cn flag

This is with Ubuntu Server 20.04. Here's my terminal session:

joek@comp1:/home/user4$ sudo usermod -R /home/user4 user4
usermod: user 'user4' does not exist
joek@comp1:/home/user4$ sudo useradd user4
useradd: user 'user4' already exists
joek@comp1:/home/user4$ grep user4 /etc/passwd
user4:1010:1011::/home/user4:/bin/sh
joek@comp1:/home/user4$ grep user4 etc/passwd
user4:1010:1011::/home/user4:/bin/ ...
Score: 1
David Buck avatar
Managed platform update failing with Incorrect application version error
cn flag

I have 6 Elastic Beanstalk Python 3.7 environments running the same application. Over the course of the weekend, 5 of them have successfully, automatically auto-updated to the latest platform update:

Platform update from 64bit Amazon Linux 2 running Python 3.7 3.3.4 to 64bit Amazon Linux 2 running Python 3.7 3.3.5

Auto update has been running successfully all year but, today, one is steadfastly refusin ...

Score: 1
Prevent users from uploading files when they are on external networks
de flag

Is there a way to prevent users from uploading files when they are on external networks? The reason for this is internal security and protection of company confidential documents. They should be able to access our VPN services, and then they could access the internet using our Firewall rules. Is there a way to do this without any third-party MDS software? I am thinking GPO policy, PowerShell with Task S ...

Score: 1
Dovecot + Mysql can't authenticate users
th flag

I'm setting up an email server using postfix+dovecot+mysql in ubuntu 20.04

I am stuck trying to authenticate users. It doesn't receive the domain information in the %d config variable (https://doc.dovecot.org/configuration_manual/config_file/config_variables/)

This is my /etc/dovecot/dovecot-sql.conf.ext file:

driver          =       mysql
connect         =       host=127.0.0.1 dbname=mail user=mail pas ...
Score: 0
langtuphidao avatar
How to prevent origin IP Server behind Cloudflare/Sucuri with Shodan, Censys
lb flag

When i use shodan/censys to scan my domain (behind with cloudflare/Sucuri) they can show my IP server with SSL.

Example with Shodan: https://www.shodan.io/search?query=blogchiasekienthuc.com

103.99.252.222 <==== Real IP
FWD Vietnam Life Insurance Company Limited
Viet NamViet Nam, Hanoi
 SSL Certificate
Issued By:
|- Common Name: 
Thawte RSA CA 2018
|- Organization: 
DigiCert Inc
Issued To:
|- C ...
Score: 0
GCP - VM instance missing
ke flag

I had a wordpress deployment on GCP using "Click to Deploy". A few months back there was some issue with the billing account, which was corrected recently. But now the VM instance is no longer showing in the list.

I can still see the wordpress deployment under deployment manager. It also shows the VM name there, clicking on it, it redirects to the VM instances page with the error "Failed to load" ...

Score: 0
Mobile redirect in nginx with query string
lc flag

I'm trying to redirect mobile visitors to AMP pages with nginx. I've basically using the script @ https://gist.github.com/dangayle/2919206 with recommended modifications, plus elements from the answer @ add a URL suffix path (for mobile AMP) without causing a redirect loop in nginx_

The main difference here is that I'm not trying to redirect mobile users to a mobile sub-domain, and instead just ad ...

Score: 1
Manfred Steiner avatar
Debian NetworkManager fails to reconnect
jp flag

Following the NetworkManager description https://wiki.debian.org/NetworkManager the goal of NetworkManager is:

NetworkManager attempts to keep an active network connection available at all times.

I compared an Ubuntu 21.04 system with Debian 11 (bullseye), both as virtual guest in a Libvirt environment, using 2 "wired" network interfaces (different subnets) on each guest.

Procedure:

  1. Starting guest ...
Score: 1
Little Apocrypha avatar
Logging nginx rate-limited IPs into a specific file
in flag

I'm looking for an approach to synchronize rate-limited IPs between nginx nodes. I want to log these IPs and after that pushing them into a database and developing an agent to update blocked IPs in nginx config files.

My challenge is to find a way to have IPs nginx limited with 429 status code.

So, Is it possible to log rate-limited IPs into an specific file in nginx or do you suggest any other a ...

Score: 0
thebluephantom avatar
Same DNS names, private ip-addresses used over multiple AZURE Corporate Accounts
cn flag

Looking at the below: enter image description here

Here we see a single AZURE Corporate Account X. See "azsql1.database.windows.net". You can access that from on-prem.

What if for arguments sake I had a second AZURE env. configured exactly the same - AZURE Corporate Account Y, with "azsql1.database.windows.net".

It's theoretical, but I would like to know how the on-prem reolves this if one tries to use "azsql1.database.window ...

Score: 0
tgflash avatar
Apache Indexes Option works for HTTP but not for HTTPS
lk flag

I am testing with a vanilla install of Rocky Linux 8.4 and Apache 2.4. I have a virtual host configured and working and I also configured Lets Encrypt cert via Certbot, this also works great.

I want to allow directory listings on a specific folder so have enabled Options Indexes, this works as expected via HTTP but via HTTPS I get 403 Forbidden. The Certbot script inserted the rewrite rule but I  ...

Score: 1
rm -rf avatar
Does Microsoft Official RDP Program end to end encrypt data?
my flag

For example,

me RDP Client --connect to--> a Linux ServerA 1.1.1.1:3388 --iptables_Port_Forwarding--> a Windows ServerB 2.2.2.2:3389

Then, Is the part of me RDP Client >-to-> the Jump ServerA 1.1.1.1:3388 also Encrypted by RDP(TLS), or not like "naked"?

Score: 0
crontab: using ${USER}
cn flag
SEU

I am writing some scripts that uses ${USER} to point to subsequent scripts. But when I run it from crontab, it errors out and the files are not found. I understand why.

I intend to share this with my colleagues and each time the colleague has to manually change the first line to his own username. How can I minimize this issue (not have a manual way to change that one line)?

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.