LinuxQuestions.org
Review your favorite Linux distribution.
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 11-02-2003, 05:53 PM   #1
r52
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
rich
 
Old 11-02-2003, 06:10 PM   #2
tgflynn
Member
 
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.

Tim
 
  


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

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

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