[mythtv-users] LIRC help
Michael T. Dean
mtdean at thirdcontact.com
Mon Aug 16 12:07:22 EDT 2004
Jay R. Ashworth wrote:
>On Fri, Aug 13, 2004 at 11:06:48PM -0700, Shawn Asmussen wrote:
>>>On Fri, 13 Aug 2004 19:14:33 -0500, aslong at uark.edu <aslong at uark.edu>
>>>>[root at localhost mythtv]# lsmod |grep lirc
>>>>bash: lsmod: command not found
>>>lsmod lives in /sbin, so it'd be
>>># /sbin/lsmod | grep lirc
>>>Odd that /sbin isn't in root's PATH. Is that a Fedora thing?
>>The most likely explaination is that he became the root user using the su
>>command and did not use the "-" to make the shell a login shell. In that
>>case, his path still be the same as the path of the user who he originally
>>logged in as, which probably would not have /sbin included.
>I only wish that were true; in SuSE 9.x, it's not: su rewrites the
>path no matter how you call it, and I can't figure out where: I'm about
>to grovel in the source.
The current environment is passed to the new shell. The value of
is reset to /bin:/usr/bin for normal
/sbin:/bin:/usr/sbin:/usr/bin for the super user. This may be
with the ENV_PATH and ENV_SUPATH definitions in /etc/login.defs.
More information about the mythtv-users