LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-26-2007, 10:40 PM   #1
kimobritton
LQ Newbie
 
Registered: Nov 2006
Distribution: suse 10.2
Posts: 12

Rep: Reputation: 0
running a program as root


I am currently using SUSE 10.2 and when i try to run a program at command line I have to su - to root AND then use sudo to actually run it, one command for example is ifconfig. Is there a way to fix this or should I just deal with it?

Thanks in Advance
 
Old 02-26-2007, 11:16 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
No need to use sudo when you are already root. You could configure sudo to allow your user to run commands as root so you could just sudo as your user account. Read the man page on sudo and sudoers for more information.
 
Old 02-27-2007, 04:34 AM   #3
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
You shouldn't need to be root to run ifconfig.
sudo should already be set up in suse. - so "$ sudo fdisk -l" should work. - Or "$ su" "$ fdisk -l" should work too.
 
Old 02-27-2007, 08:23 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You can also change permissions on any program to allow regular users to run it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[bash] running a GUI program as root billiejoex Linux - General 3 01-02-2006 01:21 PM
Running user program from root kilativv Linux - Software 2 07-31-2004 12:49 AM
need help running a program boogerman Linux - Software 8 11-24-2003 02:17 PM
installed as root, running as non-root? daniela Linux - Newbie 4 09-09-2003 04:41 PM
Running a new program bananaman Linux - Newbie 4 04-08-2003 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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