Latest Server related questions

Score: 3
Santhosh Nayak D. avatar
In TCL SCRIPT, how to add dict or array
lr flag

I am trying to create an output format like keyword start_number last_number on a dictionary or array format. In my code, I used a dictionary, and the code is:

set keyword_numbers {}
set previous_keyword ""
set last_no 0
foreach item $data {

    regexp {(\w+)\[(\d+)\]} $item -> keyword number
    set new_keyword "$keyword $number"
    puts $keyword
    set key_start_end_data [dict create ]
    if  ...
Score: 0
Patel Punit avatar
Gsuit user to auto sync with adazure so we can adazuredevops can do SSO
ps flag

Current Scenario 1 - Gsuit basic users 2 - ADAzure free account(Not have any P1 or P2 license) 3 - Azuredevops on cloud

We need to do SSO for Azuredevops on cloud from gsuit all user or selected groups, so once admin disable it should be not accessible for azuredevops on clolud,

What steps need to do here please help us.

Score: 0
Brian avatar
How to confirm openssl is reading its config file
cg flag

Is there a simple way of changing the openssl config file and confirming with openssl command line parameters to confirm that it is reading the configuration file? (I'm trying to confirm that the openssl command is reading the file from the specified location and also programmatic access to openssl is also reading the config file.) For example can I change a setting in the config file and view it throug ...

Score: 0
cocomac avatar
How to have one tls directive apply to all domains in my Caddyfile?
br flag

I'm running Caddy on Debian 11.

Here's what my Caddyfile looks like. I've removed my domain name

[subdomain name removed].example.org {
        tls /certs/_.example.org.crt /certs/_.example.org.key
        reverse_proxy :8002
}
[subdomain name removed].example.org {
        tls /certs/_.example.org.crt /certs/_.example.org.key
        reverse_proxy :8001
}

[subdomain name removed].example.org {
      ...
Score: 1
joshudson avatar
How to disable Program Files redirection for 32 bit Programs (for testing purposes)?
cn flag

Customer somehow managed to set up their Windows servers so Program Files -> Program Files (x86) doesn't happen for 32 bit applications. The other redirections of Windows\System32 -> Windows\Syswow64 and HKLM\SOFTWARE -> HKLM\SOFTWARE\Wow6432Node are still in effect.

I'm pretty confident they did not inject a DLL everywhere that does Wow64DisableWow64FsRedirection but some other magic is in effec ...

Score: 2
MikeKulls avatar
Redhat phantom out of memory issues
bl flag

We have a server that runs various headless applications, such as Java. It processes to stream data, daily python scripts, etc. From time to time some of our applications get out of memory errors.

The problem we have is the monitoring shows there is plenty of ram. We upped it from 128GB to 192GB and it hasn't solved the problem. Our monitoring takes a reading every 20 seconds and shows minimum available ...

Score: 1
chris oojer avatar
How to disabled X-Spam header rewrite in WHM?
cn flag

I need some help with the settings on my cpanel WHM. I want to disable the options to stop rewriting the X-Spam in the header. When I send the spam emails for a test, I'm getting this:

X-Spam-Subject:   Hey
X-Spam-Status: Yes, score=904.8
X-Spam-Score: 9048
X-Spam-Bar: +++++++++++++++++++++++++++++++++++++++++++++++++++
X-Spam-Report: Spam detection software, running on the system "server.mydomain. ...
Score: 0
unix_man666 avatar
Strongswan, Ubuntu 22.04: Can't start connection after reboot, although configuration is loaded
ga flag

I am using two LXD-Containers (on both servers) for connecting between them.

Everything runs fine, using iptables for NATing ports.

But there is one problem: When restarting one of the servers (just a small machine) the connection can't be established automatically sometimes. The configuration is loaded (checked with swanctl -L, yes I am using the swanctl-interface).

But I get received NO_PROPOSA ...

Score: 0
Petr Schönmann avatar
pt-query-digest on large slowlog files runs slow - only singlethread
it flag

I have large slowlogfiles generated by percona 5.7 packed by zstd. Its for test, logging all queries, query time is set to 0s

I need it process quickly than in 12 hrs :) The pt-query-digest is probably only singlethread app in default setting and in man i cant see any parallelization.

The command is

zstdcat *.zst | pt-query-digest [some options] > out_slow.log

Is there any tool that do this tas ...

Score: 1
Jonathan avatar
Apache 2.4 "client denied by server configuration" caused by Require expr - even though the request succeeds
it flag

Our apache error log is littered with messages saying client denied by server configuration, even though the htaccess configuration is working as intended.

Here is the relevant bit of the htaccess:

SetEnvIfExpr "req_novary('User-Agent') =~ /.*WHATEVER.*/" WHATEVER=1

<RequireAll>
    # Only allow access for these hosts
    Require expr "%{HTTP_HOST} =~ /((host1|host2|host3)\.com)/"

    # Den ...
Score: 1
PublicDisplayName avatar
Apache ToLower on all Wordpress pages (not PDF/CSS/JS)
cn flag

I'm having issues performing a 301 redirection of URLs that contain capitals to lowercase, excluding static files (PDF/CSS/JS/JPEG/JPG/PNG/WEBP...etc). For example:

https://www.example.com/Page/ would become
https://www.example.com/page/

but https://www.example.com/Clear_IMAGE.png would not be changed.

In my VirtualHost conf file:

RewriteMap lc int:tolower 

In my .htaccess:

RewriteRule ^/(.*)$ /${lc ...
Score: 0
Mehdi avatar
Prevent vfio from loading for ethernet and wifi devices when using it for GPU
in flag
00:1f.4 SMBus [0c05]: Intel Corporation Comet Lake PCH-V SMBus Host Controller [8086:a3a3]
    DeviceName: Onboard - Other
    Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake PCH-V SMBus Host Controller [1462:7c82]
    Kernel driver in use: i801_smbus
    Kernel modules: i2c_i801
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1080] [10de:1b80] (rev a1)
    S ...
Score: -2
Tom John avatar
How many public useable IPv6 ips in a /64 range?
ci flag

so I know that a /64 IPv6 range has 18,446,744,073,709,551,616 addresses, but I was told a majority of these IPs can only be use for local ips on LAN.

How many useable public ipv6 ip addresses are there in a /64? Thank you.

Score: 0
sam23 avatar
AWS EKS Cluster : InvalidParameterException: Unsupported Kubernetes minor version update ,Terraform Gitlab CI
cn flag

The following errors occur every time I run the pipeline

│ Error: error updating EKS Cluster (business-staging) version: InvalidParameterException: Unsupported Kubernetes minor version update from 1.19 to 1.18
│ {
│   RespMetadata: {
│     StatusCode: 400,
│     RequestID: "d3203e19-5691-48eb-9442-05435331c8a4"
│   },
│   ClusterName: "business-staging",
│   Message_: "Unsupported K ...
Score: 0
best_of_man avatar
Connection error: (Unable to connect to any servers, {127.0.0.1:9042: ConnectionRefusedError(111, Tried connecting to [(127.0.0.1, 9042)]
pl flag

Sometimes when I try cqlsh command on my Ubuntu 22.04 machine I get the following error:

Connection error: (Unable to connect to any servers, {127.0.0.1:9042: ConnectionRefusedError(111, Tried connecting to [(127.0.0.1, 9042)]. Last error: Connection refused)})

And stopping or restarting Cassandra service won't help at all. This happens with no obvious reason, I mean I may exit the cqlsh and put  ...

Score: 1
Jamie Forrest avatar
AWS IAM: deny users from creating policies on specific resources
cn flag

I want to be able to give my admin users the permission to create policies in IAM, but I want to make sure that they aren't able to create a policy that affects a specific resource.

To be more specific, these admin users are currently in a user group with a policy that gives them full S3 access except for a specific S3 bucket (in this case, it's a bucket that contains CloudTrail logs). They are al ...

Score: -1
imaxt avatar
AD lockout email alert script working intermittently
qa flag

So we've been using this PS script for a while and was working fine until we migrated the domain controllers. The new domain controllers are running core Microsoft Windows Server 2019 Datacenter. We have 2 domain controllers and both are enabled in Task Scheduler. But for some reason the script is working intermittently. Sometimes it sends out the alerts other times it doesn't. And I can't figure out wh ...

Score: 0
dm12 avatar
glusterfs choosing right layout of bricks/replicas for HA - able to sustain two node failure
et flag

So I already have glusterfs volume and it is working fine (I guess).

Now I am creating a new high-value prod setup and was starting to wonder - what is the "right" layout of nodes and bricks and/or replica count? I have about 9 nodes to spare. I was wondering how to use them to create a layout, that can sustain the fallout of two nodes/bricks. Namely, two of the nodes are actually VMs that are on ...

Score: 0
Emil Avramov avatar
Samba: shared directory is accessible, but shared NTFS drive - not
ar flag

I have Samba server installed on a CentOS 9 Stream machine and I am trying to share an external USB HDD, formatted in NTFS. This is my /etc/fstab record for mounting it:

UUID=880AFE920AAB7B8E /home/smbusr/archive-hdd ntfs-3g defaults,user,uid=1001,gid=1001,umask=022 0 0

The user smbusr have a directory in /home and there is also a samba user existing with the same name, created with smbpasswd -a  ...

Score: 0
user3055699 avatar
When setting up IIS passthrough authentication, is there anything I need my network or server people to do?
lb flag

I moved our website to an updates IIS on a new server. Is there anything I need ask our network people or server people to do?

I am have two issue that may be related. When disabling Anonymous Authentication, all user get asked to log in. When enabling it SOME users get asked to log in. In both case windows authentication is enabled.

The other issue is when clicking a link to a file on a file server ...

Score: 0
Craft Alma avatar
Ubuntu PostFix smtp.gmail.com Connection timed out / Network is unreachable
gm flag

So, i have a postfix mail server set up, and when i run the following command:

telnet smtp.gmail.com 25
------------------------------------
Trying 142.250.147.108...
Trying 2a00:1450:4025:c01::6d...
telnet: Unable to connect to remote host: Network is unreachable

But when i try to send an email:

root@vps:~# mail -a FROM:[email protected] *my address*@gmail.com
Cc: mail
Subject: test
test

Then the l ...

Score: 0
selbie avatar
Does Route 53 have a way to track or audit configuration changes to my domain
eg flag

I modified some geolocation DNS records a while back (December) on AWS Route 53. But I'm now seeing some unexpected traffic changes on the service.

The service traffic can be tracked easily with regular EC2 monitoring.

But I can't recall exactly "what day" I made the DNS changes. I'd want to see if the spike in traffic is correlated to the time I made the DNS change.

Is there an audit log of my own hos ...

Score: 0
archygriswald avatar
grub error after kernel update with active root LVM snapshot
cn flag

The situation:

  • debian 11 with LVM and / is a logical volume: /dev/mainvg/lv-root
  • created a snapshot of the root partition by doing lvcreate -L5G -n bkp_lvroot -s /dev/mainvg/lvroot

Now I updated the system with apt, a new kernel was installed, but grub-probe failed. Output:

[...]
Setting up linux-image-5.10.0-21-amd64 (5.10.162-1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.10.0-20-amd64
 ...
Score: 0
jwsl224 avatar
Do i need vCenter Server for vGPU?
pl flag

i have been digging around every corner of the internet and spoken to both vmware (who only spoke enough to tell me they can't talk to me) and dell, but i can't find the answer to a simple question: do i need a vCenter Server License to use Nvidia GRID vGPU?

vSphere Enterprise Plus is required to run Nvidia GRID. that's fine. i have created a setup with an evaluation license and everything is run ...

Score: 0
Victus avatar
Iptables drop UDP packet
cu flag

How can I block a packet on specific IP:port on UDP that is containing for instance 'ff ff ff ff'?

I have ddos attacks that contain those packets, it's a source-query but we are not using source query for it.

Score: 1
Sandeep avatar
permission denied when writing to mounted directory exported by NFS server running on OpenBSD OS
id flag

I have a default installation of openbsd, with portmap, mountd, nfsd services started by via rcctl. I have following entry in /etc/exports

/nfs/testdir -alldirs  -maproot=root -network=192.168.0 -mask=255.255.255.0

I am able to mount the exported share on client as follows:

sudo mount -t nfs -o rw,noauto -v 192.168.0.122:/nfs/testdir mntpt3

From the client, I can read the contents.But writing inside ...

Score: 0
Victus avatar
iptables ping before accept
cu flag

is there anyway that I can block all UDP connections on specific host:port and allow whitelisting based on ping? Ex. I'm trying to connect first time to UDP socket, and it will first ping the IP and than add my IP to whitelist. If no response, DROP it. Is that even possible?

Score: 0
rach avatar
i am root but ufw status says 'command not found'
ug flag

as simple user, first I pass root with command :

su

I am now root on Debian 10 buster.

When I hit ufw status, I have 'command not found'. But it works with sudo ufw status

When I use su -, the command is ok.

Can someone explain me this problem / this difference between su and su - and why the command is not found even if I am root in the first case ?

Score: 1
Apparent DMARC External Validation query failure
in flag

I've got multiple domains hosted on a single Linode instance. As a result of some routine anti-spam checking the wonderful mxtoolbox (no affiliation) reports this:

DMARC External Validation   External Domains in your DMARC are not giving permission for your reports to be sent to them.

The domain in question publishes this TXT record:

_dmarc  "v=DMARC1; p=reject; rua=mailto:[email protected] ...
Score: 0
David Herselman avatar
Any idea why a domain hosted in Azure would result in Windows DNS (caching resolver) failing all look ups?
ar flag

We suddenly, as of last week, are experiencing problems resolving a FQDN (syrex.quosalsell.com) in our corporate network. The Windows servers last had updates installed on them after patch Tuesday in January so no changes there.

Looks to me that Azure is doing something wrong, as another near identical domain hosted elsewhere works perfectly. I however can't figure out what they are doing wrong.

We  ...

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.