public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* /usr/sbin directory not included in PATH
@ 2012-07-20 20:34 Aaron Schneider
  2012-07-20 20:49 ` Eric Blake
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Schneider @ 2012-07-20 20:34 UTC (permalink / raw)
  To: cygwin

Package util-linux installs fdisk.exe in /usr/sbin but that path is not 
added to PATH variable, so can't be run directly,

$ echo $PATH
/usr/local/bin:/usr/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem

Is this intentional?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: /usr/sbin directory not included in PATH
  2012-07-20 20:34 /usr/sbin directory not included in PATH Aaron Schneider
@ 2012-07-20 20:49 ` Eric Blake
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Blake @ 2012-07-20 20:49 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

On 07/20/2012 02:34 PM, Aaron Schneider wrote:
> Package util-linux installs fdisk.exe in /usr/sbin but that path is not
> added to PATH variable, so can't be run directly,
> 
> $ echo $PATH
> /usr/local/bin:/usr/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem
> 
> 
> Is this intentional?

Yes.  It matches how Fedora does things (both fdisk being in /usr/sbin,
and that /usr/sbin is not in the default PATH of non-root users unless
the user customizes things).

If you don't like it, then customize your PATH.

-- 
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-20 20:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-20 20:34 /usr/sbin directory not included in PATH Aaron Schneider
2012-07-20 20:49 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).