Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

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

0
votes
0answers
26 views

How to bind mount a subdir of a RO file system as R/W, and keep it as R/W

I have a read-only root file system and I want to make a subdir (let's say /home) writable. For this I do the following: mount --bind /home /home mount -o remount,rw /home This works fine. Now let'...
2
votes
2answers
337 views

systemctl stops Tomcat service immediately after start

I asked first this question on StackOverflow, but it seems that this site is a better fit. I am setting up a web app environment to run Java apps. The environment is supposed to be: AWS EC2 Ubuntu ...
2
votes
1answer
54 views

What are proper iptables Rules for Docker Host?

I have Ubuntu server with Docker to serve MySQL and SSH/SFTP and I need all ports except 3306 and 22 to be firewalled, pretty standard and trivial requirement, right? Now, I managed to find a sort of ...
0
votes
0answers
19 views

bonding configuration when SLAVE=yes

In my network configuration I see the settings of SLAVE=yes what is mean that - SLAVE=yes # cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=yes # Settings for ...
0
votes
1answer
49 views

Docker hybrid swarm mesh routing not workingwindows

Windows Version: Server 2019 Docker for Windows Version: 18.09.0 Linux Version: Ubuntu 18.04.1 LTS Linux Node Docker Version: 18.09.0 Issue: Ingress routing between nodes in hybrid (linux/windows) ...
-1
votes
1answer
52 views

Script on Linux only gives me “no such file or directory” [closed]

I've come across a problem, I am writing a script that would find the biggest file in directory and sub-directories, then show full path on screen. Can't seem to get it working. The error I'm getting ...
0
votes
1answer
43 views

Could a DDoS still result in low-latency ping replies?

I have a hosted server running Asterisk PBX with the following specs: Debian 9 x86 64bit Linux, 2GB RAM, 2TB bandwidth, and 20 GB SSD storage. For almost a day now, the server has been seemingly "...
-2
votes
2answers
18 views

How to remove connection time out links form RHEL

I want uninstall LAMP from my REDHAT virtual server and reinstall back it again but i don't have internet access on my server and when i uninstall mysql from my server i getting below error please ...
0
votes
0answers
11 views

How do filesystem commit interval options interact with vm.dirty_expire_centisecs?

Question How do filesystem "commit interval" options interact with vm.dirty_expire_centisecs? What happens when one is shorter than the other? Does it ever make sense to set these differently? My ...
2
votes
1answer
106 views

Totally automating Apache on whatever distro

The problem I'm having seems to be true to all distors but let's assume I use an all-default debian-stable (server), and ran apt update -y. Installing, upgrading, restarting as well as enabling or ...
0
votes
3answers
46 views

Apache can't find directories in symlinked '/var'

I have the following directories, where /data is the mount point for a data partition, and /var is a symlink: lrwxrwxrwx 1 root root 9 Nov 20 13:25 /var -> /data/var lrwxrwxrwx 1 root root 9 Nov ...
1
vote
1answer
35 views

How can I add a single SAS drive to a Perc H700 on Dell R310 server WITHOUT loosing the data on it?

On a Dell R310 server with Perc H700 RAID controller. I have 1 virtual disk configured as Raid 1 but with only 1 physical SAS disk attached and the other missing. This virtual disk has been ...
0
votes
1answer
63 views

how to set temporary backup location for vps in virtulizor?

i,m new to virtulizor and i have setup a ftp backup server. after a while i realized that you need to have enough empty space on your hard drives for virtulizor to be able to create a temporary backup ...
0
votes
1answer
47 views

Which Prometheus RabbitMQ Exporter to choose for which RabbitMQ version? How to automate this dependency installation for any version?

At the time of writing my question the latest RabbitMQ version was 3.7.9 and latest prometheus_rabbitmq_exporter was at 3.7.2.4. So they are different. How do I know which version of ...
0
votes
0answers
27 views

Duplicate cifs mounts in df and mount command output

cifs-utils Version: 2:6.4-1ubuntu1.1 i recently changed the fqdn of my old windows file server(app.example.com) in fstab to new one(org.example.com=10.10.1.97) but when in "df -h" output i see the ...
-1
votes
0answers
13 views

firewall : open multiple ports (range of ports) : RHEL 7 [duplicate]

On a RHEL7 machine, I have got following in /etc/firewalld/zones/10abc.xml <?xml version="1.0" encoding="utf-8"?> <zone> <source address="10.10.16.0/24"/> <port protocol="tcp"...
0
votes
2answers
57 views

dig - how return NS from authority only

How I can parse NS from authority - no from child NS servers? I need check NS servers from about 30 000 domains with different TLDs. I can use dig google.cz +trace But output is long and I don't ...
0
votes
0answers
22 views

How to join linux pc to active directory in specific ou with authconfig

I use authconfig command to join linux computers to AD How do I specify which OU they go in? I llook at authconfig --help but not see antyhing\ Can I use --ldapbasedn=<dn> to select what OU ...
0
votes
1answer
53 views

How is rxkB/s and wxkB/s calculated in SAR -n DEV command?

sar -n DEV 1 1 command gives the stats rxkB/s(Number of kilobytes read from the device per second.) and wxkB/s (Number of kilobytes written to the device per second.) Is it possible to calculate ...
1
vote
1answer
60 views

Why same disk model but different capacity?

I'm trying to replace an old disk on a JBOD that I inherited. I bought exactly the same model but it seems it has a different capacity (resulting from different number of disk sectors), preventing me ...
5
votes
1answer
61 views

How to append free space from LVM volume?

I am running out of space on a LVM volume and am wondering where 10G are allocated: df -h /dev/mapper/vg0-staging 20G 19G 177M 100% /mnt/staging lvs staging vg0 -wi-ao---- 30.00g Is there a ...
-1
votes
0answers
13 views

Disable Ctrl+C in GNU screen? [migrated]

How can I disable the key combination Ctrl+C on GNU-screen? Actually I would have to get used to it, but I press Ctrl+C rather than Ctrl+A+D out of habit.
1
vote
1answer
38 views

Linux: answer arp instead of the kernel?

Is it possible to answer ARP requests in user mode instead of inside the kernel? I can create a ETH_P_ARP socket but not sure if I can completely replace the kernel strategy at this level.
0
votes
1answer
45 views

Error #224834. This directory, `/var/www/html/`, is not write enabled according to the server

I am using Amazon AMI linux. And i am using Backupbuddy plugin to migrate from another domain to new domain which is hosted on AWS. I uploaded importbuddy php file and the necessary backup file using ...
0
votes
1answer
22 views

Exception to wildcard postfix catch alias to let dovecot store email

I have configured postfix to read alias maps from PostgreSQL (virtual_alias_maps = pgsql:/etc/postfix/pgsql-virtual-alias-maps.cf ), every domain I've configured has a wildcard/catch-all rule. ...
0
votes
0answers
9 views

Preventing Exim 4 from sending mail queue reports for not very old messages

On Debian I regularly get annoying email reports like this: Subject: Exim mail queue on example.com 0m 55K 1gXPtz-0005jp-AA <user@example.om> auser@elsewhere.com Now, I ...
1
vote
1answer
39 views

Query two different DNS nameservers - one for LAN only, one for everything else

On a Debian-based linux device I need to set up DNS lookups on two different DNS nameservers - one for local domain lookups, one for everything else. My /etc/resolv.conf currently is: # Generated by ...
-1
votes
0answers
30 views

Setting up direct Ethernet connection [migrated]

I have two desktop systems, one with Windows 10 and the other one using Debian 9. All my data are stored on the linux system, whose is mounted as a network drive under Windows using Samba. I want to ...
-1
votes
1answer
69 views

linux hosts.deny ALL EXCEPT not working

I have added this line to hosts.deny file /etc/hosts.deny to allow only access to our apache server from selected address but it does not work for me. any suggestion where I am wrong? ALL EXCEPT: 192....
-1
votes
0answers
40 views

Origin IP lost when traffic comes from GRE tunnel and goes to docker container

I was having problems with DDoS attacks and had to purchase a DDoS Protection service. The service was installed by the provider, and the filtered traffic comes from a GRE tunnel. Everything is ...
-1
votes
0answers
30 views

Dovecot Replication issue

I am a Linux noob and I am trying to get Dovecot replication working between 2 servers. These are RHEL7 servers. I am using OS user accounts, not MySQL. Not using SSL. I have managed to get Postfix ...
-2
votes
0answers
26 views

Fail2ban - allow all port *80

I have no knowledge on fail2ban but I have a problem with http connection after a server reboot. I've talked with the server provider and he said that's about the fail2ban which is rejecting the ...
0
votes
0answers
12 views

using custom core_pattern, core filename get cut off after certain number of characters

I've set the /proc/sys/kernel/core_pattern to: core.%e Using %e indicates the filename of the crashed process. In our case, our binaries are named as the full URL in which they were downloaded from (...
0
votes
1answer
84 views

How to recover an ext4 signature deleted with fdisk?

While resizing an EBS volume on Amazon AWS I accidentally deleted the ext4 signature. root@server:~# fdisk /dev/xvdf Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until ...
2
votes
3answers
83 views

How to prove that time is in sync on Linux servers

I want to prove to another team that time is in sync on around 10 Linux servers. I have checked it and it looks good (ntp is setup etc). But they need some kind of validation. Developers are claiming ...
2
votes
1answer
63 views

qnap backup without creating a network share

Idea behind my approach is that crypto virusses attack every network drive they can find, if we can keep the backup drive 'hidden' than the virus cannot get to it. I have a small bash script that ...
0
votes
2answers
57 views

How to Migrate AWS EC2 Version 1 Instance to Version 2

I currently have a t2.medium EC2 instance running on AWS. I realized that I need to be able to use systemctl in my instance to correctly set up certbot. systemctl is only available on Amazon Linux 2 (...
-1
votes
1answer
40 views

How to interpret Firewall logs?

Today I have found few failed auth attempts on ssh server and I decided to check all logs for suspicious activity. Here are my router firewall logs (small part of it): Dec 12 21:24:12 kernel: DROP IN=...
1
vote
1answer
23 views

How to prevent PHP on a virtualhost/website from writing to another virtualhost's/website's directory on the same Apache server?

I want to prevent virtualhost #1 from writing or reading to virtualhost #2 without losing writing access to the www-data at all (because the applications need to write to the directory). My current ...
0
votes
1answer
16 views

Can `path` in rsyncd.conf be a file?

I would like to only allow /etc/named.conf to be synced, so if I in etc/rsyncd.conf do [named] path = /etc/named.conf and then # OPTS='-aHEXv --password-file=/etc/rsync.secrets' # rsync $OPTS ...
0
votes
1answer
43 views

How to start a jar file using systemd

I want to start java application on system boot using systemd. I tried to do by adding above scripts. But service is not starting. my-startup.service [Unit] Description=Startup [Service] ExecStart=...
2
votes
1answer
52 views

How to setup a cron job every random weekday?

As the question is fairly self-explanatory, I would like to know how to set a cronjob to execute any random weekday without using any external script. EDIT: In case people have not understood this ...
0
votes
0answers
27 views

nginx default location does not catch all

Why does my nginx proxy with configuration as below, not direct all locations not specified in the server block to what is given in the default location? server { listen 80; ...
1
vote
2answers
80 views

Get SSH port of an ec2-instance [duplicate]

In my company, we have an ec2-instance, of which I didn't have any knowledge about. My predecessor would have created that, and didn't provid any information about that. Now suddenly something ...
0
votes
0answers
18 views

Why does duplicity require the backup passphrase when deleting old volumes?

I've recently been investigating utilising duplicity to backup a server to a remote location via webdav. As part of this, I want all parties involved to have the absolute minimum permissions needed. ...
2
votes
1answer
23 views

How migrate directory ACLs when migrating apache between different VMs?

I am copying two directories from my on-prem server to apache on AWS /var/www/my_app, and /etc/httpd When I get the long listing for /etc/httpd I get the following on my local server with all those +...
0
votes
2answers
68 views

/proc/sys/net/netfilter/nf_conntrack_count extreme drop when reading /proc/net/nf_conntrack

I have very busy Web servers, and wanted to introduce some analysis to see what kind of traffic present. Namely, total number of all connections, number of time waits, established connections, udp and ...
-1
votes
1answer
122 views

Linux server fails file copy over 2.0 GB

When using RSYNC, CP or DD on Linux to a Windows SMB share the file gets to 2.0 GB of 6.3 GB and errors stating file is too large. This has started since disabling SMB1 on the Windows share. I ...
0
votes
0answers
41 views

nginx default location redirect

Is there a way of making nginx use the location / {} block, when a user types "hostname/anything-not-already-a-location" into the browser? I want to be able to type "hostname/anything" and be ...
0
votes
0answers
36 views

Jboss EAP5 fails to start on Linux

I am trying to start JBoss EAP5 server on Linux CentOs machine. However, the process gets killed abruptly and I get nothing in the boot.logs. Please find the logs below: Server Library URL: file:/usr/...