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

learn more… | top users | synonyms (3)

7
votes
6answers
741 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 ...
0
votes
0answers
14 views

Centos server gave blue screen

I have a centos server that is about 3 years old. In the last 30 days I found it dead twice. Upon raising a ticket with the data center they connected a monitor and found a blue screen with random ...
0
votes
4answers
3k views

Why are my log in times taking so long in Linux?

In recent weeks, login times on my Ubuntu server have started timing out; both through SSH and the local command line console. Examination of the /var/log/auth.log files yields nothing interesting. ...
-3
votes
1answer
18 views

i need to open a port on a linux whm server

I need to open port 8080, so I added to two IPtables rules: iptables -A INPUT -m state --state NEW -m tcp -p tcp -d remoteserverip --dport 8080 -j ACCEPT iptables -I OUTPUT -p tcp -d remoteserverip ...
1
vote
2answers
47 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
38 views

Multi-homed network?

I have a network with a layout like this: ******* ****** ******* ****** * SW1 * --------- * R1 * ---------- * SW2 * ---------- * R2 * ******* ****** ...
-4
votes
0answers
22 views

How can i pass url using curl with port 8080 [on hold]

I try to pass a URL with port number 8080 using curl, but I get an error "couldn't connect to host" . curl is working fine otherwise, so how can I resolve this issue? This is on a centos whm server.
1
vote
3answers
840 views

Is there a way to list all configurable `alternatives` (symlinks for similar commands) on the system?

The alternatives command (package chkconfig) on RHEL manages symlinks which link a generic name to one of the alternative implementations. For example, mta group of symlinks can be provided by ...
0
votes
1answer
26 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 ...
1
vote
6answers
549 views

Launch script on multiple hosts at same time

So here is what i want to do. I have a perlScript.pl and a list of machines: machineA,machineB,machineC. These are linux machines that i can ssh into. I want to issue this script on all 3 of these ...
0
votes
0answers
15 views

Recommended FOSS for Linux log monitoring and alarm triggering? [on hold]

We currently have some Asterisk boxes. These boxes generates some WARNING and ERROR messages to log files in /var/log/asterisk. We need some software for active and real-time monitoring on these log ...
1
vote
7answers
3k views

Giving user read permissions everywhere (Linux)

I have a "backup" user on my server that needs to have read permissions everywhere. Doing chown 444 -R / backup doesn't seem like the right thing to do, so what should I do?
7
votes
2answers
2k views

One server, Two APC UPS on redundant power supplies : How to trigger shutdown?

I have a server racked and its redundant power supplies plugged in two APC Smart-UPS 3000 XLM. Each UPS is connected to two different mains power sources. Two instances of apcupsd are running, each ...
0
votes
1answer
9 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 ...
4
votes
1answer
24 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 ...
0
votes
2answers
35 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

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 ...
-1
votes
1answer
25 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 ...
1
vote
1answer
29 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 ...
3
votes
1answer
24 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
1answer
56 views
+50

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).
3
votes
2answers
25 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 ...
0
votes
1answer
1k views

Tomcat fails to start, no logs or error provided

I have a Centos5 box running tomcat5 (a version before 5.5, there's no bin/version.sh script). When attempting to start tomcat, whether through init.d or service, I get the FAILED message with no ...
0
votes
0answers
15 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 ...
1
vote
0answers
22 views

How to limit connections when redirecting ports using iptables

I am trying to accept incoming connections through port 80 and reject those from 8888, redirect from 80 to 8888, validate if in the last 30 seconds has connected less than 20 times and then accept. ...
-1
votes
2answers
297 views

spf record setup

Emails sent by mta from my server recognizes by spam filters as spam and there's message : Received-SPF: neutral ... Actually, I am not spammer :) So, I googled around these questions and found that ...
-2
votes
0answers
12 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 ...
0
votes
1answer
15 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
18 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
3answers
378 views

Installing Tor could be a security risk for my server? [on hold]

I am thinking about installing Tor on my server (running CentOS) but I read it has some vulnerabilities that could be exploited remotely. Could someone tell me how to configure it for maximum ...
1
vote
4answers
195 views

ssh (openSSH) questions

I have ubuntu 9.10 server. Firstly, is OpenSSH the same as SSHD? Secondly, In the terminal when typing whereis sshd i get this: whereis sshd /usr/sbin/sshd Also when typing whereis openssh ...
1
vote
0answers
9 views

Importance of heartbeat ha.cf file in a 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 ...
0
votes
1answer
33 views

Postfix how to triggering my script when outgoing email status is sent?

I want to run a program when postfix has successfully sent out a mail (local or remote). I would like to pass the headers to program and if possible also the destination ip or address (exclude spam ...
4
votes
4answers
174 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 ...
1
vote
2answers
49 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 ...
-1
votes
1answer
29 views

Regarding diskless Pxe boot [on hold]

I have used diskless PXE boot to install RHEL 6.5 in client system from the server (CentOS 6.5). I have seen the below post in this website. vi /var/lib/tftpboot/pxelinux.cfg/default default ...
-1
votes
0answers
22 views

Vsftpd upload file with www-data permission

how can i get correct permissions drwxrwxr-x on file that are uploaded with Ftpuser1 in /var/www? Actually if i create file with Ftpuser1 i got this : -rw-r--r-- 1 Ftpuser1 www-data 0 Jul 11 ...
1
vote
1answer
56 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: ...
6
votes
5answers
488 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 ...
1
vote
4answers
217 views

Linux: How to check how many lines were added to the file last second?

How can I check using Linux / Bash how many lines were added to selected log file during for example last 10 seconds ? It's one time use, not on to run in the background. File doesn't contain any ...
21
votes
6answers
77k views

add new user with root access in Linux

I want to add new user and have/grant that new user to have all the root access, how can I do that ? I did sudo adduser --system testuser but this is not working as I expected. Thanks for help.
2
votes
0answers
19 views

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: ...
9
votes
7answers
12k views

Which free open source CPanel and WHM alternatives do you recommend/use? [on hold]

I have been using webmin for some time now, however I miss the elegance and ease of WHM/CPanel combo I've had on shared hosting (and later dedicated hosting) platform. Looking around the web, all I ...
0
votes
3answers
1k views

Re-sizing disk partition linux/vm

I VM Player running a linux guest and I was wanting to know how do I expand the disk? In the VM player I gave more disk space but I am not sure how to mount/expand/connect the new disk space to the ...
4
votes
3answers
6k views

How does top calculate CPU usage on a Linux system with a single core?

How is CPU usage calculated on a Linux system with a single core? Cpu(s): 28.1%us, 6.5%sy, 0.0%ni, 43.0%id, 21.6%wa, 0.0%hi, 0.5%si, 0.2%st Please explain me how the us, sy, ni, id, wa, hi, si ...
0
votes
0answers
5 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: ...
1
vote
1answer
1k views

Error while bringing up eth1

I'm getting this error while bringing up my network card: (process:2550): WARNING **: _nm_object_get_property: Error getting 'State' for /org/freedesktop/NetworkManager/ActiveConnection/3: (19) ...
0
votes
3answers
769 views

Forward traffic to local LAN IP while keeping the originator IP

I am trying to forward traffic from one server to another, while keeping the origin requestor IP. Therefor I cannot use SNAT or MASQUERADE. SERVER A: Public IP: 111.111.111.111 Private IP: 10.0.0.1 ...
2
votes
3answers
72 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 ...
0
votes
2answers
704 views

iptables+iptables_netflow: iptables blocking netflow export?

I am running an iptables firewall on OpenSuSE 11.3 --recently I became interested in traffic monitoring and accounting, and to this end installed iptables_netflow module on the firewall and WANGuard ...