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
1answer
6 views

Automatically mounting S3 bucket using s3fs on Amazon CentOS

I have tried all the answers provided in similar questions but none is helpful. I installed S3 Fuse so that I can mount S3 bucket. After the installation, I performed the following the steps: I ...
3
votes
7answers
4k views

How do I set a password on an Ubuntu cloud image?

I'm trying to start on .ova with VirtualBox and want to import the same image later in vSphere. Ubuntu cloud images don't have a standard password anymore. I'd like to edit the .ova to configure a ...
5
votes
1answer
1k views

SSSD process won't die

Thanks for taking the time to check out my problem. I'm currently working on an issue that has only appeared once before. Back on Jan 3rd when this first appeared we were able to reboot the server ...
1
vote
1answer
21 views

Validate user inputs into a file in Linux

How can I validate user inputs into a file in a Linux system? For example, can I prevent users from entering '#' or ';' in /etc/passwd?
1
vote
0answers
16 views

Clone Centos 7 installation - MBR to GPT

I want to clone a centos 7 installation (using LVM) from a 500GB drive (using MBR) to a new 6TB HDD. I tried to use clonezilla to clone the the drives with no success. fdisk -l output from ...
6
votes
2answers
752 views

ZFS Poor Write Performance When Adding More Spindles

I am using ZFS on Linux and am experiencing a rather strange symptom that when I add more disks to the system, the speed at which each drive writes reduces, effectively negating the additional ...
1
vote
0answers
7 views

FreeIPA : new/existing accounts expired when ssh'ing into replica

I have two FreeIPA servers running on Centos 7 - one a master the other a replica. I can create a new user account on the master using e.g. the GUI and it appears on both servers, is active and not ...
0
votes
1answer
14 views

NFS client firewall settings and rpcbind

I have a server (Debian 9.6) which mounts an NFSv3 share for backup purposes. Does it need any specific firewall settings ? I have found that rcpbind is listening on port 111 and 903 and is ...
4
votes
1answer
391 views

How do I secure the access token, on Linux, to remote, automated secrets stores like Hashicorp Vault?

There seems to be a bit of a "chicken and egg" problem with the passwords to the password managers like Hashicorp Vault for Linux. While researching this for some Linux servers, someone clever asked, ...
4
votes
7answers
3k views

Dropped IP traffic with a multihomed server

(Before getting into details, I'm presenting this problem with Apache and SSH as an example, but this is not specific to TCP traffic, it is the same problem with both TCP and UDP based protocols.) I ...
0
votes
2answers
102 views

How can I configure haproxy to put two frontends to access owa online?

I am facing a problem with HAPROXY on an Ubuntu 16.04 server when redirecting to show OWA on the internet. I have a domain, and I installed exchange server 2013 on windows server 2012 r2. I need to ...
0
votes
0answers
8 views

VM: bridge connection won't work but NAT is okay

I messed my server configuration up when trying to set a port scan protection on my Debian on VirtualBox. I did it while being connected via Bridge and now I have no internet connection anymore. When ...
0
votes
0answers
6 views

CRM Cluster Manager mount of multipath devices

I need to mount a multipath device on the active of two servers managed by CRM. My problem is; on server 1 i've got /dev/mapper/mpathep1 and on server 2 i've got /dev/mapper/mpathcp1 so i dont ...
0
votes
0answers
7 views

System freezes when syslog fills up with “java: page allocation failure”

Ubuntu 16.04 x64bit kernel 4.4.0 cpu:8 , memory:31G , ZFS is main filesystem and cifs share is mounted # sudo numactl --hardware available: 1 nodes (0) node 0 cpus: 0 1 2 3 4 5 6 7 node 0 size: 32157 ...
0
votes
1answer
2k views

No space left on device: Error writing to logs/access_log

Getting the following error: [Wed Aug 16 00:31:23 2017] [warn] [client 128.250.0.204] (28)No space left on device: Error writing to logs/access_log, referer: https://... The access log file seems ...
1
vote
0answers
20 views

Need help to establish secure ftp connection from linux to z/OS FTPS server

I need help to establish secure ftp connection from linux client to z/OS host running FTPS server. From FTPS server admin I have got following information: Host IP address, port, CA certificate file ...
0
votes
0answers
9 views

Correct regex expression for the location block inorder to capture CSS and JS when the request URL changes

I have developed nginx config file order to cater some custom error pages. I have created two location blocks to capture the main index.html file and other location to capture the css/js and the ...
0
votes
1answer
42 views

Can only access the gateway at the end of my ssh ethernet tunnel why?

I have a remote private network connected to the internet via a Linux gateway. The gateway has the following arrangement: eth0 - external IP br0 - with eth1, and tap0 devices added to the bridge. ...
2
votes
2answers
6k views

Sendmail and Gmail

I'm trying to send email with sendmail. I followed this how-to: http://linuxconfig.org/configuring-gmail-as-sendmail-email-relay I tried to send the email over console: echo "Just testing my ...
1
vote
0answers
17 views

yum priority plugin does not allow to install package

I want to enable priority plugin for yum which is called yum-plugin-priorities. After that I enable and install that plugin I see that plugin is working but behavior is weird. Even I know package is ...
-1
votes
0answers
5 views

SNMPTT is not listening on port 162

Process is running and the log file shows that snmptt has started but netstat doesn't show port 162. And sending traps doesn't write to log files. Here is the log: Tue Jan 15 08:39:41 2019 SNMPTT v1....
0
votes
0answers
27 views

Apache2 doesn't start anymore

I'm running an Debian GNU/Linux 9. I installed apache2 and now it doesn't start anymore. I already tried to reinstall it. When I type following command in shell: sudo service apache2 start Following ...
3
votes
4answers
4k views

Permanently change DNS settings in Ubuntu Server

So I changed the nameserver in the /etc/resolv.conf to the DNS server I want to use, but whenever the server gets restarted for whatever reason, it reverts back to the default DNS server. How can I ...
0
votes
0answers
12 views

virtualmachine lvm reduce size KVM Debian9

I have got 4 6TB HDD's, each is divided into 5 partitions: 1) ESP - 250mb 2) raid - rootfs 14gb raid1 3) swap - 5gb 4) raid - 70gb raid1 LVM's for VM's 5) raid - 16tb raid5 LVM for storage And ...
5
votes
1answer
458 views

Samba (CIFS) mount error(9): Bad file descriptor

I had successful connections from my main workstation PC (which uses Fedora 29 Workstation) to my mother's laptop (Windows 7 HP) network share few times using mount.cifs, but since not too long it has ...
6
votes
6answers
6k views

Which metric should I use to determine when a server is low on memory?

There are numerous (hundreds?) of different measures for memory usage on a Linux machine, but what is a good heuristic/metric to use to help determine if a server needs more memory? Some ideas: ...
49
votes
4answers
105k views

How to check if an RSA public / private key pair match

I have two files, id_rsa and id_rsa.pub. What command can be used to validate if they are a valid pair?
3
votes
3answers
11k views

How to write to a tape using hardware compression on Linux?

I have an LTO-4 tape connected to a Linux host and Linux creates all the usual devices for this tape as follows: /dev/nst0 /dev/nst0a /dev/nst0l /dev/nst0m /dev/st0 /dev/st0a /dev/st0l /dev/st0m I ...
7
votes
2answers
4k views

Network Manager: failover between two default gateways

Is Network Manager able to check if a default gateway can route packages to the internet? I have two interfaces, both provide a route to the internet. When I unplug a cable from any of them, default ...
8
votes
3answers
19k views

Putty Kerberos/GSSAPI authentication

I configured a few Linux servers to authenticate with Active Directory Kerberos using sssd on RHEL6. I also enabled GSSAPI authentication in hopes of passwordless logins. But I can't seem to get ...
1
vote
1answer
1k views

Understanding postgreSQL's ident, md5, password in pg_hba.conf

If I have the following in my pg_hba.conf # TYPE DATABASE USER CIDR-ADDRESS METHOD local all all trust local all all ...
0
votes
1answer
1k views

CISCO UCS servers and linux

I've been given a CISCO ucs server to use (for a job a raspberry pie could do) with a LSI MegaRaid card in it (4 sas drives) and I'm having no luck at all getting Linux to boot off the RAID thing. It ...
1
vote
0answers
10 views

Network cards supporting PTP one-step-sync

We currently want to setup a PTP Grandmaster using ptp4linux on a Linux host. The slave devices rely on PTP one-step-sync but we haven't found any purchaseable network card on the marked which has ...
2
votes
2answers
2k views

OpenVPN Python plugin

I have a task about authentication OpenVPN users using database which is located on remote server (not a host with OpenVPN server instance). And we use Python as main language for all our tools. ...
1
vote
0answers
10 views

Show bindfs target

When creating a FUSE mount: bindfs -u joe -g users -r /files /home/joe/files After the mount is done, what command can I use to see the target? Eg, how can I see that /home/joe/files points to /...
2
votes
1answer
33 views
+50

Debugging and fine-tuning the linux process scheduler

When debugging sporadic web application slowdowns, I've found that all the processes have quite high maximum scheduling delay. # perf sched record -- sleep 10 && perf sched latency --sort max ...
0
votes
2answers
1k views

Could not chdir to home directory /home/Me: No such file or directory

On a daily basis, I interact with 10s of productions servers which do not, and should not have a home directory for my personal user. Every SSH session is met with the same error message: Could not ...
0
votes
1answer
20 views

date: invalid date trying to set linux date in specific format

i try to set linux date & time in specific format but it keep giving me error Example : date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" or date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:...
0
votes
0answers
9 views

Auto-detect and notify remount-ro on Raspberry Pi

I'm writting a kind-of a file system UI for Raspberry Pi and I need to monitor changes in mounted partitions so I can reflect them in the UI. By accident I got a flash drive for testing that has a ...
0
votes
0answers
24 views

debian 9.5 strongswan IPSEC Routing

I'm a Linux-Noob but i'm trying to Setup a VPN-Connection between a Linux-machine and a Zyxel USG 210. The VPN-Connection Comes up (happy) but the traffic seems not to be routet correctly. the Linux-...
5
votes
5answers
21k views

NTP local query always times out

I have a CentOS 6.4 server, it does not have any iptable rules, it runs NTP daemon as service using the following configuration: driftfile /var/lib/ntp/drift server 0.pool.ntp.org server 1....
0
votes
1answer
529 views

Run FreeRADIUS on FIPS enabled Redhat server?

I'm attempting to install a FreeRADIUS server on a RHEL 6.9 VM. This VM is operating in FIPS mode. I'm running into the problem described in a Red Hat bug report found here. According to that bug ...
0
votes
1answer
2k views

nginx listen on specific interface

I'm running a Nginx as a proxy server, forwarding to 10.12.96.4. I would like the NGINX server to listen on ens3:, and forward requests through `tun0 Here is my /etc/nginx/sites-available/default: ...
0
votes
1answer
24 views

Netstat not displaying the process id [on hold]

I'm currently analyzing why my server making thousands of connections to own port 80. So I hit the below command: sudo netstat -tnp 2>/dev/null | awk '{print $5" "$7}' | grep 194.48.152.123 | awk '...
0
votes
0answers
9 views

Adding custom decoder to “sshd” group in OSSEC

I'm using OSSEC and try to write a decoder for a log entry: Jan 13 19:21:54 example.com sshd[19725]: error: Failed to allocate internet-domain X11 display socket. The decoder: <decoder name="...
0
votes
0answers
12 views

Cannot mount GFS2 filesystem on Raspberry Pi with DRBD [on hold]

I've been trying to setup a pair of Raspberry Pis with DRBD+GFS2, in a dual-primary configuration. I've successfully got working: all packages installed DRBD userland packages built from source and ...
0
votes
1answer
11 views

Ceph Erasure Profile with k+m> 6 disks -> PGs to be stuck on creating+incomplete state forever

So my pools has 5 nodes with 12 osds each of 8tb. Currently I am trying to create an erasure coded pool of k=8 m=2, however after adding this profile and create an ecpool with this profile the pools ...
0
votes
1answer
1k views

PPTPD nic configuration and default gateway

I have a Ubuntu 10.04 server with PPTPD server. It has one nic with eth0 and eth0:0. eth0:0 has an UK IP and eth0 has a Franch IP. I have setup eth0:0 as default gateway because I want to show that ...
0
votes
1answer
1k views

User ldap cannot change password : LDAP password information update failed: Insufficient access

I'm using centos 6.7 to create LDAP server, but the user still cannot change their own password. The error when user try to change the password : [john2@servergw ~]$ passwd Changing password for ...
1
vote
1answer
2k views

Windows NFS client keeps writing read-only with on NFS server with squash_all

We have a Debian 8 with an NFS server exported with "/client-share *(rw,sync,no_subtree_check,all_squash,anonuid=1000,anongid=1000)" that works just fine when transferring files from a Windows ...