Bash is the Bourne Again SHell, the successor to the classic Unix sh (shell).

learn more… | top users | synonyms (1)

0
votes
1answer
37 views

Script to copy auth keys to remote servers needs password four times

I work on multiple servers through ssh. I have automated the copying of ssh auth keys with the script below. The only problem is it asks for the remote servers password 4 times. How can I change ...
3
votes
2answers
86 views

Why is my find -type d performing fstat on every file in a folder?

I'm running find . -type d on a rather large directory tree. I am only interested in finding directories within this tree, but when I ran an strace against the process to make sure it was doing what I ...
0
votes
1answer
131 views

Updating a Vyatta 6.6 box for Shellshock

A client has a few Vyatta installations that they're eventually wanting to replace with VyOS. In the interim, they're running Vyatta 6.6 (last version prior to the sale to Brocade). It's an internal ...
0
votes
0answers
84 views

AD Authentication with SAMBA, Winbind and SSS

I'm having trouble authentication with AD to a SAMBA share on a linux server. Authentication appears to be working, but only halfway... [root@myserver ~]# wbinfo -a my_ad_user%password123 ...
0
votes
2answers
42 views

Using find to exclude a directory and tar up everything else in a directory

I have following in a directory: dir1 dir2 file1 file2 I want to tar up everything except dir1 When I do: find . -path '*dir1*' -prune -o -print I don't see dir1 in the output ( as expected) ...
3
votes
1answer
42 views

List directories not containing a file which has a variable prefix

I'm checking the output from a script. In some cases the script has failed, and a certain file hasn't been produced. I want to check whether this file is present in a directory and if not, print the ...
1
vote
2answers
42 views

Hourly Clamscan cron script failes at reading file list

I've this piece of code located in /etc/cron.hourly/hourlyclamscan. #!/usr/bin/bash # Create Hourly Cron Job With Clamscan # Directories to scan SCAN_DIR=/home/transmission/Downloads # Temporary ...
0
votes
0answers
32 views

Linux: Process ignores signals

Processes running in Linux ignores signals (INT,QUIT,TERM) except KILL. Programs such as top, tail -f, sleep and etc, do not respond when pressing Ctrl+C and thus have to stop them from another ...
2
votes
2answers
192 views

SSH Login Failure “-bash: error while loading shared libraries: requires glibc 2.5 or later dynamic linker”

I did a blunder on one of my production server and its very old RHEL 4 host. Due to recent "shellshock vulnerability" by mistake I upgraded the bash to wrong version from RHEL5 repo. Now I am ...
1
vote
1answer
46 views

Why does printf work differently with sudo?

I have a simple script to convert a text file with colour escape sequences to the actual characters. It works if I run it directly, but not with sudo. To set up the scripts: test.txt ...
-3
votes
1answer
59 views

Dump all DB with Bash Script in separate files [duplicate]

I would like to easily dump all my DB without typing same stuff many times ... (I'm a dev and I have a lot of DB on my local machine ) Any Simple scripts that comes to your mind ?
0
votes
1answer
67 views

SVN Post Commit Issue (Calling Bash)

All, I would like to invoke a bash script (to do some rsync magic) towards the end of my post-commit hook. Here is what my post commit hook looks like: #!/bin/bash REPOS="$1" REV="$2" ...
0
votes
1answer
108 views

Getting the passphrase to ssh-keygen

I have a new private key that I'm bringing to a docker container as part of a bash script. After copying the private key to /root/.ssh/id_rsa I wanted to regenerate the public with: ssh-keygen -yf ...
0
votes
2answers
34 views

Converting string into CLI instruction

I have a the following in a bash script: cmd="composer install" `"$cmd"` which results in: composer install: command not found However if I just run this in the same bash script instead: ...
1
vote
3answers
99 views

rsync using keygen login in bash script

So I have set up a password-less ssh login for a server. I can run rsync from the command line, and it works beautifully, and doesn't ask me for a password: rsync -avz -e ssh myDir ...
0
votes
1answer
230 views

segfault error with bash on CentOS 6

I updated bash as soon as both patches were available, and using the test script at https://shellshocker.net, I am showing fixed on all vulnerabilities except for segfault. OS: cat /etc/*release* ...
1
vote
1answer
31 views

Losing carriage returns in variable assignment

If I assign a variable in Bash like so: PRIVATE_KEY="$(< ~/.ssh/id_rsa)" and then immediately dump that to a file: echo $PRIVATE_KEY > tmp.txt and then compare this to the original: diff ...
12
votes
3answers
825 views

grep behaving differently on Fedora vs Ubuntu

So when I run this in Fedora I'm seeing this: $ ls hmm_data/indivA12_AATAAG/refs/par1/ 2R-orths.alleles 2R-ref.alleles $ ls hmm_data/indivA12_AATAAG/refs/par1/ | grep -F '-ref.alleles' ...
1
vote
1answer
1k views

ShellShock - Unable to update CentOS 5.7

[user@server1 ~]$ wget http://mirror.centos.org/centos-5/5/updates/x86_64/RPMS/bash-3.2-33.el5.1.x86_64.rpm [user@server1 ~]$ sudo rpm -Uvh bash-3.2-33.el5.1.x86_64.rpm warning: ...
2
votes
1answer
249 views

Collection of shell shock related logfile grep patterns

There are many topics on the shellshock bash vulnerability, but there isn't any collection of patterns that we could "grep" for in either the webservers access.log files and in the normal logs. ...
0
votes
1answer
188 views

How do I update bash on RHEL5 servers with expired contracts? [duplicate]

I have two servers with expired contracts that are both vulnerable to shellshock. I am in the process of migrating both to new servers with RHEL6 or greater depending when I get this done. That ...
0
votes
1answer
73 views

“File not found” from bash script executed by Apache (CentOS)

I have a bash script that sets up a classpath for accessing a series of JARs (it's tf, the cross-platform, command line tool for Team Foundation Server). The file structure is something like: ...
-2
votes
1answer
267 views

I've uninstalled/deleted bash and it's killed the server

I changed the default shell to zsh. And then proceeded to uninstall bash (this was via yast on SLES). To my horror I start to see everything deleted/uninstalled, apache, mysql . I can't putty into ...
0
votes
1answer
43 views

Password less mysql access to specified user/script only

In addition to this question: Performing root mysql operations in bash scripts I'd like to ask how to limit/allow this action (performing root administrative actions): mysql --local-path=mypath -e ...
0
votes
0answers
89 views

lftp mirror leaves empty folders on remote

My script is set up with this for lftp lftp -p 2218 -u $login,$pass sftp://$host << EOF set mirror:use-pget-n 5 mirror -c -P5 --depth-first --Remove-source-files ...
1
vote
1answer
153 views

CentOS fails to update Bash

I'm trying to patch my server against the Shellshock vulnerability issue. However, I'm unable to update Bash to a safe version, these are the results I'm getting: # yum update bash Loaded plugins: ...
-1
votes
1answer
31 views

how to change back to dash

I had used dpkg-reconfigure dash for ISPconfig installation, Now, I want to go back to dash again. Can anyone please help me with that. I am using Debian wheezy.
1
vote
2answers
129 views

Locked out after installing a bash without executable bit

After scp-ing a shellshock-patched bash binary to an openSUSE 12.2 Linux VM and replacing the login shell with it, no user can log in via ssh or the console. As it turned out, the executable bit got ...
0
votes
2answers
212 views

bash stuck at 3.2-24.el5 (Redhat)

I'm trying to update bash on our Red Hat Enterprise Linux Server release 5.6 server. But it won't find an update later than "3.2-24.el5". I've check and it is vulnerable for the shellshock ...
0
votes
5answers
239 views

Solaris - How to see if Bash is installed

never touched Solaris before is there an easy command to see if Bash is installed? Probably a silly question, thanks for your help
0
votes
0answers
74 views

How to fix Shellshock vulnerability on Debian Squeeze? [duplicate]

How do you fix the shellshock bash vulnerability on Debian Squeeze? (I originally posted just the answer but that got modded, go figure), so now I'll post the answer below...
1
vote
2answers
176 views

CentOS 7: Getting interface IP numbers

I am trying to autopopulate the /etc/issue in a CentOS 7 image (this will be a template, and it needs to be easy to identify the resultant VMs at a glance). I have the following in my ...
1
vote
1answer
326 views

Shellshock protection in Rackspace Ubuntu

I am trying to update my Ubuntu 13.10 servers in Rackspace to avoid Shellshock bug, but it is not working. Here is what I am doing: $ sudo apt-get update && sudo apt-get install ...
5
votes
1answer
2k views

Why are some CentOS 5 boxes still vulnerable to ShellShock after upgrading Bash?

I have two CentOS 5.10 boxen where I have upgraded bash to the latest version. However, in one of the boxes, bash is still vulnerable to CVE-2014-7169 (I am using the test from this ServerFault ...
0
votes
0answers
167 views

Mysql 5.6 not starting with init script (mysql pre-start process terminated with status 1), starts fine manually

I've been fighting with this all morning: On Ubuntu Utopic (same on trusty, upgraded just in case), when I run sudo service mysql start, or sudo start mysql, I get the single error: "mysql pre-start ...
0
votes
1answer
68 views

Cron bash script skips second do/done set

I have a script that checks IPs for ping reply then tries to run an snmpwalk on them. I am trying to schedule the script to run weekly in cron. When I run the script in the shell, it runs perfectly. ...
0
votes
4answers
161 views

Where can I download a fully patched set of bash source to resolve the “shellshock” exploit

After downloading bash-4.3 and applying patches 1 through 25 (from http://ftp.gnu.org/gnu/bash), the compiled version of bash still suffers from two potential exploits (as described in the following ...
2
votes
2answers
2k views

Centos failing to upgrade bash

I'm trying to resolve the recent Shellshock exploit however every time I run "yum update" or "yum update bash", it plainly says everything is up to date. I'm pretty frustrated at the issue and ...
0
votes
2answers
663 views

How to patch for CVE-2014-6271 & CVE-2014-7169?

CVE-2014-6271 & CVE-2014-7169 is a bash related bug that reported at 24-Sep-2014. http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271 ...
3
votes
3answers
9k views

How to update solaris 10 to be safe from shellshock bug?

Saw this post here. Logged into my Solaris server in ssh and tried patchadd 19689293 and it just says it cannot find the patch.
4
votes
2answers
3k views

Shellshock - “pkg upgrade bash” doesn't update bash to latest 4.3.25

I'm using FreeBSD-9.1-p5. My security run output: Checking for packages with security vulnerabilities: Database fetched: Wed Sep 24 23:01:24 EDT 2014 bash-4.3.24 pkg info bash: # pkg info bash ...
1
vote
0answers
46 views

yum-complete-transaction in a crazy loop

I was trying to update a server that I have with yum update and it aborted because the server ran out of memory. I killed off a few processes that were not needed and ran yum-complete-transaction but ...
9
votes
4answers
11k views

Can not update Bash on Debian 6.0 (Squeeze)

I can not update Bash on a Debian 6.0 (Squeeze) server to get rid of the discovered vulnerability: bash --version GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu) apt-get update apt-get ...
11
votes
2answers
3k views

How does the updated Shellshock vulnerability test for CVE-2014-7169 work?

I understand the original test for CVE-2014-6271, which was: $ env x='() { :;}; echo vulnerable' bash -c "echo this is a test" But I'm confused by the updated test and corresponding output for ...
67
votes
6answers
45k views

How to test if my server is vulnerable to the ShellShock bug?

How can I ensure my Bash installation is not vulnerable to the ShellShock bug anymore after the updates?
5
votes
6answers
11k views

What is a recommended way to patch the Shellshock Bash bug on an unsupported Ubuntu server?

I maintain an out-of-support Ubuntu 12.10 (Quantal Quetzal) server (don't ask me why, please), and we need to patch the Shellshock Bash security bug. As upgrades are not available anymore, what ...
3
votes
2answers
7k views

Yum reports updated bash but binary still reports old version

I'm trying to update a CentOS 5 system in order to patch the bash vulnerability described in CVE-2014-6271 / RHSA-2014:1293-1, but am running into an issue. After seemingly-successfully updating bash ...
16
votes
4answers
21k views

How do I patch RHEL 4 for the bash vulnerabilities in CVE-2014-6271 and CVE-2014-7169?

A mechanism for remote code execution through Bash has been widely reported yesterday and today (September 24, 2014.) http://seclists.org/oss-sec/2014/q3/650 Reported as CVE-2014-7169 or CVE-2014-6271 ...
2
votes
1answer
87 views

Performing root mysql operations in bash scripts

What is a good practice to execute root operations on mysql databases in bash scripts? For example, I want to create new database and grant privileges, I have to use: mysql -u $ROOT -p"$ROOTPASS" -e ...
0
votes
1answer
57 views

Cronjob for a bash script pauses for 2 minutes randomly

I have been running a bash script on CEntOS 5.5 machine that checks replication on a remote mysql server. The script creates a temporary lock file and is scheduled to run in Crontab every minute. But ...