/usr/sbin directory not included in PATH

Eric Blake eblake@redhat.com
Fri Jul 20 20:49:00 GMT 2012


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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120720/e01f7d2c/attachment.sig>


More information about the Cygwin mailing list