Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ask for root on demand?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
shimp999
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2003
Posts: 75
Location: Columbia, SC, USA

PostPosted: Wed Oct 08, 2003 10:01 pm    Post subject: ask for root on demand? Reply with quote

When I used Gnome before (in another distribution), everytime I wanted to change something or run a program that required root permission (like gdm login), it would ask me for the root password. I just recently emerged Gnome 2.4 and when I try to run the gdm login screen program, it tells me I must be in root to access it. How do I get it so it asks for root password instead? I really dont want to log out of my account, log into root, then make the changes. Thanks
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Thu Oct 09, 2003 12:16 am    Post subject: Reply with quote

You can use 'su' to elevate yourself to root privileges, or even 'su -' to log in as root without logging out. Just type 'exit' or ctrl-d to drop back to your normal shell when you're done.

Also, check out 'sudo' which can be used to run a single command as root and ensures that afterwards you are still in the original shell. I use sudo exclusively because I believe it's morally and ethically wrong to log in as root... :)

(Actually I'm not that bothered).

E.g. you could start gdm with:

Code:
$ sudo /etc/init.d/gdm start
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Thu Oct 09, 2003 12:51 am    Post subject: Reply with quote

For gnome to get teh little popup dialog I believe you need to find the .desktop file for the program and insert
Code:
gksu -u root
in the "Exec=" line before the program filename. Assuming they still don't have a menu editor for gnome2.
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Thu Oct 09, 2003 12:56 am    Post subject: Reply with quote

Ok, looks like I missed the point of your post - sorry.
Back to top
View user's profile Send private message
wdreinhart
Guru
Guru


Joined: 11 Jun 2003
Posts: 569
Location: 4QFJ12345678

PostPosted: Thu Oct 09, 2003 12:57 am    Post subject: Reply with quote

PowerFactor wrote:
Assuming they still don't have a menu editor for gnome2.


Why would gnome need a special app for editing the menu? :roll: Is it *that* hard to open Nautilus and type "applications://" in the location bar?
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Thu Oct 09, 2003 1:53 am    Post subject: Reply with quote

wdreinhart wrote:
Why would gnome need a special app for editing the menu? :roll: Is it *that* hard to open Nautilus and type "applications://" in the location bar?
Not once you know that's there. Heck, there's nothing hard about editing the files by hand once you figure it out or have someone tell you how. :roll:
Back to top
View user's profile Send private message
shimp999
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2003
Posts: 75
Location: Columbia, SC, USA

PostPosted: Thu Oct 09, 2003 5:18 am    Post subject: Reply with quote

ahh, thats what I was looking for, thanks Powerfactor
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum