coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests: adjust PATH to include /usr/sbin for filefrag-using t


From: Bob Proulx
Subject: Re: [PATCH] tests: adjust PATH to include /usr/sbin for filefrag-using tests
Date: Sun, 27 Nov 2011 17:41:38 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

Bernhard Voelker wrote:
> Again, I don't think it is related to sudo. It is /bin/login.

You didn't use sudo to run those tests?  Okay.  That wasn't
immediately clear.

> Am I missing something? What's the connection to sudo here?

The connection to sudo apparently a very early misunderstanding in
this thread that you had run those tests by sudo.  And then the
discussion took off that direction.

> I even changed to runlevel 3, renamed sudo, did the login on tty2, and
> then "make check TESTS=cp/fiemap-perf" was skipped in the same way.
> Sudo is not used here. And such sbin paths have never been included
> for non-root users on SuSE and AFAIK on Solaris.

Wow!  That was above and beyond the call of duty!  And to be
completely honest it was also completely unnecessary.  The necessary
words were, "I didn't use sudo.  I just ran it with a default PATH
that did not include /usr/sbin:/sbin in it."  I don't mean this
harshly but since there was confusion felt it was necessary to say it
very plainly.

> According to my /etc/profile, such admin paths are only added for root:
> 
>     if test "$UID" = 0 ; then
>         test -d /opt/kde3/sbin  && PATH=/opt/kde3/sbin:$PATH
>         PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
>     fi

Right.  That is normal.  The sbin paths are not normally assigned to
non-root logins.  But since many of us always augment our PATH with
all of the sbin paths all of the time anyway it means that we
sometimes don't run into problems when other people do.

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]