Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-02-2003, 06:53 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
A Simple Problem!

Hi im new to linux
ive got redhat 9 completly updated...

Ive made a simple bash script to execute a few commands that set up my wireless network card so it works properly! However the scripts contain commands that only work in the root account I want to be able to run these commands in my user account r52 so i can execute the script and get on the net. When i execute the script on my r52 account, the commands arent recognised. How can i allow my user account to be able to run commands like iwconfig and ifconfig?

any help would be much appreciated
thanks for reading
Old 11-02-2003, 07:10 PM   #2
Registered: Oct 2003
Location: Rochester, New York (USA)
Distribution: Debian
Posts: 119

Rep: Reputation: 15
You can use sudo. The package may or may not be installed but if not it should be available on the RH CD's.

You will need to edit the file /etc/sudoers to specify which users can run which commands. See the man pages for sudo and sudoers for details and examples.

Note also that system commands are usually in the /sbin directory which typically is not in normal users' path's so you may need to use the complete path of the command in your script.



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
Simple problem Blitzkreig75 Slackware 7 11-21-2005 09:13 PM
a simple C problem! kapsikum Programming 10 04-14-2005 04:07 AM
simple C++ Problem :) indian Programming 2 02-28-2005 10:42 AM
Help....Simple problem hkstandard Mandriva 1 09-20-2004 06:03 AM
Simple problem with .... FredrikN Linux - Networking 1 10-27-2002 06:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:42 PM.

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