User: Password:
|
|
Subscribe / Log in / New account

useless and useful distinctions

useless and useful distinctions

Posted Jan 27, 2012 12:03 UTC (Fri) by angdraug (subscriber, #7487)
In reply to: useless and useful distinctions by kragilkragil2
Parent article: The case for the /usr merge

For one, so that normal user's PATH isn't cluttered with commands that only root is supposed to run. Improves autocompletion, too.


(Log in to post comments)

useless and useful distinctions

Posted Jan 27, 2012 12:42 UTC (Fri) by zyga (subscriber, #81533) [Link]

I kind of like being able to tab-complete $ sudo ...

useless and useful distinctions

Posted Jan 27, 2012 17:58 UTC (Fri) by iabervon (subscriber, #722) [Link]

In order to tab-complete "sudo ...", your shell needs a rule that what follows "sudo" is found from $PATH, not cwd. If it has a rule, it can have the rule tab-complete based on /usr/bin and /usr/sbin instead of actually using $PATH (which is likely to include things like ~/bin which won't be in root's PATH, as well as not including /usr/sbin).

useless and useful distinctions

Posted Jan 27, 2012 17:52 UTC (Fri) by sjj (subscriber, #2020) [Link]

FWIW, Fedora has had sbin directories in the default user path since F10.

My personal annoyance is that ifconfig is in /usr/sbin, and I often need to consult it as a regular user.

useless and useful distinctions

Posted Jan 28, 2012 16:42 UTC (Sat) by josh (subscriber, #17465) [Link]

A quick look at the contents of /sbin on my system turns up quite a few programs useful for non-root users, and very few only usable by root. In particular, disk and filesystem utilities work well on loopback files, networking tools provide useful output, and most other binaries have some useful function for non-root (even if just displaying useful output without allowing changes).


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds