Latest Server related questions

Score: 0
SparkC avatar
Admin user not show under base dc after setup openldap on debian
ar flag

After install the openldap (slapd) from Debian package repository (using the version 2.4.57+dfsg-3~bpo10+1), I could not found the admin user (cn=admin,dc=company,dc=com) in the phpldapadmin dashboard. I also tried using Apache Directory Studio to access the LDAP directory, still couldn't find the admin user.

screenshot of empty entry under my dc

However, using ldapwhoami (ldapwhoami -vvv -h ldap.comp ...

Score: 1
What are the "alternatives" to Heketi for Kubernetes?
cn flag

I have built a working GlusterFS cluster, and now I want to make a Kubernetes StorageClass that uses it. I see a number of tutorials and documentation pointing to Heketi as the provisioner engine.

Looking at that page, however, it has the following admonition:

It has been well over a year since we first entered maintenance mode. To anyone looking at creating a new install using Heketi: we highly  ...

Score: 2
Dovecot claims ports are in use, netstat disagrees
cn flag

Attempting to start dovecot gives me this:

Apr 28 13:37:00 master: Error: service(pop3-login): listen(*, 110) failed: Address already in use
Apr 28 13:37:00 master: Error: service(pop3-login): listen(*, 995) failed: Address already in use
Apr 28 13:37:00 master: Error: service(imap-login): listen(*, 143) failed: Address already in use
Apr 28 13:37:00 master: Error: service(imap-login): listen(*, 99 ...
Score: 0
MTC11 avatar
Restart rspamd.service as non-root user
ng flag

I have webpage with button, when user clicks on button, script restart.sh on server is executed. This script contains:

#!/bin/bash
systemctl restart rspamd.service

After clicking on the button, restart.sh is executed, but rspamd.service is not restarted: "Failed to restart rspamd.service: Access denied" Because the script is executed by click on button on webpage, the real user who runs it on ser ...

Score: 0
soupmagnet avatar
What is wrong with this NGINX config that rewrites URLs is the user is not logged into WordPress?
eg flag

I have an NGINX config which is supposed to redirect a user to the WordPress login page if that user is not logged into WordPress, but it is not quite working correctly. Instead, it redirects all users to the login page, regardless of their logged in status...

set $bad_uri 0;
if ($request_uri ~* ((^/private-page-1/)|(^/private-page-2/)|(^/private-page-3/)|(^/private-page-4/))){
    set $bad_uri 1;
}
s ...
Score: 0
PV still has "Available" status despite of PVC was created
jp flag

I try to understand how Persistent volume works in Kubernetes and faced with some trouble. I use minikube and start it on Windows 10 Pro. My goal is to add volume c:\manifests\data to my test pod. This is my PV manifest:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: my-test-pv
spec:
  accessModes:
    - ReadWriteOnce
  local:
    path: 'c:\manifests\data\'
  capacity:
    storage: 2Gi
  n ...
Score: 0
Santosh Baruah avatar
Group Creation Function
co flag

I have Created a Linux function that will create developers, my requirement is to take the developer's first name and create a linux user and development environment. It should run something like the below commands:

adduser $1
usermod -a -G devs $1
mkdir /home/$1/.ssh
chmod 700 /home/$1/.ssh
touch /home/$1/.ssh/authorized_keys
chmod 600 /home/$1/.ssh/authorized_keys
mkdir /var/www/html/$1-dev.mysi ...
Score: 0
Copying CUPS Configuration Between Hosts
in flag

I have a printer installed on an arch linux machine at my house and would like to install it on another computer also at my house. The printer is attached via USB to "reformed". "ryle" has the remote printer installed so that he can send jobs successfully to the printer. I would like to configure "calvin" like "ryle". Looking at "ryle", https://i.imgur.com/IHUcIlq.png the configuration says "Remote Printe ...

Score: 0
JasonGenX avatar
Temporarily take kubernetes cluster offline
ke flag

I have a kuberbetes cluster running in EKS. We use it for testing periodically but mainly it just sits there with all its nodes and costing us.

I am looking for the most elegant way to turn it off so it does not incur costs and turn it back on when needed.

My thought; use eksctl to scale the node group to 0 instances and change it back up when needed.

Is there a more “elegant” way to do this?

 ...
Score: 0
sak avatar
docker run script at start, commit changes and remove script mounted
ve flag
sak

I have a script that I want to run on existing images. For this I mount the script while running the container, commit changes and replace the image. The problem with binding the script at start is that the volume stays in new image too.In running an inspect on the image I can see it becomes a permannet argument and the run fails as the host system does not have the one time script.

Is there any  ...

Score: 0
Jon avatar
How to setup pubsub with secure IAM policy?
in flag
Jon

I'm trying to setup a bunch of service accounts for another bunch of pubsub topics and subscriptions. What I'm trying to achieve is that each micro service should only be allowed to write to a specific subject, and/or subscribe to a specific subscription. I've currently got:

resource "google_service_account" "my_sa" {
  account_id   = "my-service-account"
  display_name = "A service account for ... ...

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.