Questions tagged [linux]
Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.
38,410
questions
-1
votes
1
answer
11
views
How can I securely watch videos on my VPS downloaded from untrusted websites?
I have a linux VPS containing videos downloaded from untrusted websites, which may contain viruses. I want to watch these videos safely. I tried RDP, but it's lagging.
Is there a secure way?
0
votes
0
answers
26
views
not able to send mail with attachment from linux ubuntu : 20.04 by using email mailutils (sendmail keyword)
code :
subject="Service resilience service status"
body="Service is down"
from="[email protected]"
to="user@domain.com"
attachment="/home/ubuntu/...
0
votes
0
answers
11
views
New libnss service : getent is empty
I want to login users base on a local SQLite db. I used this repo github.com/agamez/libnss-sqlite3, placed libnss_sqlite.so in lib folder and edited /etc/nsswitch.conf as follows, but getent passwd is ...
0
votes
0
answers
22
views
Kill a malware process running in the background [duplicate]
I have a WordPress site sitting on a Docker container and which was infected by a malware. I noticed that when I try to remove the malware, it gets back again after a few seconds. When I run a process ...
0
votes
0
answers
17
views
IPv6 route based VPN client with Strongswan, packets arrive but not received by application
I'm trying to set up a linux client PC with a route based VPN tunnel using strongswan and an XFRM interface, with IPv6 (end to end).
strongswan 5.8.2, linux kernel 5.15.0
[An aside - I've tried an ...
0
votes
0
answers
38
views
How to create an FTP user (or use ROOT) to access to ALL websites, current and future via FTP?
I have a new Hostinger VPS and I'm migrating all my websites over from Bluehost. Setting up an FTP user (I am running ProFTPD on Ubuntu) through CloudPanel is quick and easy, but it seems to be only ...
0
votes
0
answers
24
views
RAID1 array auto removed a totally physically damaged member disk. Should the disk replacement procedure be any different than standard `mdadm --add`?
RAID Setup
One RAID 1 array with 2 members:
sda1
sdb1
Due to hardware failure, sda is not visible in /dev/ anymore and the array also does include it anymore (RAID 1 status: S)
Playbook to replace ...
1
vote
0
answers
10
views
Setting drive spindown time on megacli
I'm having trouble setting the spindown time on MegaRaid using MegaCLI. Apparently, I'm doing something wrong - in essence, I'd like to set default spindown time for all disks.
I'm trying this:
...
0
votes
2
answers
112
views
Is opening SMTP port with default Sendmail config safe?
My self-hosted web app (Ubuntu VPS) needs the ability to send noreply@ notifications to users when something goes wrong. I don't really need the ability to receive emails but I would like to comply ...
0
votes
0
answers
30
views
cpuset does not work correctly for systemd service
I am running kubelet service with systemd and trying to pin all kubelet processes to a single CPU core.
Edited /sys/fs/cgroup/kube.slice/cpuset.cpus and put 7. the taskset command shows the cofig is ...
0
votes
1
answer
57
views
How to replace failed disk on Linux Raid (mdadm)
I get an input/output error when I list drives with: fdisk -l
Failed to read extended partition table (offset=3886721022): Input/output error
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 ...
1
vote
0
answers
39
views
RHEL9 not booting, pane is dead error [closed]
I will get anytime the following error messages when I try to boot RHEL9 with USB installation media:
https://i.stack.imgur.com/6poRC.jpg
My server is HP ProLiant DL360 Gen7 and my usb installation ...
0
votes
0
answers
46
views
Install proftpd from source [closed]
I have a problem with installing Proftpd on CentOS 7 from source. I use the commands below. I need simply configuration.
$ mkdir /usr/local/proftpd
$ mkdir /etc/proftpd
$ cd /usr/local/src
$ wget ftp:/...
0
votes
0
answers
15
views
Correct Model Specific Register (MSR) to check turbo boost for different Intel CPU models?
I manage the following servers (but not limited to) for my work:
Coffee Lake: E-2146G, E-2276G, E-2286G, E-2146G, E-2276G
Kaby Lake: E3-1230 v6, E3-1230 v6
Haswell: E3-1231 v3
I referenced the Intel ...
0
votes
0
answers
21
views
Massive server load times on images only [closed]
Server Details: AlmaLinux v8.9.0 STANDARD virtuozzo WHM/cPanel
We have been struggling to find the issue for a month now. We have over 40 sites running on this server with an average server load of 1....
0
votes
0
answers
27
views
setting up a NFS server on a kubernetes cluster
as part of tests I'm doing, I'm attempting to set up a NFS server on my cluster that all of the other pods could use to mount the data folder through.
similar to this set up:
Image
I've tried ...
0
votes
0
answers
25
views
Configure a server to act as an internet gateway [duplicate]
I have two virtual servers hosted in Hetzner Cloud. The first server (let's call it Access Server) has a Public IP assigned and has internet access. The second server does not has a public IP assigned ...
0
votes
2
answers
70
views
Using Active Directory only for authenticating logins
Unlike: Linux + Active directory authentication + only letting certain groups login
Which is a full AD solution for Linux, limited to groups.
What I want is:
A simple way a random internal Linux box ...
2
votes
0
answers
22
views
Fix kickstart drift between CentOS 8 Stream behavior and CentOS 9 Stream behavior
I'm facing a weird situation on one of my server on the provisioning process.
Here is the machine HW Model:
HPE Proliant DL365 Gen 10 Plus with 6x 1.9TB SATA 6GBps SSD disks.
What's going on:
When I'm ...
0
votes
0
answers
122
views
Qualys: Weak SSL/TLS Key Exchange
In a Qualys vulnerability report on a RHEL 8.6 server where a CA endevor bridge for git is installed, it detects the following vulnerability:
QID 38863 - Weak SSL/TLS Key Exchange
Offering as a ...
0
votes
0
answers
45
views
File is immediately deleted after using cat
I'm currently facing an extremely strange issue I'm not sure where to begin to diagnose. I have a directory of log files written using winston (and its daily rotate transport). When I go in that ...
0
votes
0
answers
8
views
Disable padlock emblem on files [closed]
I want to hide the padlock emblem on my files.
I'm aware the emblem is permissions related, I don't want to change permissions, I just want to hide the emblem.
I'm using budgie.
0
votes
1
answer
37
views
How can I keep track of nginx restarts and reloads?
I have an nginx reverse-proxy on a ubuntu server in AWS. How can I see when it's configurations were reloaded, either via CLI or otherwise, and when it was restarted altogether?
If it doesn't record ...
0
votes
1
answer
36
views
Can I generate and log output alerts for SMTP traffic using Suricata 7.0.2?
I have Suricata 7.0.2 IDS installed on a Linux Ubuntu 20.04 virtual machine. In my virtual environment, I have two virtual networks. In the first network, I have a mail user agent (Attacker) that ...
0
votes
0
answers
25
views
strace restart apache server does not log accept/accept4 syscalls
We are using the following command to gather syscalls for apache server start (run as root):
strace -e trace=open,close,read,write,connect,accept -f -o /home/sacumen/syscalls_start_apache.txt ...
0
votes
0
answers
35
views
Linux network OS boot from grub bootloader ISO
I have an idea to boot the system with network files for automated installation of OS
I have created an ISO with gub-mkrescure with just a grub inside it, so when it boots the grub menu will appear ...
1
vote
1
answer
57
views
Recover ZFS mirror from pool with unavailable device
I tried to expand my two-way mirror to a three-way mirror. The new drive had some filesystem issues (ext4) so I tried to force zpool add -f the drive for ZFS to handle for me. This led to a weird ...
0
votes
0
answers
29
views
How do I convert freedict file (.dict.dz) to XML?
I tried to follow the instructions from the "Installation" section of:
https://github.com/freedict/fd-dictionaries
It says "For building make should be enough, at least if you have both ...
0
votes
1
answer
64
views
Nginx reverse proxy to apache server, redirection gives 404
I have this setup with angular and spring boot project having nginx reverse proxy to apache for serving angular application and embedded server for spring boot reverse proxied through nginx. Now I am ...
0
votes
1
answer
75
views
Grub2 Error grub-boot-success.service: Main process exited, code=exited, status=1/FAILURE
I'm running a VPS with Alma Linux 8.8.0 with WHM/cPanel and 60 or so users, multiple websites etc.
I'm regularly seeing these in the server 'messages' log:
Nov 16 11:39:01 ark grub2-set-bootflag[...
0
votes
0
answers
21
views
How to Find And Delete Folers that are 20 Days Older using Cron Jobs in Truenas Scale? [migrated]
I have security camera in my home it upload recorded videos to my Home NAS every One Hour Time intervals which is powered by Truenas Scale Operating System now all the footage are stored in my nas i ...
0
votes
0
answers
54
views
Linux server stops responding, no video output
I built a Linux server out of commodity hardware and every now and then it stops responding. I can't ssh in, my docker jobs don't respond, and when I plug in a monitor there is no video output until I ...
0
votes
0
answers
32
views
Linux bonding add new port
I got active bond with two ports on server, under Ubuntu 22.04
Bond mode is: 802.3ad
I want to add one more port.
So, the question, there will be some downtime, bond flapping when I add one more port ...
0
votes
1
answer
83
views
sed + delete all comment lines and when line match specific word
I created this sed in order to delete the comment lines lines from fstab ( comment can ne with begin of space or TAB etc )
sed '/^[[:blank:]]*#/d' /etc/fstab
in my case I want to add also the ...
-1
votes
0
answers
31
views
OpenLDAP read performance
Hello I've used following documentation to configure an OpenLDAP Server to function as a proxy for multiple domains.
https://docs.microfocus.com/doc/Service_Manager/9.72/ConfigureLDAPproxy
The only ...
1
vote
0
answers
36
views
autofs --timeout option not accurate
I have a simple autofs config where I set the option --timeout=30 on an indirect mapping.
When I access the unmounted storage via ll /my/mount/path and do a watch -n1 "mount | grep /my/mount/path&...
0
votes
1
answer
79
views
Oracle Linux 8 to 9 in place upgrade with Leapp fails with XFS internal log size 8192 too large, must be less than 4789
Can someone please help?
2023-11-14 09:25:01.774 DEBUG PID: 308200 leapp.workflow.InterimPreparation.dnf_dry_run: External command has finished:
['/bin/dd', 'if=/dev/zero', 'of=/var/lib/leapp/...
1
vote
0
answers
24
views
Why are compact_stall increasing on a system with Transparent Hugetable defrag set to 'defer'?
We're running a reverse proxying application within docker that is very
network intensive. Dockerd is occasionally allocating memory using
madv_hugepage, and we've observed this sometimes causes ...
0
votes
0
answers
26
views
How to know that next two hours directory based in container will grow up to maximum available space? [migrated]
I have Nginx based in container and its directory with logs and cache.
I want to make alert via .sh script which can warn me that with the last-hour-average writing speed there'd be no free space ...
1
vote
1
answer
87
views
Updating vulnerable python packages on Oracle Linux 8.8
I have a number of Oracle Linux 8.8 machines and Crowdstrike is flagging all of them for vulnerabilities associated with the python packages installed with python 3.6. Oracle says python 3.6 is ...
-1
votes
0
answers
38
views
The puma service just ends at random intervals
The puma service just ends at random intervals.
Here is my appname_puma_production.service file
[Unit]
Description=Puma HTTP Server for My Rails App
After=network.target
[Service]
Type=simple
...
0
votes
0
answers
37
views
Traefik proxy splitting dynamic config file
i have questions about config files in Traefik. I would like to split my dynamic config file into multiples based services files.
_ The setup
I have a proxmox instance running a pfSense VM. All ...
0
votes
1
answer
80
views
Unable to run e2fsck on partition. Claims the partition is "in use"
My system claims my partition is in use, but I can't figure out why:
root@racknerd-05beb8:~# e2fsck -fvy /dev/vda1
e2fsck 1.46.2 (28-Feb-2021)
/dev/vda1 is in use.
e2fsck: Cannot continue, aborting.
...
1
vote
2
answers
147
views
Reading fuse mount and filesystem stats
I have an sshfs.fuse mount. I am looking for a way to read mount statistics, e.g. bytes read/written, something similar to what /proc/diskstats contains for disk devices. fusermount has nothing to get ...
-3
votes
0
answers
120
views
Expand storage on PERC H710 RAID 0 Dell Poweredge R620
I cant find any good tutorials online, its my first server, i don't know much.
I have a raid 0 and i want to expand storage without losing my data? And is it the same process to a raid 5?
I've read ...
0
votes
0
answers
52
views
RAID 6, SSD Cache, Journaling, mdadm, LVM, Filesystem Strategies for Data Resiliance
I'm replacing a NAS server thats been in loyal service for almost a decade now. It will be repurposed as my offsite backup, but now I'm setting up a new NAS from scratch for homelab and need some ...
1
vote
1
answer
57
views
Swap file is not recognized by the Ubuntu server
I've noticed that my Ubuntu server is using smaller swap file then there is available.
swapon shows 9GB swap file, but other commands show 1GB swap file
Some outputs:
swapon --show
NAME TYPE SIZE ...
0
votes
0
answers
24
views
Issues with NFS Boot on Jetson Xavier using Bridged Interface with DHCP on R32.7.2
I am currently working on setting up NFS boot on a Jetson Xavier device and have run into some issues I hope to get assistance with. I'm using Jetson Linux R32.7.2 and have been trying to configure ...
0
votes
0
answers
16
views
Resetting logical Direct-Access Error || RHEL 7.x
We have an error for the LVM resetting device which has been impacting our Linux server during this period.
kernel: hpsa 0000:02:00.0: scsi 0:1:0:1: resetting logical Direct-Access HP ...
0
votes
0
answers
21
views
When invoking the /servlet/LoginServlet page, verify that the password parameter is present in the body of the POST request and that it is set [closed]
I have an Apache which receives POST requests, with user credentials and password.
When invoking the /servlet/LoginServlet page, verify that the pwd parameter is present in the body and that it is set....