4
votes
1answer
62 views

Is there a streamlined way to export settings from an existing CentOS 5.10 server for local Vagrant provisioning? (Puppet, Chef, shell, or otherwise)

I've recently started the process of learning how to use Vagrant for spinning up a local development environment. (after getting frustrated with the various WAMP stack options) Vagrant is great so ...
0
votes
4answers
186 views

cron job executing script [duplicate]

I have created a script that works as expected in shell but cron job does not seem to run it. when I check my cron mail, I see that it prints "hltv is not running" but does not create a screen ...
1
vote
2answers
197 views

permission denied in running script

I am running a script but there is an unusual warning: This is what happened in my console #whoami root #ls -l test.sh -rwxr-xr-x. 1 root root 1894 Feb 2 01:58 test.sh* #./test.sh -bash: ./test.sh: ...
0
votes
1answer
19 views

Unable to send command to newly created screen?

screen -dmS SIEGE_01 sleep 1 screen -S SIEGE_01 -X stuff "cd /home/ss12036/ImpulseNetwork/Servers/SIEGE_01/"`echo -ne '\015'` sleep 1 screen -S SIEGE_01 -X stuff "sh Start.sh"`echo -ne '\015'` ...
3
votes
0answers
116 views

Security Warning: Enable “Jail Apache” in the “Tweak Settings”? [closed]

I have VPS running WHM on CentOS 6.5 and I have root access. A security warning appearing in the Security Advisor. Warning: Enable “Jail Apache” in the “Tweak Settings” area. I entered the tweak ...
0
votes
1answer
91 views

Transfer used ram to swap and free more physical ram

I have a vps with 256m physical ram and 512m swap space, I am trying to use a software that need more than 256m and less than 512m ram, so it uses swap. The problem is at some moment of the ...
-1
votes
1answer
182 views

Cacti Export Tool Script [duplicate]

I'm looking for any script that possible to export graph of Cacti into CSV/text format. I have several interfaces in different devices, so I want to export those graph by using cron's job for sending ...
1
vote
2answers
53 views

enabling shell access for cyrus user

My current cyrus user in /etc/passwd looks like this: cyrus:x:76:12:Cyrus IMAP Server:/var/lib/imap:/sbin/nologin I want to be able to give it shell access but restrict it to /var/lib/imap and ...
-2
votes
1answer
3k views

Cannot find a valid baseurl for any repo in centos 6.4

when I want to install any repo I found this error Error: Cannot find a valid baseurl for repo: rpmfusion-free I'm using centos 6.4 I tried to check other packages I found the same error ... so ...
1
vote
1answer
601 views

could not stat config file “slapd.conf” to add entries to LDAP

I got a problem when I adding some entries in LDAP slapadd -l /etc/openldap/root.ldif -f slapd.conf -d 10 slapadd -l /etc/openldap/people.ldif -f slapd.conf -d 10 slapadd -l ...
1
vote
4answers
199 views

move files from one device to another

I am trying to automate a remote backup on our centOS server, I run the current command : nice -n 10 mv -vfb /media/localbackup/* /media/remotebackup/ however when this is ran I get the following ...
2
votes
1answer
116 views

Where is $HOME set in Centos 6.3

WHere is the $HOME environment variable set in Centos 6.3? I've looked in: /etc/profile /etc/profile.d/* /etc/bashrc ~/.bash_profile ~/.bashrc Also, the second to last column in /etc/passwd has ...
0
votes
1answer
175 views

Shell - Fix 80 column wrap limit

I have several Centos servers that enforce an 80 column limit when I ssh into them, rather than being dynamic and going to the width of whatever shell I am using as seen here: . Is there a way to ...
0
votes
1answer
189 views

Mysql select query not generating result on cron but is ok via terminal

We have a C program (source is below). We compile it with: gcc -Wall -Wextra -g $(mysql_config --cflags) get1ReceiveSource.c $(mysql_config --libs) -lrt -o get1Receive The select give results ...
1
vote
2answers
152 views

Making a user account dedicated to a single script in centos

I am trying to make a SSH login for someone on my box. But when they login I want it to auto load a perl script and for them ONLY to be aloud to see / use that perl script. I only know how to use ...
1
vote
0answers
165 views

Launching a jar file using shortcut in CentOS [closed]

I am trying to launch a jar file using a shortcut from desktop but it never works. Can you give me some idea how to do it? Here is what i am doing: I create a Launcher and in it's properties set: ...
2
votes
2answers
424 views

Cron not running CentOS

What am I doing wrong here? Trying to set a cron job to run a shell script but it won't work. I entered the below after doing crontab -e. It does show up when doing contrab -l. 0 2 * * * root ...
3
votes
5answers
4k views

run script as another user from a root script with no tty stdin

Using CentOs, I want to run a script as user 'training' as a system service. I use daemontools to monitor the process, which needs a launcher script that is run as root and has no tty standard in. ...
2
votes
2answers
400 views

Change shell on Cent OS 5 to rssh: “Shell not changed”

I installed rssh on CentOS 5 from RPMForge. Then I tried to change the shell to rssh to one existing user like this: [root@ddinvps ofertoza]# chsh -s /usr/bin/rssh ofertoza Changing shell for ...
0
votes
0answers
447 views

CentOS 6.2 Hangs on Boot, /bin/sh: error while loading shared libraries

I have a Dell R310 server. Installed CentOS 6.2 (minimal) and it won't boot. It hangs at the following error. /bin/sh: error while loading shared libraries: /bin/sh: supported version 25416 of ...
1
vote
1answer
2k views

use sed in shell script to replace IP Address in a file

I have a script that finds a string in a file replaces it with a new string. $ sed -i 's/$old_string'/'$new_string'/g' $FILENAME Now I need the condition to be a regular expression that also check ...
2
votes
2answers
560 views

Can I change the ownership of all the files of a specific user?

Is there a way to recursively find all files owned by a user and change them to another user/group in Gnu/Linux? I assume there must be some magic one liner but my command line wizardry skills are ...
1
vote
4answers
88 views

Cancel shell command line recall

Pressing arrow key up will recall the command you have used before in shell. But what would you do if you on half way navigate through the history of your commands and you decide you want to type new ...
0
votes
1answer
117 views

Assistance with a backup solution.

I am currently needing to create a backup of something on my server. I zip the entire folder and it's about 1.5gb big...it has to be backed up every hour.... Alright so the size of the backup is ...
2
votes
2answers
137 views

Allow developers to access command line on linux server

Is there a way to create a shell user for developers to login to the server and execute command line php scripts to see the output? They have to be restricted to a folder. In other words, I don't ...
7
votes
2answers
7k views

Getting shell script to run as a daemon on CentOS?

EDIT: For some reason half of my post got truncated, not sure what happened. I will update soon and will post that it is updated here at the top. EDIT: I have updated the post again, sorry for the ...
1
vote
3answers
533 views

Server Bash Line Wrapping Over Text & In Wrong Place

This is quite a hard problem to explain, when connecting to one of my servers using the bash shell, under any user the line wrapping is broken and has all sorts of problems. Once of which I detail in ...
1
vote
2answers
82 views

Some copied files have additional blank lines

In the process of comparing files between 2 versions of an application i've noticed that a number of files seem to have gained additional blank lines throughout the file. These files were never ...
1
vote
1answer
244 views

Server crashes when running shell script

I have a virtual machine running CentOS 5.5 that I use as a streaming server. If I open 4 terminals and do this: terminal 1: # mkfifo pipe1.avi # mkfifo pipe2.avi # ffserver & # ffmpeg ...
1
vote
2answers
3k views

How to populate RRD database with CPU and MEM usage data?

I have a Lighttpd server (on Centos) and would like to display 4 graphs: lighttpd traffic, lighttpd requests per second, CPU usage and MEM usage. I've set place for rrd database for lighttpd config ...
0
votes
2answers
544 views

can't run shell script outside its directory

I am centos 5.4 user and I can't run shell script outside its directry i.e my script is located: /me/script.sh it will run as ./script.sh but not as /me/script.sh it is 755 chmod, why ...
3
votes
1answer
430 views

Adding Utilities to /bin/bash (chrooted)

I have my hosting users on /bin/bash (chrooted) for SFTP. How do I add unzip to the list of utilities they can execute? Running Plesk Panel 9.5.2 on CentOS
3
votes
5answers
7k views

Allow shell access from one ip only

Is it possible to have root shell access from one particular ip only I am using centOS. i want that only one user can log in via shell from one ip only
4
votes
1answer
437 views

What does this weird directory listing in Linux mean?

I was clearing out some old sites on a CentOS server (MediaTemple DV) and stumbled upon this when doing an ls -lha : http://skitch.com/callmeed/ntgb5/weird-directory-listing All the file names are ...
25
votes
4answers
62k views

Adding a directory to $PATH in CentOS?

We just got our new server(s) up and we're running CentOS on them all. After successfully installing Ruby Enterprise Edition, I would now like to add the REE /bin (located at ...
2
votes
2answers
145 views

SED Find&Replace with “OR”

After a bit of googling / research on my own i haven't found a definitive answer, I'm looking to search the entire /var/www/html/ folder for occurances of "127.0.0.1" and replace them with a server ...
2
votes
3answers
2k views

CentOS 5 Start a PHP Script on startup

We have a CentOS 5 VPS over at slicehost. I have a couple of PHP scripts that operate email and stuff. I need a way to start these php scripts automatically on machine's reboots/startups and have ...
0
votes
3answers
182 views

track down source of shell command

In our apache error log (/usr/local/apache/logs/error_log) for one of our servers we are seeing a shell command running quite often which is throwing an error, it looks like this: sh: list_price: ...
2
votes
1answer
3k views

Setting up multiple FTP accounts on domain in Plesk 8.6 CentOS

Plesk 8.6 currently does not allow creating more than one FTP account per domain. You can setup 'web users' via the plesk interface but this sandboxes the FTP accounts outside of the web accessible ...