Salt default shell on Ubuntu vs RHEL #12205
Replies: 2 comments 1 reply
-
Documenting for those who may follow: This can be corrected on Ubuntu systems by changing the default shell /bin/sh to be /bin/bash rather than /bin/dash, as I suspected. To do so, see this article with its caveats. So far, no issues here on 22.04 after performing the switch and no more errors like the above reported. Unfortunately, I don't see a different option unless the maintainers of SecurityOnion make their associated scripts POSIX compliant, OR explictly call /bin/bash for each of their scripts. |
Beta Was this translation helpful? Give feedback.
-
We have an issue open to review this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Version
2.4.0
Installation Method
Network installation on Ubuntu
Description
other (please provide detail below)
Installation Type
Standalone
Location
cloud
Hardware Specs
Exceeds minimum requirements
CPU
4
RAM
16Gb
Storage for /
300Gb
Storage for /nsm
300Gb
Network Traffic Collection
other (please provide detail below)
Network Traffic Speeds
1Gbps to 10Gbps
Status
Yes, all services on all nodes are running OK
Salt Status
Yes, there are salt failures (please provide detail below)
Logs
Yes, there are additional clues in /opt/so/log/ (please provide detail below)
Detail
Greetings yet again. It would seem that there's an issue with any script that references so-common:
Based on this thread in salt, my understanding is that it will default to the user's defined shell from /etc/passwd, defaulting to /bin/sh. On RHEL, I believe that /bin/sh still points to /bin/bash, whereas on Ubuntu it points to /bin/dash, which to the best of my knowledge does NOT support arrays. Checking our fresh install, out of all the added SecurityOnion accounts, only socore has a defined shell of /bin/bash. The account for salt is /usr/sbin/nologin, and all other services are /bin/sh.
I suspect that this will need to change for Ubuntu, but I'm not sure which needs to change. That is, the account for salt, or the accounts for all the other salt services? Or does the array declaration and usage in so-common need to change to be more POSIX compliant?
As always, TIA
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions