[Bug 1203428] reboot command is locked behind root, need to alias reboot='systemcl reboot'

https://bugzilla.suse.com/show_bug.cgi?id=1203428 https://bugzilla.suse.com/show_bug.cgi?id=1203428#c1 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |fbui@suse.com Resolution|--- |FEATURE --- Comment #1 from Franck Bui <fbui@suse.com> --- reboot(8)/shutdown(8) don't really need root privileges however /usr/sbin needs to be included in the shell search path otherwise one needs to give the absolute path, ie /usr/sbin/reboot. This is actually suggested when you run the command as a regular user BTW: # reboot Absolute path to 'reboot' is '/usr/sbin/reboot', so running it may require superuser privileges (eg. root). I'm not sure how a new user can be confused here but I would expect him to understand the above message, especially if he plans to use command line tools via a shell. Anyways this is working as expected: openSUSE doesn't include /usr/sbin/ in regular user's $PATH by default. One could argue that reboot(8) and such tools could be moved in /usr/bin but these commands are still potentially dangerous and could do harm even when only one single user is logged on the system. Hence calling them like any other regular command doesn't seem wise. So I'm tempted to ask you to discuss this on factory mailing list for example instead of opening a bug report (since it's not a bug but rather a feature request). Hope that makes sense. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com