LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 06-07-2003, 05:43 PM   #1
Dailydesign
LQ Newbie
 
Registered: Jun 2003
Location: england
Distribution: RedHat 9.0
Posts: 3

Rep: Reputation: 0
Talking 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.
 
Old 06-07-2003, 05:48 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
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.
 
Old 06-07-2003, 06:42 PM   #3
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
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!
 
Old 06-08-2003, 05:56 AM   #4
Dailydesign
LQ Newbie
 
Registered: Jun 2003
Location: england
Distribution: RedHat 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 06-08-2003, 06:05 AM   #5
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
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....................
 
Old 06-08-2003, 06:20 AM   #6
Dailydesign
LQ Newbie
 
Registered: Jun 2003
Location: england
Distribution: RedHat 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
Cheers fellas

Will be dropping by this site alot i imagne

Andy
 
Old 06-08-2003, 06:24 AM   #7
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Danger, Danger, Danger. Dead Rat Killed My Slack vdemuth General 2 07-12-2004 03:54 PM
xhost + am I in danger? arpi Linux - Software 2 06-12-2004 09:38 PM
Will my Windows XP be in danger? J_angel2000 Linux - Newbie 4 02-22-2004 09:06 PM
Attempting to load postfix---Danger Will Robinson!!! rcmmrc Linux - Newbie 1 02-18-2004 12:59 AM
Free linux is in danger! Swift&Smart Linux - Software 2 11-20-2003 10:30 AM


All times are GMT -5. The time now is 10:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration