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

learn more… | top users | synonyms (1)

0
votes
0answers
8 views

AWS Cloudformation: Invalid template resource property error

I am attempting to create a Cloudformation template to configure an IAM role. As far as I can tell my JSON is 100% valid but apparently I'm overlooking something else because it's not able to be ...
0
votes
0answers
16 views

postfix mails stuck in mailqueue

I ran into a problem, I'm trying to set up postfix mail server (I'm using webmin), everything seems to work fine, I successfully connected outlook to POP3/SMTP, but as soon as I send an email, it gets ...
0
votes
1answer
11 views

sudo-like privilege management for docker containers

I want to allow a Docker container to invoke some actions on another container without granting it full privileges. An example would be a Docker container which does log rotation and reloads the ...
-1
votes
0answers
24 views

Linux iptables to forward all traffic from one port to another ip

I want to make so that iptables forwards all traffic from port 65535 to the LAN IP 10.8.0.2 How would I do that? I've tried these but they don't seem to work. iptables -t nat -I PREROUTING -i tun1 -...
-1
votes
1answer
11 views

How to forward specific packets from a machine to another machine? [on hold]

I have a network with 3 linux hosts, A, B, and C. I want to send 1,000 packets from A to B, and B should automatically forward it to C. How should I do it? B has one adapter with IP 192.168.1.100/24 ...
0
votes
0answers
11 views

OpenVPN server to forward traffic to client

I've set up OpenVPN on my Debian server. I want all traffic that goes on the OpenVPN server on port 65535 to route to a client's port. The client is connected to the server using OpenVPN. But the ...
0
votes
1answer
9 views

using umask to set default file settings [duplicate]

I am setting default umask of linux box for the first time. I log in as root user on a Centos 6 server. I want these default values: owner: read/execute/write (7) group: read/execute (5) other: ...
0
votes
0answers
6 views

Force nproc ulimit on non interactive user

I have a script that can be launched n times at the same time through php-fpm. php-fpm pool is set to run under a certain username and I want to limit the number of processes this username can launch. ...
-1
votes
1answer
36 views

Server under attack [on hold]

I've got a DigitalOcean Debian server. And since yesterday the CPU has been at 100%. I use it for testing at the moment. I'm a newb with servers, so really got no clue what to do. Can someone ...
2
votes
1answer
23 views

CentOS: After Kernel Update system does not boot (/dev/md2 does not exist)

after doing a kernel-update (only via yum update) my centOS 7 (64bit) does no longer boot. I now booted into rescue-mode and tried to mount /dev/md2 - this worked fine: Any ideas what I could do ...
0
votes
1answer
28 views

Outgoing spam from postfix using my domains

I get a lot of spam outgoing from my server which uses fake emails but real domains (that are hosted on my server Linux Debian Squeeze). These all have "msg" plus a random number as Email address. ...
-1
votes
2answers
17 views

Unable to install asterisk-core on centos x86_64

I try to install on a linux Centos x86_64 a library named asterisk-core-11.20.0-1_centos6.x86_64 which not found the library libsrtp.so.0 present at the path /usr/lib/64. the error is: Error: Package:...
-1
votes
1answer
17 views

How to setup NGINX to store multiple sites on the same domain?

I have domain exampledomain.com with NGINX, it works. I have folder for static HTML/CSS/JS projects (SPA or MPA): /home/user/www. This folder contains 2 subfolders: project1 and project2. I want that ...
1
vote
1answer
31 views

Getting my server maintenance script right

I have two routine postgresql maintenance tasks that require deletion of aged rows from certain tables of my web application. Both take ~1 hr to complete, respectively. Currently, each of these ...
-1
votes
1answer
9 views

Cannot chroot mounted volume to reset root password ( hangs )

I am trying to reset the root password on my instance. I boot it in rescue mode and mount the primary disk. fdisk -l sudo mount /dev/sdb1 /mnt sudo chroot /mnt The prompt just hangs here and it ...
0
votes
1answer
12 views

remote script execution from local script linux doesn't stop for remote script prompts

script abc.sh is on machine M1 and xyz.sh is on machine M2 script abc.sh: #!/bin/bash ssh -l user1 host.com ./xyz.sh -b1 arg1 -b2 arg2 script xyz has certain user prompts like pwd etc When I ...
-2
votes
1answer
16 views

Linux port forwarding that automatically tries to establish a connection to the far side while keeping the originating side waiting

I've been playing around with port forwarding for web servers What I'm looking for is a way to forward the port in such a manner that even if the connection to the forwarded port is down for a moment,...
0
votes
1answer
17 views

How to view dnsmasq client MAC addresses dynamically?

If I have already known the client IP, I know there's /var/log/dnsmasq.log and it contains logs such as Jun 13 12:22:42 dnsmasq-dhcp[499]: DHCPACK(wlan0) 172.24.1.110 34:12:98:11:80:bd ones-iPad ...
1
vote
0answers
14 views

old tape backup using xfsrestore

I have some old tapes that were backups to servers from an old irix machine. I need to get the data off of them and I know they were written to the tapes via 'xfsdump'. I'm running ubuntu 14.04 server....
1
vote
1answer
14 views

OpenLDAP debugging logs

I have OpenLDAP version 2.4.40 which is being cross compiled for a different (proprietary) target. This has been in place and working fine for many years but now I find myself needing to get some ...
0
votes
1answer
13 views

Docker : container by app with LAMP included or LAMP container only?

I have server with 20/30 sites to hosts and I would like to use Docker containers for scalability, maintenability and security. After few searches, I found 2 approaches : one container per ...
0
votes
0answers
8 views

How to update GCE instance management services

What are the services on Linux (CentOS) that communicate with the Google Compute Engine (GCE) infrastructure to configure and manage a VM (SSH keys, for example)?  These don't seem to be updated with ...
1
vote
2answers
20 views

How do I include the password for the user 'postgres' in a maintenance script?

I'm setting up a cron job to do some routine maintenance for a postgresql database. The script is as follows: #!/bin/sh dbname="dbname" username="postgres" psql -d $dbname -U $username << EOF ...
0
votes
1answer
29 views

How to authenticate clients trying to access my website via my external IP address?

I have made a ruby on rails app which is running on 0.0.0.0:3000 I have also forwarded the port 3000 on my router so that it is accessible remotely via the internet. So, I can view the webapp by the ...
0
votes
0answers
8 views

Not getting gigabit on my office ethernet [migrated]

I've got a new fiber based internet connection and new gigabit router (ZyXEL Wireless VDSL2 Gateway) whereas my old router was only 100Mb/s. My desktop computer is in my office in a 4 years old ...
0
votes
0answers
22 views

Openvpn tap interface configuration gets self assigned IP

I have a strange misconfiguration on my openvpn tap network. Clients can connect and get there IP address in 192.168.42.x as intended, but after few seconds another address gets assigned to it, self-...
0
votes
0answers
25 views

Web server got compromised (What to do next?) [duplicate]

My webserver got compromised (I think). The last 3 days inbound traffic spiked up to abnormal levels, in 3 days +/- 2.5TB of bandwith got used. when reading my access logs I see thousands of requests ...
-1
votes
0answers
15 views

/etc/group overriden after reboot

For my server Centos7 in google cloud I've tried to modify user and add him to docker group with usermod -aG docker dev. Everything works until a reboot occurs. After reboot user is no longer in ...
1
vote
1answer
45 views

Unable to install on a Centos 6 the library “libsrtp”

I try to install on a Centos 6 the library "libsrtp" but it expects the below libraries already present under these paths /lib64 and /usr/lib64. could you please tell me how can I resolve this ...
0
votes
0answers
12 views

What does the sendmail daemon do exactly when it receives a kill -15 (SIGTERM) request? How does this effect messages that are in transit?

Can someone elaborate on what would happen if the sendmail daemon is in the middle of processing a message when it receives a kill -15 request? Would it finish processing whatever message it's working ...
0
votes
0answers
16 views

IRQ changes when trying to virtualize with PCI Passthrough KVM.

While trying to test PCI passthorugh in a KVM machine... I have an odd behavior. I made sure the PCI bridge and device are on an IRQ alone. The card is a Digium TDM400P. LSPCI: -[0000:00]-+-00.0 ...
-1
votes
3answers
33 views

How to get list of all the hostname / DNS of the Linux box

I have a Linux box and I know I can get the list of IP addresses assigned to that box using following command /sbin/ifconfig -a but how to I get the list of hostnames / DNS for that Linux box using ...
-2
votes
2answers
28 views

Internet Accessible Private Cloud [on hold]

I am attempting to setup a private cloud server (using a Debian VM) that is accessible to myself and a few friends over the internet. I have a domain name, however I do not have a public IP or access ...
0
votes
0answers
4 views

Installing F-Secure with amavis on fedora

I've installed the downloadable trial version of F-Secure for Linux (installed on fedora) and it appears to be running properly. However, amavis doesn't seem to be able to control it. Jun 22 22:17:56 ...
0
votes
1answer
26 views

Unable to disable transparent_hugepage/defrag to never in centOS 7.2

I am following this link, https://docs.mongodb.com/v3.0/tutorial/transparent-huge-pages/ I am getting the output cat /sys/kernel/mm/transparent_hugepage/enabled always madvise [never] cat /sys/...
-4
votes
0answers
29 views

SSH keys rotation on multiple servers [on hold]

I am wondering how to solve over 100 SSH keys rotation on multiple servers, since I would like to keep this task as simple and as short as possible. I was thinking about using Ansible to automate ...
0
votes
0answers
17 views

Server migration with the shortest possible downtime [on hold]

If it was the same network and localization I'd simply do: 1. set up new server with nginx, ruby, rails and passenger 2. set up postgres data replication with new server as master 3. a) if load ...
1
vote
0answers
10 views

Why does reading /proc/net/tcp take a long time ss is quick to return the same sort of data about the connections table? [migrated]

On Linux 2.6.32, if you read (for example, cat) /proc/net/tcp, on a very loaded system (for example, a web server), you will find that reading 100K entries takes over 30 seconds. That's a long time. ...
0
votes
1answer
40 views

yum install error nothing to do (MYSQL, CentOS 7)

I'm trying to install MYSQL instead of MariaDB on my CentOS 7. I used this command: wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm yum install http://dev.mysql.com/get/mysql-...
0
votes
2answers
63 views

No Filesystem after deleting RAID

So I had the /home partition in two disks in RAID1, one disk failed so the system booted with lots of errors about that. I didn't have another disk to replace the one that failed, so I wanted to ...
0
votes
0answers
6 views

parallize postgres queries with bash and psql?

I'm trying to run a series of postgres functions/stored-procedures that operate on separate tables in parallel using bash + psql as follows: psql -d samples_20160612_0616 -c "select insert_function('...
1
vote
1answer
24 views

systemd service shuts down on its own

I have a problem with this SystemD service: [Unit] Description=RTC Client Services After=rds.service Requires=rds.service [Service] User=USER Group=GROUP PermissionsStartOnly=true RuntimeDirectory=...
0
votes
0answers
11 views

Cannot create macvlan interface, why?

My linux (debian jessie, 4.6.0-0.bpo.1-amd64 #1 SMP Debian 4.6.1-1~bpo8+1 (2016-06-14)) boxes have a number of modems and mifis connected. I would like to split off some of the processes in the system ...
0
votes
1answer
40 views

EC2 and Apache HTTPD no access via IP but via DNS name

I have some trouble with my EC2 instance. I have a normal Amazon Linux with the standard Apache HTTPD. My problem is that I can't access the HTTPD via IP address (e.g. http://123.123.123.123/), but ...
0
votes
0answers
30 views

joint two conditions in bash script

I have this conditions in bash script (bin/bash) .sh iptables for mac in `awk -F";" '{print $2}'` file1.txt; do rule 1 done and the second part: for ip in `cat file2.txt`; do if echo $ip | ...
-1
votes
0answers
19 views

how to setup LAMP stack on linux server [on hold]

I've never ever worked with VPS but now I got one. i connected to the server and run command for finding the os version but i got this Screenshot of putty console: so I want to install LAMP stack ...