Hi! > >> From: Vinson Lee <[email protected]> > >> > >> /sbin may not be in the default $PATH. > > > > You are supposed to start runltp as a root, if losetup is not in your > > $PATH something went wrong on your end. > > > > -- > > Cyril Hrubis > > [email protected] > > This situation can arise, for example, on CentOS 5 running LTP with > sudo instead of directly as root.
That is a "security" feature for sudo. See for example bug: https://bugzilla.redhat.com/show_bug.cgi?id=80215 You can either add /sbin/ and /bin/ to your PATH manually (PATH="$PATH:/sbin:/bin" sudo runltp) or add secure_path="/sbin:/bin:" into /etc/sudoers. Using absolute paths in LTP is out of question because that would bring more harm than good. Note that distributions differ on placements for some of the standard tools and adding a layer for resolving the paths would add quite a bit complexity for a problem that could be solved by adding a few paths to the PATH. On the other hand we should fix the scripts to check if the tool they use is available (see tst_check_cmds in testcases/lib/test.sh). And maybe we can print a warning from runltp if /sbin or /bin are not in $PATH. -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
