We should detect whether the tools are being run as root and exit immediately with an error.
Currently, if a non-root user attempts to run the SSS tools, they will see "Error initializing the tools", which is not user-friendly.
Fields changed
status: new => assigned
Fixed with commit e1fdffdf9e94dee7de479c155188b80fd41dbcc8
fixedin: => 0.5.0 resolution: => fixed status: assigned => closed
doc: => 0 docupdated: => 0 tests: => 1 testsupdated: => 0
Automated tests added for all sss utils run as non root user (sss_useradd, sss_usermod, sss_userdel, sss_groupadd, sss_groupmod, sss_groupdel).
tests: 1 => 0 testsupdated: 0 => 1
rhbz: => 0
Metadata Update from @sgallagh: - Issue assigned to jhrozek - Issue set to the milestone: SSSD 1.0
SSSD is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in SSSD's github repository.
This issue has been cloned to Github and is available here: - https://github.com/SSSD/sssd/issues/1116
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.