LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   running a program as root (https://www.linuxquestions.org/questions/linux-general-1/running-a-program-as-root-532771/)

kimobritton 02-26-2007 10:40 PM

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

btmiller 02-26-2007 11:16 PM

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.

oskar 02-27-2007 04:34 AM

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.

pixellany 02-27-2007 08:23 AM

You can also change permissions on any program to allow regular users to run it.


All times are GMT -5. The time now is 11:25 AM.