Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Guys, just installed Fedora 8 and the "ifconfig" command does not work. Is there an equivalent command in Fedora or is the command something that has to be installed?
you may be on to something there because I do not see /sbin/ in the PATH list. However, the "set" command you gave me does not seem to add it to the list either. I ran it as root and user.
well... I checked the /etc/profile file and I found the same exact syntax you quoted above but the command wasn't working. I then used the export command and now it's working perfectly as both root and user. Thanks for the help. Not sure why this didn't work out of the box. A bug perhaps?
Don't look in the /etc/profile, it can be confusing. Instead, please post the output of the following commands, from the shell where you have the problem. Please copy-paste them - re-typing increases the chance of error too much:
Code:
id
echo $SHELL
type ifconfig
echo $PATH
ls -l {/bin,/usr/bin,/sbin,/usr/sbin,/usr/local/sbin}/ifconfig
mount |grep ^/dev
type ifconfig
ls -l {/bin:/usr/bin,/sbin,/usr/sbin,/usr/local/sbin}/ifconfig
ls: cannot access /bin:/usr/bin/ifconfig: No such file or directory
ls: cannot access /usr/sbin/ifconfig: No such file or directory
ls: cannot access /usr/local/sbin/ifconfig: No such file or directory
-rwxr-xr-x 1 root root 71628 2007-08-23 11:44 /sbin/ifconfig
mount |grep ^/dev
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sdb1 on /mnt/windows type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
My question would be how did you switch to root to run the command ? did you su to root ?
When using su you need to add a space and a hyphen ( -) after su, so you will get root's environment. without the hyphen your PATH will not be updated..
su -
this is mentioned even in wikipedias description of su..
I was going to ask something like farslayer's question too. You did not do the id command, so it is not possible to verify that you have switched to assume root permissions, although you should be able to at least execute ifconfig without being root.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.