Latest Server related questions

Score: 0
ZDV avatar
Errors mounting Windows share (cifs) with pam_mount
cn flag
ZDV

I have an Ubuntu 21.10 pc joined to a Samba AD domain controller. Everything is working absolutely fine - Kerberos is working (can get tickets with kinit), winbind is working (can get info abount users and groups), I am able to log in to the system with domain credentials.

And mounting shares manually also works, both with Kerberos and ntlmssp authorization:

sudo mount -t cifs //server/path /mount/poi ...
Score: 1
Reduce ansible task boilerplate with some kind of template?
ma flag

I'm looking for ways to reduce the amount of boiler plate config I have to put into some of my ansible tasks.

For instance I have many tasks using the docker_container module, and each one has the same ~10 identical options set. I'd like to have these standard options defined somewhere centrally, and each task simply defines only the unique options it needs.

(The problem researching this is that  ...

Score: 0
Docker isn't fowarding port to redis
ru flag

I'm trying to run redis in a docker container on AmazonLinux, and I can't for the life of me get it to forward the port. It starts as it should and appears to be working, but there is no process listening on 6379 on the host box, as one would expect. What should I do?

Here is uname -a:

Linux <host name omitted>.internal 5.4.176-91.338.amzn2.x86_64 #1 SMP <start time omitted> x86_64 x86_ ...
Score: 0
As a manager of a Google Shared Drive why can't I add folders?
za flag

I have the "manager" role on a google shared drive, yet I am unable to add files or folders to it.

All options are greyed out on the (right click) context menu. If I try to drag and drop - it gives the message, "you need to be a manager on {shared drive} to move to this folder".

I already have the manager role, and can confirm this by checking "manage members".

What could it be?

Score: 1
On Apache how to switch off DirectorySlash only for requests to a specific subdomain?
cn flag

Served by Apache I'd like on one subdomain site of mine (say sub.mydomain.com) that URLs without trailing slashes point directly (without external redirect) to the index file in the underlying folder. The subdomain requests are internally redirected to a sub-folder. All other URLS should work in the normal Apache way with external redirect to the slashed version.

All the directives have to go in my .htacc ...

Score: 1
Trimming the path and redirect in Nginx
cn flag

I have a Wordpress server at www.mydomain.com/A/B The Nginx config is as:

server {
    listen 80 default;

    root /var/www/html;

  location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }


    location /A/B {
        try_files $uri $uri/ /A/B/index.php?$args;
    }
...
}

This is working fine.

What I want to do now is to redirect a legacy path to the new path.

Basically I want ww ...

Score: 0
Smokefox avatar
Testing Regular Expressions
eg flag

I am trying to learn regular expressions, and came across some examples online. Trying to put things together, I inputted this into bash

^(([a-j][a-j]?)|(3[a-j][a-j])$

It returns the following error

bash: !!: event not found.

Why do you believe I am getting that? Should I create a to j files? or should I create 1 file with a-j in it? Why is it returning that? Thank you for your help.

Score: 1
Ed Sabol avatar
Conditional directives based on User-Agent with Apache 2.2.x?
in flag

I want to implement something like the following in our Apache httpd configuration:

    <If "%{HTTP_USER_AGENT} !~ /something/">
        RemoveEncoding .gz .tgz
        AddType application/x-gzip .gz
    </If>

but my understanding is that this conditional <If> syntax only works with Apache 2.4.x. Unfortunately, I'm stuck with Apache 2.2.x for the time being. Is there a way to do t ...

Score: 0
richv avatar
Using environment file in haproxy container
in flag

Im trying, unsuccessfully, to run the official haproxy container (https://hub.docker.com/_/haproxy) with an environment file per (something like this https://www.loadbalancer.org/blog/how-to-install-haproxy-rhel/) to allow me to substitute vars in my haproxy.cfg, example:

## env.txt
node1=www1.domain.com
node2=www2.domain.com
node_port=80
## haproxy.cfg
global
...

defaults
...

frontend somefro ...
Score: 0
Sriram avatar
ldapsearch Or other means to verify users
cn flag

I tried a few answers on ldapsearch usage and yet couldn't authenticate with the ldap service from a linux server. I am not sure what parameters to use? I am trying this command

ldp=ldap://ldap.xyz.com
user=joe.john 
ldapsearch -x -D "uid=$user,dc=xyz,dc=com" \
           -W -H $ldp -b "dc=xyz,dc=com" \
           -s sub 'uid=$user'

Error :
Enter LDAP Password: 
ldap_bind: Invalid credentials (49) ...
Score: 0
apk command to find which package installs a program? [Alpine Linux]
ph flag

I want to install program /usr/bin/time using Alpine Linux package manager apk (time is a program runtime measurement tool). But I don't know which package to install. apk search time reports 147 matches.
How do I narrow down apk search to a particular program path?


I would like to apk search --command=/usr/bin/time. But apk search does not provide this option.

Is there some Linux command-line magic th ...

Score: 0
Using network share to host .net app with on-prem IIS servers
kz flag

We have 2 on-prem windows server 2019 IIS servers we're setting up for high-availability/load balancing, and right now they both have their own individual copy of the site/.net app in their own respective C:\foo directories. And on each box, the IIS site node points to it's own local instance of C:\foo

But for the sake of streamlining code pushes in the future, is it possible to create a network shar ...

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.