Re: Problems with ifconfig in Fedora 8

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

 



On Tue, 2008-04-22 at 11:46 +0200, Pedro Jose wrote:
> I send this question because in others computers with Fedora 8
> installed, when I login as root with su, ifconfig is available, but in
> my computer no. I'll try with su-, but my question is why  it works in
> other computers and not in mine with su. 

On each of your computers, type in an "echo $PATH" command, using the
different methods that you use to become root.  You'll see that Fedora
doesn't include /sbin in the path for non-root users.

If you switch users to root by just using "su" then you're still using
the non-root user's paths and environment.  If you log in as root, or do
"su -" to switch to root, then you're using the roots environment, which
includes /sbin.

The search path is used to find commands when you type in the command
without using the full path to the command.

i.e. Typing in "ifconfig" rather than "/sbin/ifconfig".

There's a reason that ordinary users don't include /sbin:  There can be
commands in /bin and /sbin with the same command name, but to do
slightly different roles.  The root user will use the first one if
finds, the one in /sbin, which may allow them to do more than what an
ordinary user can do with the /bin command.

-- 
(This computer runs FC7, my others run FC4, FC5 & FC6, in case that's
 important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux