Bug 838 - user need to type absolute path to execute some commands
Summary: user need to type absolute path to execute some commands
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: Netbook x86
: Low minor
Target Milestone: 1.0 M4
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-09 23:41 UTC by Dongxiao Xu
Modified: 2011-03-10 09:14 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dongxiao Xu 2011-03-09 23:41:43 UTC
In netbook, user needs to type the absolute path to execute certain commands. For example:

xuser@atom-pc:~$ ifconfig
/bin/sh: ifconfig: not found

xuser@atom-pc:~$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr C8:0A:A9:36:F8:2C
          inet addr:10.239.36.102  Bcast:10.239.36.255  Mask:255.255.255.0
          inet6 addr: fe80::ca0a:a9ff:fe36:f82c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:231 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30217 (29.5 KiB)  TX bytes:17764 (17.3 KiB)
          Interrupt:16 Base address:0x8000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3540 (3.4 KiB)  TX bytes:3540 (3.4 KiB)

wlan0     Link encap:Ethernet  HWaddr F0:7B:CB:19:1A:BD
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

The cause should be that, some certain paths, like sbin, are not added into PATH environement variable.
Comment 1 Dongxiao Xu 2011-03-10 00:28:57 UTC
I use the following commit to reproduce the bug.

a778fb311540580476976e43f9c0576284f8dc38

Thanks,
Dongxiao
Comment 2 Saul Wold 2011-03-10 09:14:11 UTC
This is a standard convention for non-root user accounts to not /sbin and /usr/sbin in the default path.