Latest Server related questions

Score: 0
OpenMask avatar
Cannot ssh after resizing CPU and memory of my VM
id flag

I followed the recommandation to reduce the size of my VM (number of CPU from 4 to 2 and memory from 16GO to 8 Go). After updating the configuration and restarting the VM i was not able to access the VM via ssh. The VM has an external IP. The troublshoot diagnostic using gcloud does not show any error or issue in the log. Everything is fine regarding the firewall configuration.

I tried to create  ...

Score: 3
OPTIONS request to CloudFront distribution with managed CORS-With-Preflight policy returns 403
co flag

I have a CloudFront distribution with a default behavior that is configured to allow any CORS request including preflight requests. However, the OPTIONS request will fail with an HTTP 403 error (details below) which is not what I expect.

I am using the AWS-managed CORS-With-Preflight policy that should allow all CORS requests, including the preflight (OPTIONS) request:

(I am not sure why the “Origin r ...

Score: 0
Deeepdigger avatar
Sshd root login errors even though root logins are disabled - how to solve?
cn flag

On my Linux server (Ubuntu 18.04.6 LTS) I have set

PermitRootLogin no

in /etc/ssh/sshd_config and reloaded the config with

sudo service sshd reload

But I am still seeing

Mar 14 06:18:02 myhost sshd[30049]: error: maximum authentication attempts exceeded for root from 11.222.111.22 port 16138 ssh2 [preauth]
Mar 14 06:18:02 myhost sshd[30049]: Disconnecting authenticating user root 11.222.111.22  ...
Score: 0
Linsane avatar
Using HAproxy to redirect incoming traffic to docker
es flag

We are currently using HAproxy to redirect incoming traffic to our domain example.domain to our containers, which are only accessible via the local interface (e.g. 127.0.0.1:12000:8080

To achieve this our current config looks something like this:

defaults
    mode http
    timeout connect 5000
    timeout check 5000
    timeout client 20000
    timeout server 20000

frontend domain
    bind *:80
    bind  ...
Score: 0
daylyroppo3 avatar
How to connect EC2 instance from free wifi through putty
id flag

I can connect to AWS EC2 Instance using PuTTY at my home by laptop. But when I bring the laptop to some cafe that provides free Wifi, it ends up with timeout error.

In order to solve this problem, I need to fix the security group attached to the EC2 instance to allow the connection from the cafe’s public IP.

Here is what I've done.

1.Log into AWS ec2

2.Search for "VPC" in the search bar at the top

Score: 1
Iluvatar avatar
How to allow user to run only specific binaries
cn flag

I'm adding user logviewer with /sbin/nologin/ and to my system.
My custom service is running eg. sudo -u logviewer less --follow-name /var/log/messages.

But still there are ways to run other command as that user. I would like to only allow user logviewer to run specific binaries, like less tail cat.

Is it possible? I'm not too familiar with selinux to use it in that case.
Is there a guide to restric all

Score: 1
nginx: [emerg] "include" directive is not allowed here
cn flag

My page has a lot a redirects. I placed them all in a file redirects.conf and included it:

server {
   ...
   include redirects.conf;
}

The redirects.conf file looks like this:

rewrite  ^/[Gg]ewinnspiel/?$  https://www.facebook.com/Somepage.de?ref=ts permanent;
rewrite  ^/[Gg]ewinnspiel-[Oo]stern$  https://www.Somepage.de/ewinnspiele/Ostern permanent;
rewrite  ^/[Ff]euerwehr$  https://www.Somepage.de ...
Score: 0
Awais fiaz avatar
Apache2 too many requests "waiting for connection"
cn flag

I've got Apache 2.4 installed with the event mpm module which seems to have too many idle processes Most of them are waiting for connection and a fraction of those requests are being processed at a time here is what server status reports this seems like a bottle neck and possible reason for increased TTFB. I am not a server guy trying to understand what could be the possible cause for this.

Server l ...
Score: 1
Daniele C avatar
Apache doesn't respond
us flag

I have a AWS Lightsail Bitnami LAMP 7.4.27-16 machine that every night stops responding at random time. I installed LetsEncrypt certificate and vsftpd for a new specific ftp user.

On the machine all seems working properly. The server is listening, cpu is ok, ram is ok, I can connect to it by SSH. Apache and MariaDb services are running. Only the website load infinitely (http or https).

These are the ...

Score: 0
Erich avatar
Proxy authentication in cyrus with SASL and kerberos
mx flag

I am trying to enable proxy authentication in cyrus + SASL, i.e authenticating as the admin user cyrus but with the access rights of any other user, e.g. peter (as described here). I am trying with

imtest -a cyrus -u peter -m plain -t "" localhost

but it fails with S: A01 NO no mechanism available. In the cyrus service log I see this entry:

badlogin: localhost [::1] PLAIN (peter) [SASL(-4): no mechani ...
Score: 0
Distribution group external sender and contacts
ma flag

we have a distribution group on our exchange server 2019 with some external contacts in it. Receiving of external mails is activated for this group. Now if an external sender sens a mail to this distribution group he gets a "unable to relay" message from our exchange for the mails that should be forwarded to the external contacts. Of course this is coming up because our exchange server does not allow th ...

Score: 0
ratna avatar
How to give permission to open a log file in RHEL 8
tn flag

I am getting this error like

 SELinux is preventing /usr/sbin/httpd from open access on the file /var/log/error.log

what to do here? How can I allow access to this file? Any clue?

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.