LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-20-2005, 10:54 AM   #1
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
Root Problem


I have a little root problem. If I go to the terminal as a user and type su to login as root, i can not run any root commands such as lsmod. But if i log off and log in as root i can run lsmod. just a minor annoyance.
 
Old 06-20-2005, 11:08 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
su - root put's root's path in place.. without the dash, your not getting root's own path.

lsmod usually resides in /sbin which isn't in regular users $PATH by default..

Do a:

su

And then once your logged in check your $PATH.

Then do:

su - root

And then check your $PATH and compare.. and that will be why you can't simply run lsmod. Either login with the dash or place the full path to the command not in your $PATH which would be /sbin/lsmod to run the command..
 
  


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
Root problem Daniboy Linux - Software 2 10-08-2005 02:44 AM
root problem phatbastard Slackware 3 12-01-2004 10:28 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
Root problem chamkila Linux - Security 2 11-21-2001 09:44 AM
root problem almostnew Linux - General 14 08-28-2001 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration