rndc-confgen: command not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
High
|
Unassigned | ||
2.0 |
Expired
|
High
|
Unassigned |
Bug Description
$ rndc-confgen
Command 'rndc-confgen' is available in '/usr/sbin/
The command could not be located because '/usr/sbin' is not included in
the PATH environment variable.
This is most likely caused by the lack of administrative privileges
associated with your user account.
rndc-confgen: command not found
I discovered this when running bin/test.rack in a new and up-to-date
16.04 container, running as the ubuntu user. I'm puzzled as to why the
ubuntu user should not have /usr/sbin in PATH given that ubuntu can sudo
to root, i.e. it obviously has /some/ privileges.
$ groups
ubuntu adm dialout cdrom floppy sudo audio dip video plugdev netdev lxd
$ echo $PATH
/usr/local/
A catch-all fix might be to refer to rndc-confgen by its full path when
MAAS calls it.
description: | updated |
In ubuntu, non-root users do not have /usr/local/sbin, /usr/sbin, or /sbin in their path by default (though the user can override that.) Note that "sudo rndc-confgen" would work as well.
Assuming that it works in our case, then specifying the full path is the correct action.