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
2 answers
33 views

wordpress directory file ownership changes everytime after uploading files/plugins

on centos 7, i have created wordpress website with root directory ownership websitename:websitegroup and directory permissions 755, file permissions 644 set by default when the developer, login to ...
Rajsekar Reddy's user avatar
0 votes
1 answer
38 views

ssh proxyjump command to config file

I use a ssh command for logging into a remote node using an intermediate node via proxyjump. The remote and intermediate nodes are Linux servers, and my client is a Macbook. This command works, and it ...
vpk's user avatar
  • 103
0 votes
0 answers
15 views

How do I see the amount of bandwidth used during the execution of a program?

When executing a program, from a shell, how do I see the total amount of network bandwidth used by that program? I am thinking of something similar to time, but for bandwidth. petur@petur:~$ time ...
Pétur Ingi Egilsson's user avatar
0 votes
0 answers
24 views

DirectAdmin Apache/Nginx Reverse Proxy Custom Subdomain Config

I have a particular application on a subdomain that needs a custom Nginx configuration to work. I am using DirectAdmin control panel to make per-domain customisations. However, I am getting confused ...
Mark's user avatar
  • 1
0 votes
0 answers
13 views

Make postfix retry PNCR Status (5xy code)

Every now and then I am forced to send medium volumes (100-1000 mails) to microsoft smtp servers (outlook.com/hotmail.com) outlook-com.olc.protection.outlook.com Remote Server returned '554 5.7.1 <...
Christopher's user avatar
0 votes
1 answer
50 views

PHP Fatal Error: Cannot open /dev/urandom: No such file or directory when calling session_start() with manually built PHP

Problem I built PHP8.4 manually in Ubuntu 14.04 since the OS is out of support with no ppa package available. I tested for phpinfo() web page showed correct information while adding session_start() at ...
NeNe's user avatar
  • 3
0 votes
1 answer
41 views

I want to make Linux Kernel Source an RPM file

I am currently using Rocky Linux 8.7. The current kernel version is "4.18.0-425.13.1.el8_7.x86_64". I want to upgrade kernel through RPM, not source compile. In the kernel compile step, use ...
gotothesky's user avatar
0 votes
0 answers
39 views

DNSSEC - Unable to sign the relevant files

I have set up a working DNS server on an Ubuntu 22.04 LTS as part of a single server (DNS, SPF, Email, firewall etc) IP: 192.168.122.189 Test Domain: jetj.ltd Hostname:mail The files I have are: db....
Kartibok's user avatar
-1 votes
0 answers
22 views

How to access data on an external ssd drive with MBR only? [migrated]

My old laptop's display died, so I took its SSD and connected it to another laptop with Ubuntu 22.04 externally via USB using M2 SSD case. There should be two operating systems: Windows and Ubuntu on ...
27cm's user avatar
  • 1
-1 votes
0 answers
33 views

Map custom local domain to IP:PORT in Ubuntu 22.04

I have an Ubuntu 22.04 host installed and I have run a guest Ubuntu 20 virtual machine on it with an static IP: 192.168.1.51. Inside the VM, I have a service running on port 8081. Now, I am trying to ...
Stack crawler's user avatar
0 votes
1 answer
24 views

VLANs and Bridges on Debian to share the same address

Right now I have a simple topology with the debian gateway, few managed switches and access points. I'd like to add 3 VLANs to my topology and maybe use 802.1Q on debian gateway, so that all the ...
EasyMoney322's user avatar
1 vote
0 answers
60 views

MYSQL use too much disk (read / write)

I have big problem with my server. I am using Ubuntu linux version 22.04. The problem is in the write / read disk (light for the disk is all the time ON) when I have turn on apache (PHP) and MYSQL. ...
Jure's user avatar
  • 11
0 votes
0 answers
22 views

Performance governor does not set the maxmum frequency

I am trying to use the governor on performance mode, but everytime I check the frequency values I see a frequency less than the CPU frequency. I am using a Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz $ ...
herox's user avatar
  • 1
0 votes
1 answer
38 views

Is it possible to disable ldap passwords for a user without disabling their account?

We have a cluster that uses an internal LDAP domain for user authentication that previously used passwords stored in LDAP. We have now moved the login machine to use krb5 for password authentication ...
jamie's user avatar
  • 3
0 votes
1 answer
28 views

How to download binaries for MS ODBC18 Driver?

I need to install the MS ODBC 18 Driver into Amazon Linux 2 (for EC2). The steps here cannot be completed due to network restrictions: Microsoft ODBC 18. Also the package needs to be installed while ...
FerverSault's user avatar
2 votes
1 answer
52 views

How to append content of one file to another in Linux continuesly?

I have a log file log.log that is created by the application, I want to have any new line added to this file continuously being added to another log file historical_log.log. How can I do that? I am ...
Behnamkvl's user avatar
0 votes
1 answer
37 views

Trying to set wake-on-lan persistently on linux fails

This is my box: Linux mediacenter 5.15.122-1-MANJARO #1 SMP PREEMPT Tue Jul 25 07:09:46 UTC 2023 x86_64 GNU/Linux I am trying to follow https://wiki.archlinux.org/title/Wake-on-LAN But I am failing to ...
phetherer's user avatar
-2 votes
0 answers
47 views

Postfix to O365 tenant directly

I am planning to have a postfix smtp relay that will send emails to an O365 tenant. Is this possible through port 25 without using SASL?
manwithamission's user avatar
0 votes
1 answer
48 views

Shared server resouces mangement

We have an on-prem Xeon server running Ubuntu LTS that is shared across few developers. Each developer logs in with his on user and run various workloads on it. The problem we experience is when ...
stdcall's user avatar
  • 187
1 vote
3 answers
571 views

LVM: Creation difference between CentOS 7 and CentOS 6

I have CentOS 6 & 7 server and am creating 512 MB logical volumes: CentOS 7: sudo lvcreate -v -n lvname -L 512M rootvg && sudo mkfs.xfs -L "lvname" /dev/mapper/rootvg-lvnamee ...
JKC's user avatar
  • 31
2 votes
2 answers
126 views

Lists active network ports and protocols over time

Is there a linux server utility that can list the network ports and protocols that have been active over a given period of time? For example, I'd like to know which ports and protocols were active at ...
Numid's user avatar
  • 121
0 votes
2 answers
31 views

Efficiently removing x-bit from files in large directory

I have a directory /some/dir containing millions of files and directories. I need to remove the X-bit for all file, but not from the directories. The following works: find /some/dir -type f -chmod -x {...
Troels Arvin's user avatar
0 votes
0 answers
20 views

Manage nuumber of connections for OCserv and FreeRADIUS

I have numbers of Ocserv servers and connected to a FreeRADIUS server for authentication. I have configured directive bellow in Ocserv of each server to don't let a user connect more than 2 times. ...
AminMZ's user avatar
  • 3
-1 votes
1 answer
31 views

What happens on the server when a multimedia file gets downloading/playing?

I have a video-based website. It gets slow when about 1k concurrent users watch/download a video. I'm trying to debug it to see what resource is weak to increase it. I executed htop command to see ...
stack's user avatar
  • 99
0 votes
0 answers
43 views

inside nginx custom docker image, cron service is running but not the jobs executing

Dockerfile of nginx container FROM nginx:latest # Remove sym links from nginx image RUN rm /var/log/nginx/access.log RUN rm /var/log/nginx/error.log RUN apt-get update && apt-get install -y ...
Rajsekar Reddy's user avatar
2 votes
1 answer
155 views

How should I modify file permissions to accomodate Wordpress

I have been successfully using the method described here: Maintained by a Single User and it has been working well for me. This is my script for all my websites: sudo chown -R WebAdmin /var/www/...
Chiwda's user avatar
  • 125
0 votes
1 answer
46 views

Dovecot says user does not exist although it's in MariaDB database

I use a MariaDB to store users for Dovecot 2.2.10. The Dovecot keeps giving "Disconnected unexpectedly" errors, and I can't find a reason. Is there anything I could look at? Mail logs Aug 29 ...
岁月倾城197's user avatar
0 votes
0 answers
8 views

Encrypted fs and liblzma.so.5 library missing

I have created a few VMs with encrypted filesystems + dropbear-initramfs (https://packages.debian.org/bullseye/dropbear-initramfs) with a procedure similar to How to unlock LUKS using Dropbear SSH ...
LetMeSOThat4U's user avatar
0 votes
0 answers
40 views

Linux login using active directory domain with two-way trust

I don't have much experience in linux tools for infrastructure and authentication with Active Directory. I'm trying to set up authentication via AD on Ubuntu 22.04. The structure we use is as follows: ...
Rafael Rodrigues Marquesi's user avatar
0 votes
1 answer
26 views

Is it possible to set CPUAffinity=0 for a specific process in its systemd service unit file?

Is it possible to set CPUAffinity=0 for a specific process (lets say httpd.service) in its systemd service unit file?
Shubham Saroj's user avatar
0 votes
1 answer
24 views

China version of Baota mandatory binding cell phone number solution

Currently the latest version is 8.0.2, which requires account binding, which is very troublesome and there is no way to remove it. Versions after 7.4.5 (excluding 7.4.5) require mandatory cell phone ...
lin xiang's user avatar
3 votes
1 answer
106 views

Linux port 25 is not working, and postfix unable to establish external connections at port 465, internal connection works with issues

I guess these are two typical issues, at least first one is. I'm trying to configure postfix dovecot on CentOS 7. First, the port 25 is open, but it is not accepting any outer connections. The ...
岁月倾城197's user avatar
0 votes
0 answers
22 views

Create Azure Red hat template with custom LVM partitions

I want to prepare Azure template for Red Hat 8 servers with packer and I'm facing problem with setting custom LVM partitions. For example, I want separate /var/tmp, /var/log etc. I deployed some VMs ...
matix324's user avatar
-1 votes
1 answer
22 views

Server Response Time Fluctuation on VPS for Static Files

I monitored some of my VPS (shared CPU from major suppliers), and response time changes over time from 50ms to 2000ms. There is no traffic on the server and there is no database. So is this because of ...
doraemon's user avatar
0 votes
0 answers
38 views

Portainer can't access docker socket without chmod 666 workaround

Environment: Alpine Linux (3.18) I've got a portainer docker container that can't access the docker socket. I've added my user to the docker group. I make the container with the following command: ...
m4p85r's user avatar
  • 315
0 votes
1 answer
80 views

How can I setup Nginx with a transparent socket?

Similarly to this Cloudflare blog post, I am trying to setup Nginx with a transparent socket (with the IP_TRANSPARENT socket option). I want to do this to implement a reverse TCP proxy that ...
dippynark's user avatar
  • 233
0 votes
1 answer
106 views

Why can't I ping local IPv6 address?

OS: almalinux9 2610:150:c002::1:a563 is the IPv6 address of my local network card eno2. [root@alpha ~]# ip addr show eno2 3: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state ...
Joshua Shaw's user avatar
1 vote
0 answers
45 views

A gateway of 0.0.0.0 gets added in my linux machine after I assign a static IP and static gateway

I am assigning static IP address on a Linux module (custom Yocto Distribution on TI AM3359 custom hardware) using the ifconfig command. sudo ifconfig eth1 10.11.3.80 netmask 255.255.248.0 sudo route ...
Aditya Kumawat's user avatar
1 vote
1 answer
46 views

SSSD, openLDAP and nested groups

I am trying to figure out how to structure my ldap and/or configure sssd to read membership of nested groups. Something like this works for normal group membership: DN: cn=server-admins,ou=Groups,dc=...
fussedAs's user avatar
0 votes
1 answer
48 views

Multiple wireguard interfaces each using the 'real' interface directly, and through either be able to reach any IP

I'm in need of setting up multiple wg-quick interfaces on a single machine, both using the real ethernet NIC directly, independently. The issue I appear to be hitting is that through each of these I ...
Hashbrown's user avatar
  • 313
1 vote
0 answers
47 views

Availability of CHROOT in Docker containers and clusters

Is the Linux tool chroot generally usable in a Docker container running in clusters and cloud platforms? (background) I'm developing an application where I may need to use chroot inside a Docker ...
Matteo T.'s user avatar
  • 111
2 votes
3 answers
461 views

Can one VG (Volume Group) contain different types of PVs (Physical Volumes)?

The background is we have our database data directory on an LV which is located on a VG. We want to use the LVM's snapshot function to backup our database data, but this VG has no free PEs left. We ...
Ke Lu's user avatar
  • 21
0 votes
1 answer
76 views

Almalinux 9 Failed to allocate memory

I have SingleStore DB CLI (Cluster in a Box) deployed in a AWS EC2 Instance r6i.4xlarge with Almalinux 9 OS. At the moment of load data by pipelines the following error appears: line 34: ER_MEMSQL_OOM ...
Alexis Cruz's user avatar
0 votes
1 answer
22 views

On SD card the patitions come back after removing them

A little funny problem I'm curious about the reason. I found an old SD Card, I even don't remember that it was used for. So I want to remove the old partitions and use it for some of my devices. And ...
Paul Zakharov's user avatar
0 votes
1 answer
21 views

Map dev notation to logical volume name

I need to figure out what dm-2 or dm-0, etc. is (this notation is found in dmesg notices, sysstat reports, etc.) and lsblk is not installed I find lvdisplay output a little bit confusing. Can someone ...
VGS's user avatar
  • 28
0 votes
0 answers
20 views

Can somebody provide an example smb.conf for a NT domain controller?

After I updated my domain server from Ubuntu 18.04 to 20.04 the NT domain no longer worked. Domain logons on the Windows 10 computers fail. (Ubuntu 18.04 is no longer supported). So I set up a new (...
dummzeuch's user avatar
  • 607
0 votes
1 answer
26 views

OpenDKIM & OpenDMARC on SLES 15 SP2

Hello is it possible to install OpenDKIM & OpenDMARC on SLES 15 SP2 through the default repository of OpenSUSE?
manwithamission's user avatar
1 vote
0 answers
91 views

Routing 2 public IP ranges on 2 bridges

I've set up a new Proxmox 8 server, and I'm struggling to get my networking set up correctly. A normal bridge interface with a single IP range is easy enough, but I can't seem to get my 2 IP ranges to ...
Richard Keller's user avatar
0 votes
0 answers
29 views

/grub/i386-pc/normal.mod not found with special condition

I updated my ubuntu server from 18.04 to 20.04 and reboot. after reboot I fall in grub rescue. in the (hd0,gpt2) there are some directories include grub. in grub there is i386-pc and in the i386-pc ...
Michael Cab's user avatar
0 votes
0 answers
22 views

Virtual machine static ip doesnt work

I have created vps private Ubuntu server on virtual machine. Then I have deploy my app on it with static ip 192.168.56.101. Everything is working, when I open it on my local machine, but when I try ...
Gor Barseghyan's user avatar