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 |
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.
|
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. |
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. |