Latest Server related questions

Score: 0
Artrelay avatar
Copy files from the same subdirectory to the same Directory in Windows
fr flag

I am having a hard time describing the problem and I can't find the solution anywhere so here is an example

SourceFolder\ProjectA\Legal\ContractA.txt
SourceFolder\ProjectB\Legal\ContractB.txt
SourceFolder\ProjectC\Legal\ContractC.txt
SourceFolder\ProjectD\Legal\ContractD.txt
etc..

I need to copy the contractletter.txt file from hundreds of these Projectletter folders to a single location such as this: ...

Score: 0
Layer 2 MitM Setup
th flag

Layer 2 MitM setup:

                +------+
                | HOST |
+--------+      |------|      +--------+
| CLIENT | <--> | MITM | <--> | SERVER |
+--------+      +------+      +--------+

TLDR:

A Rasperry Pi's eth0 is connected to the internet and wlan0 acts as an access point using hostapd. Bridging both interfaces works fine. Redirecting the HTTP(S) traffic on the bridge to the Python  ...

Score: 1
Levin avatar
how to disable/remove nfs4 acl, and back to original linux access control?
jp flag

I have add nfs4 acl for a directory in nfs client, but can not use "chown/chgrp" after add nfs4 acl, now I want to give up nfs4 acl, and back to original linux simple access control, how to ???

In standard linux acl, we can use setfacl -bn xxx file to remove all acl, and back to original access control, but I do not know how to do it by nfs4_setfacl...

Score: 1
How do you route to a mix of HTTP and HTTPS backends from an ALB Ingress?
gh flag

I have a Kubernetes cluster running in EKS (on AWS.)

In the cluster I have Elasticsearch, Kibana and various other web services.

I would like to set up a single ALB loadbalancer such that:

  • Requests to /_kibana/* is routed to service: search-kb-http, port: 5601
  • All other traffic /* is routed to service: web-service-locator, port: 5000

So I create this:

#Note: search-kb-http is provided by Kibana o ...
Score: 0
Confused about SPF Records
my flag

I thought that ?all in SPF should not be used.

Then I examinated SPF records of some local email provider companies and I found this:

v=spf1 mx ip4:77.75.78.0/23 ip4:77.75.76.0/23 ip6:2a02:598::/32 ?all`

Isn't this basically saying to mark failed SPF as Neutral, therefore letting basically everyone to send emails on behalf of that domain ?

Their DMARC is set like this:

v=DMARC1; p=none; rua=mailt ...
Score: 0
please make sure you have the correct access rights and the repository exists
gg flag

I'm having trouble connecting to bitbucket via command prompt I'm getting error

please make sure you have the correct access rights and the repository exists

But I'm using pagent and I'm using bitbucket for server side?

But before my pagent hat was lit yellow now it's lit grey, how can I get pagent to relight yellow again and how can I sort that error out

But funny thing is I do a git pull and git status  ...

Score: 0
Trying to partition aws linux server using shell script
cn flag

When I created Amazon linux server(similar to Centos 7). I had these partitions I am trying to create partitions using shell script lsblk gives me following information

NAME          MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1       259:0    0  80G  0 disk
├─nvme0n1p1   259:1    0  80G  0 part /

I have tried directly modifying fstab file and rebooting, that didnt help. Maybe I was doing something w ...

Score: 0
a.smith avatar
openldap index existing values
ae flag

I have a ldap database that has been used for some time. naturally it is full on entries.

I recently tried to set up an index for uid to help searching, i added the following to my slapd.conf file

include         /etc/openldap/schema/core.schema
database bdb
suffix "dc=domain,dc=net"
directory /var/lib/ldap
index uid eq,pres


I then ran slapindex

slapindex -f /etc/openldap/slapd.conf -b "dc=jhc,dc= ...
Score: 4
max iSCSI initiator session
au flag

what is iSCSI initiator session limit ? and is there anyway to exceed this limit ? i'm working on windows server
also in this documentation https://docs.microsoft.com/en-us/windows-server/storage/iscsi/iscsi-target-server-limits ..... what's meant by "Sessions that can simultaneously connect to an iSCSI target instance" .... is that the session that the target can host " or the initiator can start " ...

Score: 0
Force Apache to return Content-Length on Windows
us flag

I'm running Apache on both Ubuntu and Windows. Why do I get content-length: 302 on Ubuntu but Connection: Keep-Alive and Transfer-Encoding: chunked on Windows for the same request? The only information I've found so far says to downgrade the request to HTTP/1.0, but Ubuntu is already returning HTTP/1.1 and Content-Length at the same time.

I've tried looking in the Ubuntu conf files, but I didn't se ...

Score: 0
Wipe all stored prometheus metrics?
bg flag

I have install prometheus (v2.1.0 from Ubuntu 18.04's apt repository), and I have played around with adding hosts & metrics and all that for about a week. I want to “start fresh” and delete all existing stored data & metrics. How can I do this?

Score: 0
Ashark avatar
How to edit the middle of host name (%h) in ssh config?
br flag

In ssh config you can easily edit a hostname by appending or prepending it with something. For example, when you want to connect to server with ssh test5, but actually the server name is test5.mail, you can specify the server as like this:

Match exec "echo %h | grep -q '^test[0-9]$'"
    HostName %h.mail

The same approach could be applied if you need to prepend hostname.

But what if I want to edit the ...

Score: 0
user3525290 avatar
Removing a node from Galera Cluster
cn flag

I have to update the os on a few servers and I need to remove a db from the cluster.

wsrep_cluster_address='gcomm://192.168.2.59,192.168.2.60,192.168.2.61,192.168.2.62,192.168.2.63' 

Do I remove the ip adress from the cluster line then restart each node? Or do I stop the service on the server I want to remove from the cluster then remove the ip address on the other nodes then restart the mysql service ...

Score: 1
King David avatar
what are the kernel messages about "Disabling DIF Type 2 protection" means
gb flag

On our RHEL 7.2 server we saw a strange kernel messages with lines as:

Disabling DIF Type 2 protection
***10DIGITS*** 512-byte logical blocks: (2.00 TB/1.81 TiB)

Above messages are relevant for all disks in the server ( DELL HW MACHINE )

Example of dmesg

[    4.637635] sd 0:2:0:0: [sdm] ***10DIGITS*** 512-byte logical blocks: (599 GB/558 GiB)
[    4.637668] sd 0:2:0:0: [sdm] Write Protect is off
[   ...
Score: 0
Anis Heni avatar
Forward DNS local to Jira URL
in flag

I want to redirect my old helpdesk domain Help.company.com to Jira URL ( Company.atlassian.net/Jira/Helpdesk), it's a simple forwarding and don't want to keep the old URL .

I tried to do a CNAME but it didn't work . I have an AD DNS and external DNS provider Dyn. your help is really appreciated

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.