Hopefully this is an easy question. I need to run a program as root user in the KDE GUI Desktop. I'm currently logged in as a local user. Is there a way to run a single program as the root use when logged in as a local user? This way the program will have all the permissions it needs in order to do it's job. Thanks, jay
Jay Paulson wrote:
Hopefully this is an easy question.
I need to run a program as root user in the KDE GUI Desktop. I'm currently logged in as a local user. Is there a way to run a single program as the root use when logged in as a local user? This way the program will have all the permissions it needs in order to do it's job.
There are a few ways of doing that. Some will automagically ask you for the root password and then run. You can also use sudoers. Another method is to simply su- or sux - to root and run from there.
Hopefully this is an easy question.
I need to run a program as root user in the KDE GUI Desktop. I'm currently logged in as a local user. Is there a way to run a single program as the root use when logged in as a local user? This way the program will have all the permissions it needs in order to do it's job.
There are a few ways of doing that. Some will automagically ask you for the root password and then run. You can also use sudoers. Another method is to simply su- or sux - to root and run from there.
I got it working. However, let me tell you what I did to make sure this is correct and secure. I just opened a terminal and su'ed to root. Then I went to the directory the application is in that I wanted to run and I executed the command. Poof that application is now running as root. :) Thanks!
Jay Paulson wrote:
Hopefully this is an easy question.
I need to run a program as root user in the KDE GUI Desktop. I'm currently logged in as a local user. Is there a way to run a single program as the root use when logged in as a local user? This way the program will have all the permissions it needs in order to do it's job.
There are a few ways of doing that. Some will automagically ask you for the root password and then run. You can also use sudoers. Another method is to simply su- or sux - to root and run from there.
I got it working. However, let me tell you what I did to make sure this is correct and secure. I just opened a terminal and su'ed to root. Then I went to the directory the application is in that I wanted to run and I executed the command. Poof that application is now running as root. :)
It it's something you want to run frequently, you can add it to the KMenu. When you create the item, there will be a box where you can specify to run as another user. Use root.
I got it working. However, let me tell you what I did to make sure this is correct and secure. I just opened a terminal and su'ed to root. Then I went to the directory the application is in that I wanted to run and I executed the command. Poof that application is now running as root. :)
It it's something you want to run frequently, you can add it to the KMenu. When you create the item, there will be a box where you can specify to run as another user. Use root.
I was wondering how to add things to the KMenu. Just figured it out. Very cool! I love SuSE hehe :) Thanks so much! jay
On Tuesday 13 September 2005 3:35 pm, Jay Paulson wrote:
Hopefully this is an easy question.
I need to run a program as root user in the KDE GUI Desktop. I'm currently logged in as a local user. Is there a way to run a single program as the root use when logged in as a local user? This way the program will have all the permissions it needs in order to do it's job.
There are a few ways of doing that. Some will automagically ask you for the root password and then run. You can also use sudoers. Another method is to simply su- or sux - to root and run from there.
I got it working. However, let me tell you what I did to make sure this is correct and secure. I just opened a terminal and su'ed to root. Then I went to the directory the application is in that I wanted to run and I executed the command. Poof that application is now running as root. :) This is one way to do it. As James alluded to there is a program called sudo(1). Sudo uses a file, /etc/sudoers, that allows various users to use sudo. Sudo is very useful for running a quick program: sudo foo In this case, foo will run as root.
-- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
There are a few ways of doing that. Some will automagically ask you for the root password and then run. You can also use sudoers. Another method is to simply su- or sux - to root and run from there.
I got it working. However, let me tell you what I did to make sure this is correct and secure. I just opened a terminal and su'ed to root. Then I went to the directory the application is in that I wanted to run and I executed the command. Poof that application is now running as root. :) This is one way to do it. As James alluded to there is a program called sudo(1). Sudo uses a file, /etc/sudoers, that allows various users to use sudo. Sudo is very useful for running a quick program: sudo foo In this case, foo will run as root.
We use sudo here at work. I haven't had the time to even look into it but with this quick explanation it seems really easy to figure out and probably the best method for security if I didn't add it to the KMenu. :) Thanks! jay
On Tuesday 13 September 2005 03:35 pm, Jay Paulson wrote:
Hopefully this is an easy question.
I need to run a program as root user in the KDE GUI Desktop. I'm currently logged in as a local user. Is there a way to run a single program as the root use when logged in as a local user? This way the program will have all the permissions it needs in order to do it's job.
There are a few ways of doing that. Some will automagically ask you for the root password and then run. You can also use sudoers. Another method is to simply su- or sux - to root and run from there.
I got it working. However, let me tell you what I did to make sure this is correct and secure. I just opened a terminal and su'ed to root. Then I went to the directory the application is in that I wanted to run and I executed the command. Poof that application is now running as root. :)
Thanks! ========
Jay, Many people seem to overlook this simple item, available both in KDE and Gnome. Open a shell, type "kdesu <program name>", then play with your program in root mode. I believe in Gnome it's gnomesu. Very handy that way and simple to add in the menu later using the same start command or to add a desktop icon. end of line Lee
On Tuesday, September 13, 2005 @ 11:36 AM, Jay Paulson wrote:
Hopefully this is an easy question.
I need to run a program as root user in the KDE GUI Desktop. I'm currently logged in as a local user. Is there a way to run a single program as the root use when logged in as a local user? This way the program will have all the permissions it needs in order to do it's job.
There are a few ways of doing that. Some will automagically ask you for the root password and then run. You can also use sudoers. Another method is to simply su- or sux - to root and run from there.
I got it working. However, let me tell you what I did to make sure this is correct and secure. I just opened a terminal and su'ed to root. Then I went to the directory the application is in that I wanted to run and I executed the command. Poof that application is now running as root. :)
Thanks!
I use su to start my Oracle system because there are some ulimits that need increasing and I can't do that from a regular user. So, I just put the - Su -c command root Into a file called orastart and made it an executable. Now, all I have to do to start Oracle is from my regular user account is - orastart Then I see all of the startup messages coming right to my terminal. Greg Wallace
participants (5)
-
BandiPat
-
Greg Wallace
-
James Knott
-
Jay Paulson
-
Jerry Feldman