LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-12-2006, 07:47 PM   #1
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
yet another kernel problem -- please read


Hey guys I'm having some kernel problems. I didn't want to post twice so all I'm gonna ask is if you guys wouldn't mind, take a look here:

http://www.linuxquestions.org/questi...d.php?t=473311

If you have any suggestions for me please let me know

thanks,
nomb
 
Old 08-12-2006, 09:17 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
it's not about updating that. It's how the command works.
su - will also load the root's environment, so it will also update the PATH variable. All the sbin directories are in the root's PATH but not in the user's path because in those directories there are commands that only root will probably want to execute.

su does not load the root's environment, so the only commands you can access without having to type the full path to the command are the ones that are in your users path.
 
Old 08-12-2006, 11:09 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Yes, indeed .. I am confused by the question also. su is expressly and carefully designed to do this... It becomes extremely important, both for security issues (to make sure that the su environment sees and uses exactly what it's supposed to (don't forget that it can be used to invoke users other than root!) ... and for correct operation in "chroot" situations.
 
Old 08-13-2006, 05:51 PM   #4
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
oh, i understand now. I've used linux for a decent amount of time and I've never known that. Some distros act differantly but the way that you are explaning it makes sense. So if I install ndiswrapper and want to be able to run it as reg user or a su I need to copy it into my user's /sbin/ directory. Is that correct?
 
  


Reply



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
The kernel I compiled reads my sata drives as hda even though the rpm kernel read sda abefroman Linux - Software 5 07-10-2006 04:42 PM
using profs_example.c to read data from kernel android_online Linux - Kernel 5 06-06-2006 09:10 AM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM
can't read superblock - new kernel jamesstaylor Linux - Newbie 3 09-29-2003 11:01 AM
Kernel configuration could not be read?? rberry88 Linux - Newbie 7 08-30-2003 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:23 PM.

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