LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-26-2011, 06:23 PM   #1
nokangaroo
Member
 
Registered: Nov 2009
Posts: 102

Rep: Reputation: 16
Are there good reasons for the differences in sudo behaviour in Maverick and Natty?


<Disclaimer> As I have been misunderstood in a previous thread which led to some off-topic replies (to which I tried to give sensible answers which I will not do again), let me state up front that I am aware of the security issues involved in altering sudo settings, and that everybody reading this thread should be aware of them too. </Disclaimer>

Is there a way to make Natty's sudo behave as in Maverick and Lucid? I can add a !tty_tickets entry to etc/sudoers, but this will also unlock GUI applications, which is more than I want. Is this a bug? In Lucid and Maverick (where I use the default sudoers file), tty tickets are off by default, but if I close the terminal without typing sudo -k and open Synaptic or Gparted (by clicking on the desktop icon or menu item) I have to reenter my password, which is the behaviour I want (Of course I can open them from the terminal, but the point is that the privileges of the terminal and the GUI seem to be separated). Can I reconfigure Natty's sudo to behave as in Maverick? Or is there a good reason for the new behaviour? (And if there is, why is Maverick's sudo not updated?)
 
Old 03-26-2011, 09:10 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,858
Blog Entries: 1

Rep: Reputation: Disabled
I'm curious: exactly what behavior is it that you want?
 
Old 03-28-2011, 04:33 PM   #3
nokangaroo
Member
 
Registered: Nov 2009
Posts: 102

Original Poster
Rep: Reputation: 16
Actually, by now I am mainly curious myself,and trying to figure out whether the !tty_tickets entry I added to /etc/sudoers is a good idea, or whether to activate the root password for Debian. Sudo seems to have been updated a lot recently, so there seems to be a lot of doubt around about it, and nothing really helpful on the www.

In ubuntu I could (and still can) do sudo -i and exit without having to retype the password again before the next sudo, but if I opened another terminal, or a GUI application that required privileges I had to authenticate again. So there is a difference to the present behaviour of sudo (in Natty and Debian), where exit will kill your timestamp. I can see how that might be safer, but it is very cumbersome. As I have no files on my computer that I can't afford to lose and use ufw default deny, it may be permissible to use less strict settings. So what I want is to get back the old sudo -i and exit behaviour but leave the rest as it is, if that is possible or desirable.
 
Old 03-28-2011, 05:22 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing
Posts: 1,401

Rep: Reputation: 195Reputation: 195
This has to do with updates to bash not to Debian or Ubuntu.

If you exit by typing "exit" you should be fine or if you use Ctrl+d to exit. That last has the advantage of not filling your history with exit commands.

I, personally, have no use for sudo in Debian at all. I prefer to just use "su" and never have to use sudo at all. For that matter I usually just "sudo su" in Ubuntu.
 
Old 04-12-2011, 10:56 AM   #5
nokangaroo
Member
 
Registered: Nov 2009
Posts: 102

Original Poster
Rep: Reputation: 16
Thanks, widget. I have been thinking of getting rid of sudo myself. Guess there is a reason that Debian doesn't use it by default.
 
  


Reply

Tags
maverick, sudo, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nautilus Elementary is Back! PPAs for Ubuntu 11.04 Natty, Ubuntu 10.10 Maverick Updated LXer Syndicated Linux News 0 03-23-2011 09:41 PM
LXer: Nautilus Elementary Lives On, Version 2.32 Will Land In Ubuntu Maverick And Natty Soon LXer Syndicated Linux News 0 03-20-2011 09:01 AM
LXer: 27 good reasons to love Linux LXer Syndicated Linux News 0 08-30-2010 08:30 PM
How to change sudo behaviour? shame Suse/Novell 9 05-22-2006 02:14 PM
start using linux mandrake...need some good reasons wesleywest Mandriva 2 10-29-2004 10:20 AM


All times are GMT -5. The time now is 07:57 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration