Latest Server related questions

Score: 0
Marcelo Barros avatar
Using quotes in variables of a crontab job
us flag

I'm trying to get a past date inside a cron job using something like this. But the DATE variable is always empty.

DATE=date -d "$date -1 days -1 months" +%Y-%m
* * * * * /bin/echo "Date: $($DATE) Test" >> /tmp/crontab.log 2>&1

I know how tricky crontab is thanks to this question with good answers, but the problem here doesn't seem to be the % sign, because the code above works fine:

Score: 0
Notifications of PowerDNS authoritative server behind dnsdist not working
cn flag

I have three DNS servers: x.y.z.10 which is configured as supermaster, x.y.z.11 and x.y.z.12 which both are configured as superslaves. On all three machines:

  • dnsdist is running on port 53 for (yet to be done) high availability
  • pdns is running on port 1054 as authoritative server
  • pdns-recursor is running on port 1055 as recursing resolver

Despite following the advice of dnsdist (https://dnsdist.org ...

Score: 0
guettli avatar
How to exec into a **node** (not container) via kubectl
cn flag

How to exec into a K8s node?

Up to now I only found ways to exec into containers running on a node.

I would like to avoid ssh.

Score: 0
Ahmad Ismail avatar
Why do we need Apache Access Control when we have ownership, permission and firewall
in flag

Why do we need Apache Access Control like

Require user <name or UID>
Not require user <name or UID>
Require group <name or GID>
Not require group <name or GID>
Require ip <network IP>
Not require ip <network IP>
Require host <hostname>
Not require host <hostname>
Require all granted
Require all denied
Require local

when we have ownership, permission and  ...

Score: 0
GCP: How to delete project that is assigned to "No Organisation"
pe flag

I have been using Google cloud services for a few simple things over the years. Recently I've started to explore using GCP for learning about AI and I'm trying to get my projects in order.

For some historical reasons I appear to have a couple of projects that are assigned to "No Organization" and even though I have full admin rights on the G-Suite I don't seem to be able to get the permissions re ...

Score: 0
Patrick avatar
Openstack, Is there any characters that should be concern when creating cloud-init config
hk flag

So I got a task where I have to create instance of server for the user with their own password. So I did a simple by creating a config template and replace the password field with their request password from API. My concern is if there're some genius guy try to add an escape character like \n and it add new line and inject another value which I didn't allow for them. So for now, I did filter all the esc ...

Score: 0
user8328091 avatar
How can I change/truncate/delete structured-data properties?
jp flag

I have an rsyslog stream that accepts RFC-5424 messages from a wide range of applications and forwards them to a storage backend in RFC-5424 format. Since they originate from so many sources, I have limited control over what is sent. I need to limit the overall length of the log message to 64MB. Messages that exceed the 64MB limit mostly contain an "exception" property in the structured data that typica ...

Score: 0
friendly joe avatar
NGINX: redirect root / -> /new/path wihtout breaking the page
in flag

when I use this in my server-block:

    if ($http_host = "portaldemo.mydomian.tld/") {
       return 301 https://portaldemo.mydomian.tld/new/path/;
    }

I get redirected from my root-domain to the subpage I want. But my app doesn't work correctly anymore. How can I redirect without breaking the page?

Score: 0
emClient: error "The specific object was not found in store"
au flag

I'll post here a solution for an error I had been struggling for a while.

In emClient, every time I had to create an online meeting (using Teams), I couldn't create it and software raised a generic error "The specific object was not found in store".

My emClient is configured to use several email accounts, all from MS Exchange / Office 365 account.

This error prevents any online meeting, recurring or no ...

Score: 0
Charles works as proxy but doesn't record http requests
cn flag

I have installed latest version of Charles Web Proxy and use default proxy settings (port 8888) I have configured Mozilla Firefox to use this port locally for proxy My browser works through proxy as expected (when I shutdown Charles - Mozilla becomes blind and doesn't open any site). But for some reason - Charles doesn't record a single HTTP request, though Record was started.

What should I check ...

Score: 0
Jason Ross avatar
How do I license remote desktop servers without Active Directory?
in flag

My company provides some of our clients with remote desktop servers with which to run our physical software. Each server is its own virtual machine hosted on AWS, and each user on the machine is a local user, not an active directory unit. None of our servers are on Active Directory.

This is creating a problem when attempting to provide licensing for each of these users to connect through RDP. His ...

Score: 0
Ephemeral Kubernetes nodes
cn flag

I'm running Kubernetes on a bunch of bare metal machines, with a NetApp FAS for NFS storage. The nodes are all Ubuntu 20.04 LTS, provisioned with Ansible.

Ideally, I'd like to have a disaster-tolerant environment, meaning that as long as the NetApp-to-tape backup works I can completely recover from any kind of machine or infrastructure loss (been burned once by a datacenter fire, you remember the ...

Score: 0
Jacek avatar
Terraform: How to dynamically generate a block of a JSON policy?
cn flag

I have the following resource:

resource "aws_iam_user_policy" "ses_send_policy" {
  count       = var.enabled ? 1 : 0
  name_prefix = var.user_policy_name_prefix
  user        = aws_iam_user.ses_smtp_user[0].name

  policy = <<EOF
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ses:SendEmail",
                 ...
Score: 1
Vanillaice avatar
Is it possible to open a file within a batch file as another user?
us flag

im trying to run psql.exe (postgreSQL) with an active code page set to 1252. I want to have a batch file that opens up a command prompt with that code page, then navigates to the psql directory to run it as "postgres" user. What I have is below:

start "test" cmd /k "chcp 1252 & cd c:\program files\postgresql\14\bin\psql.exe -U postgres"

how would I go about this? thanks!

Score: 0
france1 avatar
only flush the write cache if there's no read activity
in flag

Normally the Linux Kernel flushes the write cache if a specified time limit is exeeded or the cache is full. This leads to stalling with HDDs since the writing process makes reading processes much slower.

That's why I want to avoid a flush of the write cache if there's only a bit read activity. Since I have 40 GB of RAM this should not be a problem. My thoughts on that would be to set the time li ...

Score: 0
user3779539 avatar
Mailcow SSL not working
cn flag

Using Apache/mailcow I’m setting up a home email server. I followed the mailcow dockerized tutorial. And was able to connect to my mailcow site at:

http://mail.example.com:8080

I had to use 8080, because I have my website also setup on this server.

I ran into a problem trying to connect my nextcloud client up to my mail server, thought it was an issue with SSL. So I finally installed ssl using c ...

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.