View previous topic :: View next topic |
Author |
Message |
jdhore Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 13 Apr 2007 Posts: 106
|
Posted: Thu May 24, 2007 4:24 pm Post subject: 2 security questions involving sudo |
|
|
1. I have sudo installed, is there an easy way to add my standard user account as a sudoer without using visudo or manually editing /etc/sudoers (it looks scary and i suck at vi) (i do have Gnome installed if that makes things easier)?
2. I have Gnome installed, and when i run an app that requires root permissions, it doesn't want to popup a box asking for my root password and the only way to run it as root is from the commandline by either su, then the app name or gksu appname. Is there any way to have me be able to launch it under my standard account, and have it popup a box asking for my root password? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
joyo222 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 May 2006 Posts: 44
|
Posted: Thu May 24, 2007 5:26 pm Post subject: |
|
|
i can't help you with the gnome stuff, but the first one is easy. just add this one line in /etc/sudoers to give yourself full sudo permissions:
Code: |
<your_username> ALL=(ALL) ALL |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BrummieJim l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 22 Jul 2005 Posts: 683
|
Posted: Thu May 24, 2007 5:36 pm Post subject: |
|
|
Is your user a member of the wheel group? You can find out by typing groups on the command line. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jdhore Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 13 Apr 2007 Posts: 106
|
Posted: Thu May 24, 2007 5:58 pm Post subject: |
|
|
joyo222 wrote: | i can't help you with the gnome stuff, but the first one is easy. just add this one line in /etc/sudoers to give yourself full sudo permissions:
Code: |
<your_username> ALL=(ALL) ALL |
|
Thank you very much... /me is happy being a sudoer
@BrunnieJim
Yes, my user is a member of the wheel group....but i thought wheel was just for su.... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jmbsvicetto Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/131796264c80fa19b97a2.png)
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Thu May 24, 2007 6:56 pm Post subject: |
|
|
Hi.
jdhore wrote: |
@BrunnieJim
Yes, my user is a member of the wheel group....but i thought wheel was just for su.... |
Does the following extract from /etc/sudoers answer your question?
Code: | # Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL |
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|