LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-14-2008, 01:09 PM   #1
odesus
LQ Newbie
 
Registered: May 2008
Posts: 10

Rep: Reputation: 0
Problems with bash...


Dear Comunity:

I have recently installed Fedora 8 on my PC. When I try to use some commands of bash like LSMOD, MODPROBE, IFCONFIG, etc; It simpley doesn't work:

[Soren@localhost ~]$ lsmod
bash: lsmod: command not found
[Soren@localhost ~]$

It just works with su -:

[root@localhost ~]# lsmod

What is happen with bash? Do I need to stablish a change in a script or do a special procedure for having bash commands available in all users?

Any help I really appreciate it. Thanks in advance.
 
Old 05-14-2008, 01:24 PM   #2
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
You would have to alter your .bash config files to add those commands to the users bash config. Those commands are usually reserved for the root user as most of them reside in /sbin. This would have to be added to the paths of the users you want to have access to those commands. This is definitely not a good idea on a multuser system to have /sbin commands available to regular users.

Bob
 
Old 05-14-2008, 01:30 PM   #3
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
It won't really matter if you add the /sbin and /usr/sbin to a user path, but it's a bit pointless. For many of the commands, you won't be able to run them anyway unless you're root, since they require root privileges. And as far as security is concerned, normal users can generally still access them, they just have to specify a full path. It's not really a security feature, more a matter of convenience.
 
Old 05-16-2008, 07:45 PM   #4
odesus
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Smile

Many thanks for your suggestions, I think as a newbie and specially if you start with Ubuntu, the security issue is not important for a while, after gain some experience using Fedora.

I changed Ubuntu to Fedora, 'cos I found many problems with driver compatibility specially if you're using an atheros wireless board. In Ubuntu sbin commands are available for all users. Nonetheless Fedora is stronger and more flexible and It has lots of potential for doing your own drivers!!
 
Old 05-17-2008, 07:41 PM   #5
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
/sbin

When using commands like ifconfig as a regular user than add the full path to the application (/sbin/ifconfig). As already pointed out, for most commands you have to be root to apply changes, though in many cases it should be possible to get at least some diagnostic output as a regular user from these /sbin applications (ifconfig for example is helpful even without being root).

Linux Archive

Last edited by seraphim172; 06-25-2008 at 04:27 AM.
 
  


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
Two Bash problems David the H. Linux - General 9 03-14-2006 01:44 PM
Bash and ls problems wapcaplet Linux - Software 2 01-19-2004 03:44 PM
bash problems tobymiller Programming 2 01-28-2003 09:18 PM
BASH problems subnet_rx Linux - General 3 11-17-2001 03:25 AM
Problems with bash script cowardnewbie Programming 0 09-30-2001 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:05 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