On Monday 03 September 2007 16:49:56 Derick Centeno wrote: >[EMAIL PROTECTED] aguila]# which lsusb > /usr/bin/which: no lsusb in > (/usr/kerberos/sbin:/usr/local/enlightenment/bin:/usr/kerberos/bin:/usr/loc >al/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/aguila/bin) [EMAIL PROTECTED] >aguila]# ... > Any ideas?
Yeah, it's likely your 'su'. When you su to root to do any sysadmin work, you pretty much always want to do 'su -' and not just 'su'. This will make your shell a login shell, and one of these side effects is that you gain the environment of the new user (profile, path, etc..). The 'which' command simply displays the full path to the target should it have been executed by name (handy for debugging wacky things like when there are two binaries with the same name that are different and in different places). Since, '/sbin' isn't in an ordinary user's path, but it is in root's path, it won't be found by 'which' unless you have it in your path. Cheers, Chris _______________________________________________ yellowdog-general mailing list [email protected] http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general HINT: to Google archives, try '<keywords> site:terrasoftsolutions.com'
