Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Archived > gmane.linux.redhat.fedora.general

gmane.linux.redhat.fedora.general gmane.linux.redhat.fedora.general newsgroup archive.

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2006-11-30, 11:10 AM CST
David Berg
Guest
 
Posts: n/a
using sudo

I'm in the process of switching from ubuntu to Fedora and am so far
impressed. The first thing I want to change is how administration is
handled. I like ubuntu's decision to remove the root password and only
allow root access through sudo.

So I gave myself full sudo access, disabled root logins, and eliminated
the root password. Works great on the command line.

The problem is this: How can I get the gui's to switch from wanting to
use an su interface (and asking for a non-existant root password) to
using sudo?

Is there setting or link I can change to have everything switch over?

--Dave

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

  #2  
Old 2006-11-30, 11:19 AM CST
Matthew Miller
Guest
 
Posts: n/a
Re: using sudo

On Thu, Nov 30, 2006 at 08:22:28AM -0600, David Berg wrote:
> So I gave myself full sudo access, disabled root logins, and eliminated
> the root password. Works great on the command line.


put yourself in the "wheel" group. (I recommend then giving yourself sudo
access simply with "%wheel ALL=(ALL) ALL", but whatever.)

Then, append the line "UGROUPS=wheel" to the end of every file in
/etc/security/console.apps which you want to have sudo-like behavior.

Unfortunately, there's no way to do this globally, but a little shell loop
could do the trick.

--
Matthew Miller mattdm@mattdm.org <http://mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

  #3  
Old 2006-11-30, 11:50 AM CST
Rex Dieter
Guest
 
Posts: n/a
Re: using sudo

David Berg wrote:

> I'm in the process of switching from ubuntu to Fedora and am so far
> impressed. The first thing I want to change is how administration is
> handled. I like ubuntu's decision to remove the root password and only
> allow root access through sudo.
>
> So I gave myself full sudo access, disabled root logins, and eliminated
> the root password. Works great on the command line.
>
> The problem is this: How can I get the gui's to switch from wanting to
> use an su interface (and asking for a non-existant root password) to
> using sudo?


kde and kdesu can be configured to use sudo, just put this in
/usr/share/config/kdesurc:
[super-user-command]
super-user-command=sudo

-- Rex


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

  #4  
Old 2006-12-02, 05:20 PM CST
David Berg
Guest
 
Posts: n/a
Re: using sudo

Matthew Miller wrote:
> On Thu, Nov 30, 2006 at 08:22:28AM -0600, David Berg wrote:
>> So I gave myself full sudo access, disabled root logins, and eliminated
>> the root password. Works great on the command line.

....
>
> Then, append the line "UGROUPS=wheel" to the end of every file in
> /etc/security/console.apps which you want to have sudo-like behavior.


Thank-you.

This gives the desired behavior for users in group wheel. However, for
users not in wheel it still asks for the nonexistent root password. Is
there a way to have the system simply state something like, "You don't
have permission to access this program. Contact your system administrator?"

Or perhaps there is a man page/doc I should take a look at instead of
asking here. Any pointers?

--Dave

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

  #5  
Old 2006-12-02, 05:40 PM CST
Matthew Miller
Guest
 
Posts: n/a
Re: using sudo

On Sat, Dec 02, 2006 at 06:18:32PM -0600, David Berg wrote:
> >>So I gave myself full sudo access, disabled root logins, and eliminated
> >>the root password. Works great on the command line.

> >Then, append the line "UGROUPS=wheel" to the end of every file in
> >/etc/security/console.apps which you want to have sudo-like behavior.

> Thank-you.
> This gives the desired behavior for users in group wheel. However, for
> users not in wheel it still asks for the nonexistent root password. Is
> there a way to have the system simply state something like, "You don't
> have permission to access this program. Contact your system administrator?"


Yes. In each of these files, there is a line which say says "USER=root".
Change that to "USER=<none>" (brackets and all), and, in combination with
UGROUPS=wheel, you'll get this behavior. (Anyone in wheel will be asked for
their own password; anyone else will get an "Insufficent Rights" error.
Which isn't as helpful as "contact your sysadmin", but close.)

> Or perhaps there is a man page/doc I should take a look at instead of
> asking here. Any pointers?


It's all documented in the "userhelper" man page, which I realize isn't
obvious.


--
Matthew Miller mattdm@mattdm.org <http://mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with sudo easalee Installation Help 5 2008-01-05 06:07 PM CST
sudo help seeker010 General Support 2 2007-02-04 10:57 AM CST
pb with sudo Liloulinx gmane.linux.redhat.fedora.general 2 2005-08-16 10:30 AM CDT
sudo or su -? gertbor General Support 7 2005-07-06 10:37 AM CDT
sudo centin Software 4 2004-04-25 02:23 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 07:47 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
vB Enterprise Translator (vBET) coded by NLP-er