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.

1
vote
3answers
77 views

Can I create a compressed loop-device filesystem that can expand to fit the data size?

I have large numbers of small log files that are essentially write-only, unless I have to look at them for some reason. Right now, they accumulate in day-specific subdirectories in a logging folder (e....
0
votes
1answer
33 views

“stat” says “permission denied”, even though all the permissions are in place

I have this: ls -al /home/my_user/dir1/dir2/file1.txt -rwxr-xr-x 1 http http 2798 Dec 30 18:18 /home/my_user/dir1/dir2/file1.txt However, I can't stat it: sudo -u http stat /home/my_user/dir1/dir2/...
1
vote
0answers
23 views

Direct peer connection cannot be established in Zerotier

I have two boxes with ip addresses 10.61.3.88 and 10.170.130.31. Both are directly accessible to each other and ports 9993 are telnetable. However, neither could see the other in the list of zerotier-...
-1
votes
0answers
18 views

Apache/mysql not starting on ec2 instance - chkconfig set to on levels 2,3,4,5 [on hold]

On my ec2 amazon linux instance, despite chkconfig --list showing levels 2,3,4,5 as on for both myqld and httpd neither are starting when the instance is booted. Can anyone suggest something else I ...
0
votes
0answers
74 views

How to prevent 416 and 206 when creating mp4 files on the fly

I have a site that uses multiple servers - main, database, images, ffmpeg/video files. The main server uses wordpress that has a front end form which users use to create posts. They can choose a ...
0
votes
0answers
26 views

Samba share gives The network path was not found

I have a problem with a samba share on a Linux server. When I try to open the share in Windows with \\server_name\share then I get an error: Windows cannot access \server_name\share Check the ...
0
votes
0answers
15 views

ldapwhoami returns invalid credentials

my ldap configuration (/etc/openldap/slapd.conf) file is as follows include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/...
0
votes
0answers
48 views

Routing traffic between two subnets

I am connecting some number of embedded linux devices to a main LAN using a DHCP server and routing tables. On the main LAN (192.168.1.0/24) I have a PC connected and the first embedded linux device. ...
2
votes
2answers
81 views

Achieving very fast (300+MB/sec) file transfer on Linux

I'm working with high end hardware, however I'm hitting cpu bottlenecks in all situations when attempting to move large amounts of data. Specifically, I'm moving large virtual machine image (VHD) ...
0
votes
0answers
44 views

docker rm,exec, rmi commands are in hang state

I am facing the issue with docker since couple of weeks. Some of docker commands like rm, rmi, exec are not working, while, commands like ps, images are working fine. I tried - docker system ...
0
votes
0answers
33 views

Make linux redhat as a inline transparent gateway

We want to make a redhat server with two networks card acting as an inline transparent gateway. We want simply that all card1 traffic to be forwarded to card2 and card2 to card1. Card1 traffic can ...
1
vote
0answers
23 views

curl to https significantly slower than wget on centos7

Versions in question: Centos 7 Curl 7.63.0 (x86_64-redhat-linux-gnu) libcurl/7.63.0 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.31.1 I've got some strange behaviour ...
0
votes
0answers
26 views

Echoing from /etc/init.d script on Debian

Problem: /etc/init.d scripts like exim4 do not echo to console until the script finished execution. (I had to modify the script, because there is no systemctl's service file for Exim 4 on Debian 9....
0
votes
1answer
44 views

how to use symlink with different “base” (nginx)

I have chroot environment with Apache and some website. Outside of the chroot I have nginx that forwards the requests to the Apache. However, there are some directories that I want nginx to serve ...
-4
votes
1answer
30 views

Unable to find Nginx (centos) [closed]

i am trying to uninstall nginx in centos 7 , i have tried following commands Yum uninstall nginx also tried "sudo systemctl stop nginx.service" this stop services but did not work for me. i have ...
2
votes
1answer
44 views

sysctl vs writing directly to /proc/*

On a typical linux machine you can change kernel configuration by modifying the files located at /proc/*. For example, for the IPv6 accept_dad parameter of a specific network interface (say, eth0), ...
0
votes
1answer
13 views

shared_id/~username is showing 404

when I'm trying to access my site it works fine with http://domain_name/ but when I'm trying to use it with http://ip/~username it goes to 404 page. Do I need to do some additional settings in WHM or ...
0
votes
1answer
26 views

Wild card ssl on Apache CentOS 7

I have purchased WILDCARD ssl certificate from godaddy. I've used this certificate to couple of servers without generating csr. Now i have a question. Can i install this existing certificate to the ...
3
votes
1answer
30 views

Not sure how to read lsattr output, where can the legend be found?

When I run the lsattr command, I get the following output: root@swarm-stg-01:/etc# lsattr timezone --------------e--- timezone But I don't understand how to read he output and man command doesn't ...
0
votes
0answers
4 views

Epson Workforce 845 all in scanner one does not come up under Linux or Win10 [migrated]

Apologies if this is the wrong forum, but this is a Linux administration question, though not an official server. I’ve spent over twelve hours scrubbing the internet for something that works. Ideas on ...
0
votes
0answers
12 views

Create a bootable VHD from a single Linux partition

I have a Linux partition on a physical drive. It uses EFI to boot. I would like to move this OS to Azure therefore I am trying to create a bootable VHD. I do not want to create a VHD of the whole ...
1
vote
1answer
55 views

How to start binary file from Systemd service

So, I have start.sh file to start imagecache service. And I have executable binary file "imgproxy" and I need start it and pass to it two parameters like as text file. Body of start.sh file: export ...
0
votes
1answer
62 views

Record ssh REMOTE_USER in audit or history logs

In our company we usually have a single production user user and we ssh to our servers via pasword-less login with ssh keys. Now, quite a few people work on those servers and sometimes we need to ...
1
vote
2answers
46 views

Nginx shuts down every 3 months because of the same failed binding error

I am running a Symfony website on a server, using Nginx configured with Let's Encrypt. Everything goes fine when I start the server (always with sudo service nginx start / restart) But every 3 months,...
3
votes
1answer
74 views

Configuring Sudo using SSSD

Trying to Login to Linux systems using windows AD account. Configured successfully using SSSD. Used LDAP as Identity & Access Providers and Kerberos as the Authentication provider. I have done ...
0
votes
0answers
23 views

Disabling systemd messages that interfere with running BASH script

How can I disable systemd messages that pop up in my BASH script once in a while (for example, after I login to the machine via SSH from somewhere), like in the screenshot below ? The BASH script uses ...
0
votes
0answers
24 views

ssh and scp are using different directions for ssh config files

So when I connect to the server via ssh it is reading my users ssh config. When I use scp to connect something to the server it is using the config under /etc/ssh/. Where I can set the path for ssh ...
0
votes
1answer
23 views

iptables blocking traffic when set to accept for interface

I am setting up a vm to use the tor network. I have configured it with 2 network cards : # ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.8.92 netmask ...
0
votes
0answers
28 views

“Failed to start Raise network interfaces” for bridge br0 even though br0 exists

I have setup two bridge devices on Debian 9.6 box and systemctl status networking.service claims that bridge br1 was not set up, even though after booting it's actually just fine: % systemctl status ...
-1
votes
0answers
19 views

I have “warning: restriction `reject_authenticated_sender_login_mismatch' ignored: no SASL support”

I'm using Postfix with Dovecot and Postfix. Domains and usernames are stored in a db. In order to send email I have to authenticate. However, sometimes I receive spam from my own email - sender and ...
0
votes
1answer
24 views

How to delete a snapshot not seen with virsh but can be seen with qemu-img info?

[msingh@centos images]$ qemu-img info IE11-Win7-VMWare-disk1.qcow2 image: IE11-Win7-VMWare-disk1.qcow2 file format: qcow2 virtual size: 40G (42949672960 bytes) disk size: 82G cluster_size: 65536 ...
4
votes
0answers
40 views

Why does the same Java service use up to 4x the RAM when running 1 core vs 2 cores

I have an Ubuntu 18.04 VM image that runs a Java 8-based server process. When running on a single core EC2 t2.small instance (2GB RAM) it starts with an RSS of 432M. Running the exact same server ...
0
votes
1answer
71 views

Unable to mount a RAID 5 volume

Evening all, Total n00b when it comes to Linux, I use Xpenology (Synology) as NAS software and following a faulty SATA cable lost my RAID 5 volume - within the OS it's sat in a crashed state. ...
0
votes
0answers
17 views

Redhat Fedora 29 on Proliant GL360 G7 server won't boot. Gets stuck at boot screen after install

Install seems to go fine until I get a grey screen after install. Its as if it can't actually launch. I have tried from a DVD and from a bootable USB drive. I have read about a possible RAID ...
0
votes
0answers
18 views

Editing /boot/grub/grub.conf not recommended - yet how do you then change entries?

For example, our /boot/grub/grub.conf looks like this: ## ## End Default Options ## title Debian GNU/Linux, kernel 3.2.0-4-amd64 root (hd0,0) kernel /boot/vmlinuz-3.2.0-...
0
votes
0answers
28 views

DHCP, VLANs, APs and IP assignements

I have a debian-based isc dhcp server, that works as router/firewall too. I configured a Cambium cnPilot 610 to broadcast 2 SSIDs. Each SSID is associated to a different VLAN. So, in the port where ...
-1
votes
1answer
19 views

Fail2ban without proactive mode

Is there any way to configure Fail2ban to just log suspicious activities without change my firewall rules?
0
votes
0answers
28 views

Failing to connect trough SFTP

I have a VPS with Ubuntu18 with vsftp installed. And I have a client-side MacBook HighSierra. Just recently installed the VPS, and since I'm new to networking I used this tutorial to configured it - ...
0
votes
1answer
24 views

Ubuntu 16.04 installer: any way to save setup info for a preseed?

Is there a way to save my setup selections from a regular CDROM install for use as a preseed or kickstart file? I'm experimenting with booting hosts from PXE to standardize Ubuntu installations and ...
2
votes
0answers
19 views

Restricting user access to a subset of binaries

I checked rbash and chroot jail, which doesn't have permission to read /var/log. Scenario: ssh user should only able to cd to a directory and do less for files. eg: ssh user@server.com cd /var/...
0
votes
0answers
4 views

LFS (Linux From Scratch) hard disk partition requirement [migrated]

I am going through the LFS documentation in order to build my flavor of firmware for our systems. Currently my host machine is Ubuntu 18.10. I have 2 hard drives /dev/sda and /dev/sdb. My Ubuntu ...
0
votes
1answer
32 views

Reconnecting secondary DRBD node

I have set up test DRBD installation succesfully, with switching, synchronization etc working correctly. But I also wanted to test the reliatbility of the setup, so I gave it a good "trashing" like ...
0
votes
0answers
7 views

Nginx Workers auto vs mentioning a number

Have been figuring out the right number for worker_processes and even though there has been some progress while mentioning custom value. A recent event has made me the question - What would be the ...
3
votes
2answers
626 views

Please help interpret OOM-Killer

We were testing our java application and it was killed by the OOM Killer, logs below. A couple of points: this is a java web application. It runs with a 190G heap. The server is a 240G total memory ...
0
votes
0answers
8 views

Linking qdisc rules to an IP address

I am having trouble traffic shaping specific IP addresses using the HTB algorithm. I saw tutorials online about applying qdisc rules to specific devices and they all uses a command similar to what I ...
0
votes
1answer
19 views

Issue with configuring internet gateway on Debian server

VM2 connected to internet gateway (VM1) cannot access internet (VirtualBox) I have installed VirtualBox VMs on my Linux (Ubuntu) which has wired internet connection. I want to connect my VM2 (Server ...
0
votes
0answers
34 views

Duplicity /etc/ backup locked files issue

I am supposed to make System-Backups of the linux servers my employer is running. I tried rsnapshot and settled for duplicity, as it seems to be updated more frequently. I need backups of /etc/, /bin/...
0
votes
0answers
22 views

Routing trafffic from vpn tunnel source to other interface

We have five interfaces in the server. I would like to route traffic from IP 10.8.0.150 behind tun0 to 10.130.219.68 behind interface em2. I have enabled port forwarding and done IP tables rules ...
0
votes
1answer
59 views

Trying to set up cron job

I want to run cron job every night at 1am and after that every 3 hours from morning 10am-6pm only. 0 1,10-18/3 * * * Is this the correct format?
0
votes
0answers
32 views

OperationalError: FATAL: no pg_hba.conf entry for replication connection from host

I'm trying to build a Postgres HA Cluster with Postgres 11, patroni and etcd. I have it pretty much working other than the error in the title. The patroni config section for the pg_hba.conf looks ...