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

learn more… | top users | synonyms (3)

2
votes
2answers
82 views

/bin/sh: difference between variable and direct command

Imagine i have following bash script: #/bin/sh #next line will work correctly, outputting user name and current directory start-stop-daemon --start --exec /bin/su -- root -c 'whoami; ls' ...
0
votes
1answer
35 views

linux + mount from local dir [closed]

in my Linux machine I run the following command under from /usr/cti/APPS directory cd /usr/cti/APPS mount -t nfs $server:$target_dir /mnt I want to show something very interesting I can run ...
0
votes
1answer
33 views

Binding timestamp value to a variable in crontab

I'm basically trying to declare a variable with a date() value in crontab as I will constantly be using the same date structure over and over, here is what my crontab looks like so far. php = ...
2
votes
1answer
18 views

What account does mrtg usually run as and can this be changed?

CentOS 6 / MRTG 2.16.2 I've noticed that mrtg is running as root on one of my servers and that concerns me. Is this a requirement? I didn't see it mentioned in the mrtg documentation. Can this be ...
0
votes
1answer
57 views

Multi-homed network?

I have a network with a layout like this: ******* ****** ******* ****** * SW1 * --------- * R1 * ---------- * SW2 * ---------- * R2 * ******* ****** ...
2
votes
1answer
39 views

What to do if rkhunter finds a possible rootkit?

ran rkhunter tonight, and I got this for the results: [04:17:34] System checks summary [04:17:34] ===================== [04:17:34] [04:17:34] File properties checks... [04:17:34] Files checked: 133 ...
6
votes
1answer
64 views

Restricted shell for managing files and git repositories

Think about a web hosting company that wants to let users manage files and git repositories via ssh. This includes: secure copy (scp) creating, copying, moving/renaming and deleting files executing ...
1
vote
2answers
50 views

Locked out of ssh, with no root access

So, I have configured my linux ubuntu 14.04 box for ssh on port 22 with root login via private / public key, no password login. I have iptables setup to block all incoming connections except for ...
0
votes
1answer
16 views

Java 7 or 8 is required to Run .Jar (Linux)

This is a newly installed CentOS 6.2 x86_64 I have downloaded java 8u5 RPM for GNU/Linux to run a .jar file, but I am unable to. I have removed java through terminal through the command rpm -e ...
0
votes
1answer
22 views

Tons of apache processes running on a very low traffic development server

I have a development server that is having memory problems. There is little to no traffic on this server because it is a dev environment, but apache is spawning tons of processes and using up a lot of ...
0
votes
0answers
23 views

Stop/Prevent NFS from resolving symbolic links in a share

I have an AWS instance that is running NFS. This is my exports file: /home/ec2-user/media *(rw,sync,no_root_squash,insecure) /home/ec2-user/var *(rw,sync,no_root_squash,insecure) Those directories ...
-2
votes
0answers
14 views

Please help me to choose the best server for running virtual machine [duplicate]

I would need to setup 10 Virtual Ubuntu servers for my project.I will be using the same server for couple of other purposes in future too like running SVN,JENKINS and couple of other light resource ...
3
votes
1answer
36 views

Automatically give Apache write permissions to newly added git clone files (-R g+rw)

I'm having a problem with allowing Apache to automatically have write access to an .htaccess file being pulled from a git repository. Here's my process: I'm logged in as a newly created user ...
0
votes
0answers
25 views

What is the correct home directory for my web application if web application is a subdomain?

NOTE: I did alter my ip address and the site names for privacy concerns. NOTE: The ip address in the error_logs is my office ip address. Centos 6 server Experiencing a lot of file not found errors ...
-1
votes
1answer
37 views

Message while using YUM

I alwasy get message while using yum "Couldn't use REST" root@localhost pgsql_devel]# yum repolist enabled Loaded plugins: refresh-packagekit, replace, security ...
3
votes
2answers
82 views

Importance of ha.cf file in a heartbeat/pacemaker environment?

I'm having a few issues trying to understand ha.cf and how the cluster picks up on updates. For example, when creating a new cluster, I usually: Set some default options in ha.cf on node 1 - node x ...
4
votes
4answers
199 views

Centos server keeps jumping to address instead of static assigned address

I have a headless Centos server that I've configured with a static IP address. I've disabled Network Manager, avahi-daemon etc. Whenever I restart the network it just jumps to 10.155.90.100 instead of ...
20
votes
7answers
2k views

Restrict a Linux user to the files he owns

Imagine a server setup of a shared webhosting company where multiple (~100) customers have shell access to a single server. A lot of web "software" recommends to chmod files 0777. I'm nervous about ...
3
votes
2answers
33 views

Execution order of runlevel scripts

My runlevel 0 scripts in /etc/rc0.d, which should be executed when stopping are for example K05foo -> ... K10bar -> ... K80baz -> ... S10somemore -> ... S90halt -> ... Is it correct, that the ...
1
vote
1answer
59 views

Describing `strace` command output

I have php process which could not finish for more then 2 days. root 26511 0.0 1.6 407788 27684 ? Ss Jul09 0:08 /usr/bin/php action.php This is the output from the strace command: ...
1
vote
2answers
69 views

Vmware/Linux 64 vs 32 bit

I have some old supermicro servers with over 16GB of ram in them which are still running 32bit version of linux with 2.6.x kernels and vmware on top of it. I wonder if there is any advantage of ...
0
votes
0answers
7 views

Hostname missing on Debian 7 Linode after logging in [duplicate]

Linux n00b here running Debian 7.3 on a Linode box. Please bear with me :) I haven't logged into my Linode in a while (3 months?) and when I logged in today via SSH I noticed the hostname is missing: ...
3
votes
1answer
92 views
+150

TCP connection through IPSec (Linux/Strongswan) stalls after exceeding PMTU

The backups (via Bacula) of one of my servers (“A”) connected via IPSec (Strongswan on Debian testing) to a storage daemon (“B”) don't finish 95% of the times they run. What apparently happens, is: ...
2
votes
3answers
77 views

Common login script

Few weeks ago I thought it would be a good idea to write a script which should send me an email whenever some user would log in into my server. So I came to a perfectly working script ...
-1
votes
0answers
11 views

How to decrease size of an mdraid root partition without OOB access?

I was given a server that has a root partition over the whole mdraid (ext4) and no LVM underneath. Runs CentOS 6. I have no OOB access to the server. How do i go about decreasing the size of the ...
0
votes
1answer
21 views

Grub giving Error 2: Bad file or directory when I try to locate the kernel

I'm trying to boot a VM with grub-legacy and I'm getting a grub prompt. If I run root (hd0,0) it says Filesystem type is ext2fs, partition type 0x83, but then if I do kernel /TAB it says Error 2: Bad ...
0
votes
0answers
14 views

Docker: Permission denied on folders added with ADD

I'm trying to configure a postgresql installation using docker. FROM ubuntu:13.10 ADD . /db # install postgres # ... RUN chown postgres:postgres /db -R && \ chmod 700 /db -R USER ...
2
votes
2answers
67 views

Swap memory exhausting server even site has small visitors

I have CentOs 6.5 running on a 32bit VPS host. It is running only php-fpm, nginx, and mysql. I have a site that gets on average 20 visitors per day, but I am recently getting this message from my ...
0
votes
1answer
21 views

How to let any server user modify files created by a samba guest on a public share (and the other way around)?

I have a linux server running samba with a public share accepting guest connections. Any window box on the network can edit/remove files on the share as long as the files are created by a guest (i.e. ...
-1
votes
1answer
44 views

nxdomain - host not found

I have 2 domains in the same server(Linux). (The ip addresses are only examples) server: 192.168.1.20 domain1: server1.example.com domain2: server2.example.com cat /etc/resolv.conf # ...
2
votes
1answer
47 views

Unix hosts file order

For a long time I never even noticed but I made wrong /etc/hosts configuration on many machines. The order by the manual: 127.0.0.1 localhost 192.168.1.10 foo.example.org foo ...
1
vote
2answers
36 views

Is installing multiple redis instances on the server a good idea?

As title says. I'm considering creating a state service farm using redis, and I'd like to handle multiple "regions" - that way, if a service goes down only a single region should be affected. This may ...
0
votes
0answers
14 views

Newly setup Centos 6 server, cloning from .GIT as user other than ROOT [duplicate]

Apologies for being so new and lost, i'm brand new to all of this and the more I search the more I feel I'm getting closer, but then realize i'm lost. I setup a CentOS 6 server on an Amazon E2 ...
0
votes
1answer
58 views

Did grub updating bring my server down?

I have an Ubuntu 12.04 server. Last night I installed a few updates using apt-get dist-upgrade, including grub, and rebooted. After rebooting, I couldn't boot into Ubuntu. I just get a big flashing ...
1
vote
1answer
60 views

Is it possible to use Docker or Vagrant to provision a physical machine

Currently at my work we use buildroot to provision physical machines with Debian linux. Buildroot compiles a rootfs.cpio.gz file which the machines to be provisioned pick up using PXE, runs a script ...
1
vote
2answers
49 views

Is it possible to force a linux install to continue?

I'm PXE booting a linux distro that I'd like to contain a list of packages. I have these packages listed in a kickstart file for inclusion. Some of these packages won't work with the current distro, ...
0
votes
2answers
51 views

Rotating DNS servers specified by DHCP

I've got an OpenStack cluster running with about 200 CentOS instances and I've gotten a complaint from my hosting provider that the DNS traffic is getting to be too much for their servers. To address ...
2
votes
2answers
108 views

ip route get recognizes address as anycast

# ip route get 1.2.3.4 anycast 1.2.3.4 dev eth0 src 5.6.7.8 and the question is how does it know the address is an anycast ? (which apparently is true). UPDATED: Present as anycast route: ...
6
votes
5answers
523 views

Hot spare host vs cold spare host?

We have several hosts where we have an identical hot spare host, which is patched and updated so it is very close to have to same software and config. In case of failure the network cable is switched ...
-5
votes
1answer
46 views

how to add a user on 100 servers when there is no NIS [closed]

How to add a single users in all the 100 servers When there is no centralization for adding users. What would be the best way to add users in all the 100 systems
1
vote
1answer
47 views

Upgrade to Wheezy - CUPS printing to lpd printers is 6x slower

We have Debian Squeeze 32-bit servers that print PDFs to Xerox DocuColor printers. The PDFs are processed in about six seconds. We are in the process of upgrading our servers to Wheezy 64-bit. We ...
1
vote
1answer
45 views

How do I setup a runit service in Centos which is initially stopped

I have a service called 'hello' which I would like to run on CentOS release 5.8 (Final). However I would like it to be initially stopped. The service is a runit service which looks like this ├── ...
1
vote
3answers
71 views

How to find out the cause of linux server crash after rebooting

Here is the deal, come to work only to find out one server isn't responding at all, the machine is turned on, but the screen doesn't show anything att all, doesn't respond to keyboard inputs (I don't ...
3
votes
1answer
42 views

Puppet: how to run an exec only if puppet has made changes

We are doing basic management of some servers via puppet - The servers themselves run as part of a clustered system that handles other aspects like user accounts etc and includes a monitoring script ...
0
votes
1answer
44 views

Allow user to bind only certain ports on Linux [closed]

Welcome, I'm looking for equivalent of mac_portacl from FreeBSD. I want to assign to one user only certain ports. Filtering it by iptables isn't enough, because when process works, the port is blocked ...
0
votes
0answers
18 views

SMART output - what's the significance and meaning of “verify” errors from smartctl -a for a HDD

Does anyone know the meaning of "verify" errors listed in the output of smartctl -a (or more precisely smartctl -l error), as well as their significance, if any, in trying to evaluate the health of a ...
1
vote
0answers
24 views

What's causing high CPU load by kjournald process?

I'm running CentOS 5.4 (Final) server as my PDC and Windows file server. Until earlier today, the server has been running non-stop for over 6-months (since the last reboot). The problem now is that ...
0
votes
0answers
16 views

how to use --rdest flag in recent table

Here is why I try to accomplish: When receiving a UDP packet, put IP address of the source address in recent table. sudo iptables -A INPUT -p udp --dport xxxxx -m recent --set -j ACCEPT When send ...
6
votes
1answer
127 views

How to handle security updates within Docker containers?

When deploying applications onto servers, there is typically a separation between what the application bundles with itself and what it expects from the platform (operating system and installed ...
-1
votes
1answer
49 views

How should I properly block outgoing http traffic with iptables

I'm experimenting with iptables, and I'm trying to allow all outgoing requests for HTTPS, but to block HTTP. I have the code below; Chain INPUT (policy ACCEPT) target prot opt source ...