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 21, 2015Luminary
mdgm wrote: Well if you change the shell
# chsh -s /bin/bash UserName
is the script then able to run?
Thanks. Though this might not be the problem. I am getting the same errors with both /bin/bash and /bin/false.
# su -c "bulkGetter.sh downloadlist.txt . -rm" -s /bin/sh UserName
sh: line 1: bulkGetter.sh: command not found
But bash finds the script when I specify full path:
# su -c "/usr/local/bin/bulkGetter.sh downloadlist.txt . -rm" -s /bin/sh UserName
./FileToDownload.zip: Permission denied
There seem to be some problems with PATH variables in RAIDiator 4.1.14. My script is located in "/usr/local/bin/" but bash can't find it for UserName without giving it the full path. But PATH works fine for root. Both these works for root, but I want to run the script as a different user :( It used to work just fine until 4.1.14.
# /usr/local/bin/bulkGetter.sh downloadlist.txt . -rm
# bulkGetter.sh downloadlist.txt . -rm
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!