NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
eton
May 18, 2015Luminary
RAIDiator 4.1.14 changed bash shell behaviour - Bug?
RAIDiator version 4.1.14 changed bash's shell behaviour. Bug or new features? Example of executing bulkGetter script as user UserName under RAIDiator version 4.1.13 (Sparc): # su -c "bulkGetter....
eton
May 22, 2015Luminary
mdgm wrote: It's the same as it's always been. If the user you're su`ing to has a .bashrc that redefines $PATH to include your chosen path, then
it will work. If not, $PATH will come from /etc/login.defs, which does not, and has never (at least in the past 7 years, which is as far back as I looked), included /usr/local/bin
My PATH config. And I have never touched /etc/login.defs.
# cat ~/.bashrc
export PATH="$PATH:$HOME/bin"
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/root/bin
Same problem after I moved bulkGetter.sh to ~/bin.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!