Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-07-2003, 05:43 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2003
Location: england
Distribution: RedHat 9.0
Posts: 3
Rep:
|
Danger newbie about
**** Sorry Posted it in wrong forum pls move if poss thanks****
Hi , i got an old 500mhz PC that i got from work and so i got redhat v 9.0 on it, im a total beginer so u hav bin warned.
The problem i got is that i cannont exicute commands from the console when i log in using my profile i created on installing, if however i log in as root (bad i know  ) then i can run them fine. im talking about the commands located in the sbin dir's such as ifconfig and the like. i can use ping and ls fine, but noit the more intresting ones and i wanna get dug in a see what the commands do. i just dont wanna be exicuting em as root when i do know wot im doing. Maybe for all i know is that it should b like this only that root can exicute these more complex commands, is tats the case can i change attrib's on files to enable other profiles to exicute them, or upgrate my accound a lil?
thanks
andy
Last edited by Dailydesign; 06-07-2003 at 05:49 PM.
|
|
|
|
06-07-2003, 05:48 PM
|
#2
|
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,088
|
in a console, type:
su (then hit enter)
enter root's pass word (then hit enter)
at the prompt you should see a $ when the console first opens, th a # when you run su. The # means you are running as superuser/root. The commands should now be available.
|
|
|
|
06-07-2003, 06:42 PM
|
#3
|
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
Re: Danger newbie about
Quote:
Originally posted by Dailydesign
Maybe for all i know is that it should b like this only that root can exicute these more complex commands, is tats the case can i change attrib's on files to enable other profiles to exicute them, or upgrate my accound a lil?
|
You sir are correct. Don't change attributes (if you even can) Those binaries are for root only. Just do as the other poster suggested and su to root when you need to run those particular commands. After all you won't learn enough by being afraid of hosing your install. I did it this morning and am finally back up and running after I went a bit haywire with apt and totally screwed myself. So you have re-install, blah, who cares. This is how we all learn.
Good Luck!
|
|
|
|
06-08-2003, 05:56 AM
|
#4
|
|
LQ Newbie
Registered: Jun 2003
Location: england
Distribution: RedHat 9.0
Posts: 3
Original Poster
Rep:
|
Hey, sorry guys, i should have mentiond before in my first post, i did try the su command and still get the same, it telling me the command is not found even when im in the su root mode, copy from console here.
[achesman@tuxxx achesman]$ ifconfig
bash: ifconfig: command not found
[achesman@tuxxx achesman]$ su
Password:
[root@tuxxx achesman]# ifconfig
bash: ifconfig: command not found
[root@tuxxx achesman]#
I have even tried this in the sbin dir where the command ersides, and still the same. I can only exicute em by actually logging into the GUI on start up.
Thanks for ya help guys
Andy
|
|
|
|
06-08-2003, 06:05 AM
|
#5
|
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
Quote:
Originally posted by Dailydesign
Hey, sorry guys, i should have mentiond before in my first post, i did try the su command and still get the same, it telling me the command is not found even when im in the su root mode, copy from console here.
[achesman@tuxxx achesman]$ ifconfig
bash: ifconfig: command not found
[achesman@tuxxx achesman]$ su
Password:
[root@tuxxx achesman]# ifconfig
bash: ifconfig: command not found
[root@tuxxx achesman]#
I have even tried this in the sbin dir where the command ersides, and still the same. I can only exicute em by actually logging into the GUI on start up.
Thanks for ya help guys
Andy
|
Ahhh, that is b/c it is not in you path. try:
#./ifconfig
while in the sbin dir to let bash know you are expecting it to look in the present working dir. Like so:
[bignate@redbox3 bignate]$ cd /sbin/
[bignate@redbox3 sbin]$ ifconfig
bash: ifconfig: command not found
[bignate@redbox3 sbin]$ ./ifconfig
eth0 Link encap:Ethernet HWaddr....................
|
|
|
|
06-08-2003, 06:20 AM
|
#6
|
|
LQ Newbie
Registered: Jun 2003
Location: england
Distribution: RedHat 9.0
Posts: 3
Original Poster
Rep:
|
Cheers fellas
Will be dropping by this site alot i imagne
Andy
|
|
|
|
06-08-2003, 06:24 AM
|
#7
|
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
No problem...I can remember when I first started and I was trying to compile and run a C program I wrote. Man I found the damn thing it it still wouldn't run. Well a nice guy on a mailing list I belong to tipped me to using ./ What a difference a little info can make. Glad to be able to pass it on. Good luck and see you around the forums.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:33 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|