Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshpasswd.sh fails if /usr/sbin is not in $PATH #14

Closed
mutability opened this issue Jan 17, 2017 · 3 comments
Closed

sshpasswd.sh fails if /usr/sbin is not in $PATH #14

mutability opened this issue Jan 17, 2017 · 3 comments

Comments

@mutability
Copy link

$ bash -x -l
[...]
+ for i in '/etc/profile.d/*.sh'
+ '[' -r /etc/profile.d/sshpasswd.sh ']'
+ . /etc/profile.d/sshpasswd.sh
++ service ssh status
bash: service: command not found
++ grep -q running
++ unset check_hash
@spl237
Copy link
Contributor

spl237 commented Jan 17, 2017

Very little we can do about that - /usr/sbin is in the path on a default Raspbian install, and we need to be able to access "service" to determine whether or not SSH is running (not to mention for numerous other purposes on a running Raspbian system). I fear that the easiest fix for this is either to put /usr/sbin back in the path, or to put "service" in a directory which is on the path.

@spl237 spl237 closed this as completed Jan 17, 2017
@mutability
Copy link
Author

Uh, the obvious fix here is to invoke service with an explicit path.

@mutability
Copy link
Author

Note that this is another case of an upgrade regression - existing installs, when upgraded, suddenly start seeing error messages on login.

mutability added a commit to mutability/raspberrypi-sys-mods that referenced this issue Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants