Latest Server related questions

Score: 0
rimalroshan avatar
Pipe into command stored in bash variable
in flag

I enter two command in bash:

  1. $export g='grep "something"'
  2. $echo "something and another thing" | $g

But it doesn't work.

I want the second command to be evaluated by bash as : echo "something and another thing" | grep "something"

What should I do for that?

Score: 0
X11 forwarding on docker container
cn flag

I'm trying to run GUI apps inside of my docker container and resolve them on the host. I have tried several variations of this command but it always comes back to the same response:

Unable to find image 'kali:latest' locally
docker: Error response from daemon: pull access denied for kali, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
Se ...
Score: 1
rpm: how to disable debuginfo
ro flag

OS RedHat 8.4

I know that having %debug_package macro in a spec file will generate debuginfo for a package, and will produce mypackage-debuginfo-<VERSION>.<ARCH> rpm. However the funny thing is that spec file I have does not have this macro and yet the debuginfo is built.

However, at the top of the spec file there is a few global variables:

%global _hardened_build 1
%global sysrepo 0
%undef ...
Score: 1
How to log in to a postfix+dovecot mail account
jp flag

After roughly 6 hours of searching i decided to ask help here

I've tryied setting up postfix, everything worked great

Then I've decided to use my emails on thunderbolt, which didn't work

So i figured out that i had to setup a SASL auth, so I did (Or at least, i think I've set it up as telnet replies with "AUTH PLAIN")

Okay, now that you have a general idea, there are my configs:

/etc/postfix/main.c ...

Score: 0
Why does my 389-ds configuration work over LDAP but not LDAPS?
kr flag

Sorry if this has been asked before, but when I searched for similar issues, I got results like these (that make no sense to me).

I've been trying to set up 389-ds using Red Hat's Directory Server 11 documentation on two fully-updated Rocky Linux 8.6 servers. My servers are supplier1.example.com and supplier2.example.com and are on the same subnet. I've set up each server's /etc/hosts file using their pri ...

Score: 0
AhmFM avatar
Load vars based on env in ansible
gr flag

Team, I have two vars that map to two environments. I want to use them in playbook but only one value should be applied based on env playbook runs on.

ex:

var = test1 > should be loaded when env1
var = test2 > should be loaded when env2

any hint how can i achieve this in ansible?

I want to write my task in such a way that this variables var carries test1 value when it is run on env1 and vice ...

Score: 0
Michael Whobrey avatar
Nginx try_files fails on first parameter and returns 404
jp flag

Bear with me, this is a long one.

In the beginning I created a Nginx server to server static files for my company, and it worked great with the following config snippet for serving the files:

server {
  # bunch of ssl stuff
  root /path/to/files;

  location / {
    include cors_support;
    sendfile on;
    sendfile_max_chunk 1m;

    try_files $uri =404;
  }

Simple, clean and functional. Until I though ...

Score: 0
Rsyslog - "Warning: CA certificate is not set" but TLS forwarding still works
ma flag

I am configuring rsyslog to forward over TCP/TLS. I was curious why, unlike HTTPS, I had to add the certificate to my client, so I went against the README and commented out the cert config, leaving me with this:

# global(DefaultNetstreamDriverCAFile="/etc/ssl/cert.pem")

ruleset(name="fluentd") {
        action(
                type="omfwd"
                target="<my domain>"
                ...
Score: 0
John Smith avatar
Is ingress filtering described in RFC2827 implemented in most routers? How does such implementation look like?
us flag

RFC 2827 describes the idea of ingress filtering that is meant to deal with DOS attacks that utilize IP spoofing:

An input traffic filter on the ingress (input) link of "router 2", which provides connectivity to the attacker's network, restricts traffic to allow only traffic originating from source addresses within the 204.69.207.0/24 prefix, and prohibits an attacker from using "invalid" source a ...

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.