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

learn more… | top users | synonyms (1)

1
vote
3answers
85 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
188 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
30 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
815 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
227 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
170 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
61 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
262 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
42 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
55 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
131 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
27 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
111 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
201 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
176 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...
0
votes
2answers
152 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
324 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
132 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
54 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
158 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
658 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
2k 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
42 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 Squeeze

Can not update bash on a Debian Squeeze server to get rid of discovered vulnerability: bash --version GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu) apt-get update apt-get install bash ...
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 ...
68
votes
6answers
44k 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?
6
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 Quantal server (12.10), don't ask me why please, and we need to patch the Shellshock Bash security bug. As upgrades are not available anymore, what is the ...
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
20k 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
75 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
54 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 ...
-1
votes
2answers
44 views

Getting Java Version in bash script results are blank [closed]

I've got a bash script that grabs a bunch of environment data, part of that grabs the JDK location on a Unix machine and then runs the version check. It works on some Machines but not others for some ...
0
votes
1answer
38 views

Timeout a script with stdin

I need something like this: timeout -k 4 cat file | myscript.sh but i get this error: timeout: invalid time interval ‘cat’ Try 'timeout --help' for more information. I want to pass stdin to ...
0
votes
2answers
54 views

Linux `file` command display encoding

The file command returns me the encoding of a file + the EOL if it's not LF. But it returns ASCII for both ANSI and UTF-8 without BOM. On UTF-8 files it returns UTF-8 Unicode (with BOM). An I doing ...
1
vote
0answers
146 views

Encrypting/Decrypting a file using openssl through an autorun script

So I am trying to encrypt/decrypt a file using openssl. I am running it through a script that is automatically run when I mount a USB, and decrypts the file. However, it doesn't work quite right, so ...
0
votes
1answer
82 views

Unable to redirect STDOUT in a remote screen session via SSH

I would like to execute a long-running command via SSH/screen and have the output redirected to a file. I'm able to run the command fine (similar to this question), but the output never shows up. ...
0
votes
1answer
118 views

insserv: warning: script 'uwsgi' missing LSB tags and overrides

This is my code: #!/bin/bash daemon="$APPVENV/bin/uwsgi" args="--emperor $APPCONF/uwsgi/app.ini" pid="$APPDIR/emperor.pid" case "\$1" in start) echo "Starting uwsgi" ...
0
votes
2answers
62 views

Purposely corrupt folder name?

I want to intentionally corrupt a folder name so I can test a script on it. Currently the folders are named similar to : 37ee0500-52c0-4a18-861e-0084EF05FB and are located in: /user/members/local/ ...
0
votes
3answers
73 views

how to run the dialog command with proccess

Please look on my code – ( bash script ) I want to display both dialogs on the screen on the same time, one dialog display the: tail –f from - /var/log/proccess1.log , and the second dialog ...
0
votes
0answers
48 views

Bash and background processes PGID and receiving signals

My actual problem is that a process I run in an rcfile in docker as docker run container bash --rcfile rcfile remains attached to the bash session by sharing the PGID which means that when I Ctrl-C an ...
-3
votes
1answer
57 views

use bash to open a file and output the last line [closed]

I'm trying to get only the last command ran in a different Bash window. I have the other Bash window's PID. I can run APID=<bash pid number>; gdb -batch --eval "attach $APID" --eval "call ...
0
votes
0answers
38 views

mailx command strange behaviour from cron

I have a script that redirect the df output to a file and then send it in an email. The mail command is set up as following: /usr/bin/mail -s "Subject" -r from@nowhere.com toaddress@somewhere.com ...
1
vote
2answers
130 views

Which open source program is similar to the Linux “dialog” command? [closed]

The linux dialog command is a great tool for creating dialog boxes in terminal windows (e.g. in a bash script). However, there is a drawback of dialog which is that the window is always positioned in ...
3
votes
1answer
91 views

How to view two dialog boxes on the linux console, running on the same time?

I want to view on the Linux console two dialog windows on the same time. I want a window that views the progress BAR, and the a second tailbox that view the logs are running. The problem is that the ...
0
votes
1answer
20 views

Trouble using ssh-key gen specifying location and password

This is my code: ssh-keygen -t rsa -C "$APP" This works perfectly. However it then asks me to specify location and password. I was hoping I can automate this all in one go, however this command ...