Latest Server related questions

Score: 0
Mudream avatar
How to let homeless user operate unsafe repository
us flag

After version 2.35, git will fail when doing git operation if user is not the owner of git repository due to a patch for a CVE issue.

A quick fix(Well, I think it is just a temporarily method.) for users with home is setting git config.

git config --global --add safe.directory {git repo path}

However, this method cannot apply to a homeless user. Git config need to lay in user's home directory.

How to ...

Score: 0
UDP broadcast with nc not received (Ubuntu)
in flag

I'm trying to understand UDP broadcasting, and running into some trouble.

1 - Running a server like this

nc.traditional -l -u 10.0.0.253 -p 65001

2 - Sending stuff from the client like this - on the same machine - works:

nc.traditional -u 10.0.0.253 65001

I can type stuff into the client nc and it shows up in the server nc.

3 - But in broadcast mode like this, when I type stuff into the client the s ...

Score: 0
vishy dewangan avatar
Why ACCEPT target for POSTROUTING chain of nat table is not working in iptables?
in flag

I am trying to audit the packet and byte size of ping request to remote server at POSTROUTING chain in nat table of iptables. For that i have created the rule using ACCEPT target as follow

iptables -t nat -A POSTROUTING -p icmp -d 172.16.16.102 -j ACCEPT

But when sent the ping request to server 172.16.16.102, the packets were captured at this chain. Kindly suggest am i missing something.

Although when i  ...

Score: 0
adm avatar
How to prevent unauthorized relay of mail in Postfix
ru flag
adm

It seems that our mail server is being used to send spam.

  • The sender of the email is a spoofed real account on our server.
  • There is no email in the sent history for that account.

I would like to know if there is any way to prevent this. Any advice is welcome.

Postfix log:

May  9 22:12:21 mx postfix/submission/smtpd[1885206]: warning: hostname 201-91-101-26.customer.tdatabrasil.net.br does not re ...
Score: 0
Techmago avatar
Docker-ce oppening Firewalld ports on rocky 8
in flag

Docker-cd, when run with -p 3010:3010 bypass the firewall and open the container port to the world... If i disable docker and run a python -m http.server, the port is blocked to the outside (as it should, the default rule is drop) but after the docker run, docker opens it. This prevents me from running a database or a redis with docker, without these services beeing expoded to the world.

I tried:

Score: 0
dahwild avatar
ERR_TOO_MANY_REDIRECTS using Nginx and Application load balancer
jp flag

I have set up an ALB on AWS with a certificate to redirect traffic over https, in my target group I have a Nginx to do a proxypass with my target instances.

Currently I have a CAS 4.0.1 application deployed in one instance, when I use the IP it works perfectly, but behind nginx I get ERR_TOO_MANY_REDIRECTS.

My Nginx has the following configuration:

server {
    listen 80;
    proxy_set_header X-Real-IP $ ...
Score: 0
Having trouble getting a regex to redirect traffic to work correctly
it flag

I'm trying to setup some 301 redirects on WPengine using regex and I'm having trouble getting things working.

For pages that do not have the first part of the URL matching, I'm able to setup things up using the below:

  • Source: ^/abc/123/
  • Destination: ^/def/

However, when I set this up using the Old/New URL listeded above, thi ...

Score: -1
Philip avatar
Using Set-MpPreference to schedule Windows full and quick scans doesn't work
ph flag

On a Windows 10 machine, I have been trying to set the time of virus scans using the following PowerShell commands.

Set-MpPreference -ScanParameters FullScan
Set-MpPreference -ScanScheduleDay Monday
Set-MpPreference -ScanScheduleTime (Get-Date 20:00)
Set-MpPreference -ScanOnlyIfIdleEnabled 0

Set-MpPreference -ScanScheduleQuickScanTime (Get-Date 10:00)

However, Windows Defender doesn't seem to obey an ...

Score: 0
Bender the Greatest avatar
Is there a procedure required when baking the Amazon CloudWatch agent into an AMI?
sm flag

I've run into a problem getting the CloudWatch agent started on Windows EC2 instances created from AMIs which I have prepared beforehand. The error I get is this:

Service 'Amazon CloudWatch Agent (AmazonCloudWatchAgent)' cannot be
started due to the following error: Cannot start service
AmazonCloudWatchAgent on computer '.'.

The issue is not what is described in this troubleshooting document, as t ...

Score: 0
AlexanderF avatar
How to get aws account id from local configuration?
us flag

I'm well aware of the aws sts ... method but that requires a remote call. Is there a way to get my account id/number from local configuration?

Score: 0
nginx how to replace try_files with proxy_pass having multiple paths
us flag

I have a set of rules in Nginx of this type:

location ~ ^/race/[a-z0-9\-_]*/session/[a-z0-9\-]*/topic/[a-z0-9\-_]*$ {
   try_files $uri $uri/ /race/period/session/team/topic/index.html;
}

location /images/assets/ {
   try_files /backup/data$uri /default_images/small_asset.png =404;
}

These rules work when the files exist on the server but now the data is in a remote location (AWS - S3+cloudfront) I  ...

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.