Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

Migrate from /etc/network/interfaces to netplan

I am trying to migrate from /etc/network/interfaces to netplan and network-manager setup. I am "almost" there. My current setup with /etc/network/interfaces is as follows: auto lo iface lo ...
-1 votes
0 answers
26 views

How to identify possible impacts on Amazon Linux system after a package update without updating package [closed]

I need to update some packages to their latest version as they are vulnerable. Before I do, I need to know the impact (System crash, inconsistencies etc.) on the system without updating those packages....
109 votes
8 answers
156k views

Can I send some text to the STDIN of an active process running in a screen session?

I have a long-running server process inside a screen session on my Linux server. It's a bit unstable (and sadly not my software so I can't fix that!), so I want to script a nightly restart of the ...
0 votes
0 answers
35 views

md0 mount comes read-only after some writing

So I got a RAID 6 array (monitored) and I mount it to my filesystem (/mnt/mounting_point for this example). After some writing, for example: sudo fio --name=seqwrite --filename=/test/seqwrite.0.0 --rw=...
4 votes
3 answers
26k views

Optimal configuration of "Processor load is too high" trigger in Zabbix

I monitor approx. 10 Linux servers with 4 CPU cores each with Zabbix. I was receiving way to many false alarms from "Processor load is too high" trigger lately. The "Processor load is too high" ...
1 vote
1 answer
32 views

How do I install .NET system-wide on an arm64 Ubuntu server?

I'm trying to install .NET runtime 6.0.16 system-wide. I need multiple users on a server to be able to access this from PATH. Generally, Microsoft recommends to use apt to install .NET packages -- but ...
0 votes
0 answers
9 views

In firewalld , added rule is active but unable to list

Added Rule in a CentOS Linux 7 Machine [root@localhost ~]# sudo firewall-cmd --direct --add-rule ipv4 filter OUTPUT 0 -d 8.8.8.8/32 -j REJECT success Rule is working as expected [root@localhost ~]# ...
3 votes
1 answer
5k views

How to limit outgoing traffic per IP Address using Linux TC

I want to limit outgoing traffic per IP address. For example I have a network interface eth0, having 1Gbps of bandwidth. I want to limit the whole network interface to 1Mbps each destination IP ...
-1 votes
0 answers
13 views

simplest way to run a tool inside a users RDP session from linux using only the commandline

I tried evilwinrm which works well to use a remote shell but smh I cannot directl ylaunch a GUI app inside of a users session. It would also be ok to use ssh serve ron the Wndows RDS server or ...
0 votes
0 answers
5 views

Cannot passwd for root with nslcd and openldap on Debian 12

Fresh Debian 12 for lab (VM). I installed: slapd, phpldapadmin, nslcd, nscd and dependencies. I have two local accounts: root and user1. Also I have only user1 POSIX-account on local LDAP server. I ...
0 votes
0 answers
11 views

How to remotely access Ubuntu Server via RDP through a web browser

While this isn’t required for what I’m doing. It would be pretty cool to achieve. Right now I can access my computer running Ubuntu Server remotely from any Windows PC via Xrdp. I want to take this a ...
0 votes
1 answer
49 views

Unable to configure fail2ban to protect samba shares

With this configuration service (fail2ban) starts, logfile register wrong attempts, but still not count attempts in fail2ban-client. I suspect that there is a problem with regex, but this is the only ...
0 votes
2 answers
35 views

Can I copy the files in my original /opt directory after I mount a new LVM on the /opt?

I have new LVM on my Linux server and I want to mount on my /opt. I have files in the /opt directory and I know after I mount, the files will be hidden. Is it possible to rsync the files in the /opt ...
53 votes
9 answers
117k views

Why would a server not send a SYN/ACK packet in response to a SYN packet

Lately, we've become aware of a TCP connection issue that is mostly limited to mac and Linux users who browse our websites. From the user perspective, it presents itself as a really long connection ...
0 votes
0 answers
24 views

I'm trying to expose a folder size in Node exporter but messes up. any suggestions?

This wasn't the case for a few months but suddenly my Node exporter in the server service messed up. Oct 02 10:13:01 nodefs01 node_exporter[117252]: time="2023-10-02T10:13:01Z" level=error ...
21 votes
6 answers
9k views

Best way to prevent the root system filling up when a mount fails?

We have an internal web server (virtualized, hosting ReviewBoard, but not super relevant) and we have a relatively consistent failure mode with failed NFS mounts causing / to fill up. Distro is Ubuntu ...
21 votes
4 answers
18k views

dmesg time vs system time time isn't correct

I hope that here is somebody that can help me with this strange problem. I think that i know why it is happening but i don't know how to solve it. Maybe it is because the BIOS time isn't set correct ...
0 votes
2 answers
5k views

Debian with iptables and fail2ban not ban IP

I have server with Debian 9. I have installed fail2ban and configured it. It work with sshd (ban IP on failed logins) but i can't make it work with apache-auth (IP is ban but iptables don't block it). ...
-1 votes
0 answers
10 views

Why are all communities unlinked? [migrated]

I examine questions on stackoverflow, stackexchange, and the subdomains for specializations. Every time I want to upvote or save a question or ask one on a new forum, I am prompted to make a new ...
0 votes
0 answers
26 views

How to tune a lagging linux server? [duplicate]

A server is lagging a lot while viewing logs, even when I'm using less comman to view the logs. Yes, I agree the log sizes are worth 400MB (after splitting). One of the issues I think could be the ...
0 votes
0 answers
49 views

Debian 9 (Stretch) - Broken dependencies on a libc6 upgrade

Good morning, I'm using Debian 9 (Stretch). I was updating my php version using the repositories below: #deb https://deb.debian.org/debian/ stable main contrib non-free #deb-src https://deb.debian.org/...
27 votes
4 answers
17k views

How can I create and use Linux cgroups as a non-root user?

How can I create and use cgroups as a non-root user? For example, can I, entirely as a non-root user: create a cgroup with access to one CPU create a new process in that cgroup ? I first asked ...
0 votes
1 answer
7k views

PowerBroker (PBIS) Restricted login list - couldn't resolve srv\DomainUsers [40071]

I want to join a domain with Ubuntu 16.04 machine. The server is Windows Server 2012 R2. I have installed PowerBroker Identity Services (PBIS) 8.5.2.265 I get this error in /var/log/syslog: ...
-2 votes
0 answers
38 views

Is Azure Linux VM B1 not enough to get started with Jenkins Server installation and practice? [closed]

Azure Linux VM B1,1 GB RAM. Installed Jenkins, allowed ports 80, 22, 8080. Logged on to Jenkins through VM's public_ip:8080 in the browser and entered the password fetched from the Jenkins Server. ...
-1 votes
0 answers
4k views

CentOS 7.8.2003 (Core) : Failed to restart Openssl.service: Unit not found [closed]

Im using CentOS 7.8.2003 (Core) Recently the Openssl doesn't work anymore but it worked before. when I tried to do this sudo service Openssl start or sudo service Openssl start It says "service ...
0 votes
1 answer
5k views

Nginx multiple location issue with react router

I'm trying to setup an nginx for my React front-end. There is routes in it which handeld by React-router which using browser-history. The locations basically: domain.com/cm domain.com/cm/dashboard ...
2 votes
1 answer
5k views

Imapsync authentication login error

I have deployed my own domain over cPanel server and have used imapsync to backup my google app email to my local domain email. But i'm facing below error. I've switched on "Access for less secure ...
0 votes
1 answer
30 views

UFW firewall deny incoming connections except for one ip

I want to deny all incoming connections to port 6677 except for one ip-address (so it can only be reached from a docker container running on the host, the port should not be accessible from "...
312 votes
8 answers
761k views

How to bind MySQL server to more than one IP address?

Is there a secret way to bind MySQL to more than one IP address? As far as I can see the bind-address parameter in the my.cnf does not support more than one IP and you can't have it more than once.
1 vote
0 answers
34 views

Connecting to MariaDB server: ERROR 2013 (HY000): Lost connection to server at 'handshake: reading initial communication packet', system error: 11

I am trying to connect to an AWS hosted (RDS) MariaDB database (engine version 10.6.14). The database is hosted on a private subnet but it's accessible through a bastion host. I use an SSH tunnel to ...
5 votes
3 answers
4k views

Strange Recurrent Excessive I/O Wait

I know quite well that I/O wait has been discussed multiple times on this site, but all the other topics seem to cover constant I/O latency, while the I/O problem we need to solve on our server occurs ...
0 votes
0 answers
27 views

Amazon Linux 2023 AMI Permissions

I'm setting up a new EC2 Instance with AMI Linux 2023. (I'm super new to Linux/AMI). I followed this tutorial on the AWS website: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-...
0 votes
1 answer
6k views

check_nrpe: ssocket time out after 10 seconds

I have a Nagios core setup in my environment for monitoring Windows, Linux servers etc. Recently i have configured a physical and swap memory monitoring using the plugin ./check_nrpe for windows ...
0 votes
0 answers
18 views

serverside fetch request timeout when request are to an external domain which has the same IP as origin domain

I'm currently running a SvelteKit app within a container which connects to an API running within aother container. Everything is connecting & going through locally using the container's internal ...
0 votes
0 answers
5 views

Newbie: How to add mod_sec rule exception for specific use-case

maybe someone with experience or basic knowledge that knows what they're doing (unlike me :)) can help.... Currently, I have Ubuntu 20.04 installation with OpenLitespeed and Cyberpanel. I've installed ...
0 votes
0 answers
22 views

Alma linux 8 update fails for any package with CPG keys check fail

I have upgraded a Centos7 server to Centos8 and then to Almalinux 8.8. If I run dnf update I get an error for any package. I have removed yum so I am using dnf. I have tried dnf clean all but the ...
0 votes
1 answer
5k views

ldapsearch - Get all members of a CN (nisNetgroupTriple)

I'm a bit new to using LDAP, especially non AD LDAP. We use RedHat Directory Server and was trying to do an LDAP query (filter specifically) that would retrieve all the users (and their attributes) ...
1 vote
2 answers
5k views

Nginx 404's all static content in reverse proxy setup

Whats strange is that this exact configuration used to work fine, but now all static files will 404 on direct link i.e domain.com/test.html domain.com/test/test.html domain.com/ and domain.com/test/...
0 votes
2 answers
47 views

AWS CIDR Address is not within CIDR Address from VPC

In AWS have created VPC which CIDR is 10.0.0.24.I want to creates its two subnet.its public-subnet is in us-west-1a - IPv4 CIDR 10.0.0.0/24 thenwhen I create private subnet is in us-west-1b - ...
-1 votes
0 answers
42 views

interrupt all tcp/udp session in TUN interface or NAT

I have a vpn server in my linux machine and some people are connecting to that. sometimes one of the users consumes half of the bandwidth at the time I need the resources. I know internal ip of that ...
0 votes
1 answer
55 views

Firewalld is not working,. port open but I can't reach from other server

I got a wildfly 9 server on REHEL 7 with ports http=4070. Then I executed the following instructions: [root@linux]# firewall-cmd --add-port=4070/tcp --permanent Warning: ALREADY_ENABLED: 4070:tcp ...
1 vote
2 answers
2k views

How can I change the directory in wich pam_mkhomedir creates the user's home directories?

I am using pam_mkhomedir to automatically create user's home directories when they first log in. However, the home directories are created inside the /home directory, while i need them to be created ...
0 votes
1 answer
45 views

is /etc/sudoers writable or not

The default permission in /etc/sudoers file is readonly for root and group root as in picture is obvious : So when you open it with any test editor it can't be written and give error read only. now ...
0 votes
1 answer
226 views

Forward Wireguard traffic to another port

I have installed Wireguard on server A with below configuration: [Interface] Address = 172.16.0.1/24 ListenPort = 51820 PrivateKey = <server private key> # Firewall rules PostUp = iptables -A ...
1 vote
1 answer
12k views

Postfix - Recipient Address Rejected on Incoming Mail Only

I am working on building a secure mail server for the first time using Postfix and Dovecot and I have encountered a problem that I cannot surpass. To avoid the email delivery in the spam box of ...
1 vote
0 answers
85 views

How can I fix my unbearably slow NFS linux server?

I'm currently struggling with an extremely slow server providing home directories through NFS, and I cannot figure out the origin of the problem. It's all running on Nixos, but I don't think that's ...
1 vote
0 answers
23 views

How does scsi multipath work?

I don't understand a little. (hypothetical situation) I have a Supermicro server with Linux. A pci hba is inserted into it. In the hba, via sff-8644, a jbod with 90 ssd is connected. sff-8644, this is ...
0 votes
0 answers
20 views

Systemd service executing a script with error handling

I have the following issue: I created a systemd service which executes a script. This script contains several commands including psql commands which queries a database and stores the outcome into ...
0 votes
1 answer
54 views

Wireguard with multiple local subnets using iptables

I'm trying to allow multiple local subnets when using a wireguard VPN. Below is the iptables config from my wireguard config file. I'm assuming I have to write this in a different way, but I have no ...
13 votes
1 answer
15k views

What does locking a password using `passwd -l` mean?

It is possible to lock a password using $ passwd -l john But what does that actually mean to lock a password?

1
2 3 4 5
767