LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-09-2011, 07:59 AM   #1
nokangaroo
Member
 
Registered: Nov 2009
Posts: 102

Rep: Reputation: 16
ubuntu-like sudo in Debian?


I just did a quick Debian install as a break from messing with Gentoo, and I think that Debian has potential, but the sudo (I installed without root account) is a lot more cumbersome than in Ubuntu. I created an admin group and added myself to it and edited /etc/sudoers to look exactly like Ubuntu's sudoers file (with visudo, and it parsed okay), but I still don't have Ubuntu's sudo. Do I have to recompile sudo? I will do it if I have to. And please, no security lectures; I am responsible for my computer.
 
Old 03-09-2011, 08:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,821

Rep: Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116
what is "ubuntus sudo"? It's all just in the sudoers file, what's not working the same?
 
Old 03-09-2011, 09:31 AM   #3
nokangaroo
Member
 
Registered: Nov 2009
Posts: 102

Original Poster
Rep: Reputation: 16
Re: ubuntu's sudo

the differences are:

In ubuntu I can mount partitions on my internal harddisk without authentification when booted from external.

In Ubuntu I can choose "do not ask for password on login" for my secondary (desktop) account, and I get directly back to my main account after logging out without having to log in again.

I Ubuntu I don't have to authenticate again (within the grace period) after doing sudo -i and logging out, or after closing the terminal and reopening it.

All of this is very comfortable, safe ( no accidents ever in Ubuntu or MAC OS X), and I'd like to have it the same in Debian.

Last edited by nokangaroo; 03-09-2011 at 09:33 AM.
 
Old 03-09-2011, 09:34 AM   #4
odiseo77
Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid
Posts: 607

Rep: Reputation: 76
You should add a line like this to your /etc/sudoers file:

Code:
your_user    ALL=(ALL) ALL
Also, did you log out -and in again- after editing your sudoers file? (you must do it for the changes to take effect)
 
Old 03-09-2011, 10:50 AM   #5
odiseo77
Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid
Posts: 607

Rep: Reputation: 76
Quote:
Originally Posted by nokangaroo View Post
the differences are:

In ubuntu I can mount partitions on my internal harddisk without authentification when booted from external.

In Ubuntu I can choose "do not ask for password on login" for my secondary (desktop) account, and I get directly back to my main account after logging out without having to log in again.

I Ubuntu I don't have to authenticate again (within the grace period) after doing sudo -i and logging out, or after closing the terminal and reopening it.

All of this is very comfortable, safe ( no accidents ever in Ubuntu or MAC OS X), and I'd like to have it the same in Debian.
I thought you meant it didn't work at all. As for the automatic login, it depends on which login manager you're using. If you're using Gnome/GDM, then go to "System > Administration > Login screen"; set the user for which you want the automatic login, and the delay in seconds before other users login.
 
Old 03-09-2011, 11:11 AM   #6
caravel
Member
 
Registered: Apr 2005
Distribution: Debian Sid
Posts: 470

Rep: Reputation: 121Reputation: 121
Just use 'buntu...
 
Old 03-09-2011, 12:57 PM   #7
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Quote:
Originally Posted by nokangaroo View Post
I am responsible for my computer.
Enough said. Try the WWW, enough info out there.
Because if you ask, you will have to accept the (correct) answers.
 
Old 03-09-2011, 02:02 PM   #8
eSelix
Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Kubuntu
Posts: 807

Rep: Reputation: 162Reputation: 162
Quote:
I Ubuntu I don't have to authenticate again (within the grace period) after doing sudo -i and logging out, or after closing the terminal and reopening it.
For this is option "timestamp_timeout" in sudoers. But it is default 15 min, so I don't known why it does not work in your Debian.
 
Old 03-12-2011, 06:17 PM   #9
nokangaroo
Member
 
Registered: Nov 2009
Posts: 102

Original Poster
Rep: Reputation: 16
passwordless login to secondary account not yet solved

Partly solved. Edited /etc/sudoers by adding !tty_tickets so the "defaults" line reads

Defaults !tty_tickets,env_reset

This also works for ubuntu natty (and I found it in the ubuntu forums). Passwordless login to the secondary account still not working despite adding a nopasswdlogin group (probbly a bug, but not a sudo bug. The sudo question is solved, ahd I will add a new thread). The difference to Ubuntu now is that update-manager and synaptic will open without a password after authenticating at the terminal, so I'll have to type sudo -k when I'm done - not really a problem but I am not sure yet whether I want that. I'll keep looking and posting new threads. Nonsense from the debian user forums goes to /dev/null.

Last edited by nokangaroo; 03-12-2011 at 08:21 PM. Reason: Not yet solved
 
  


Reply

Tags
debian, sudo


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
Problem after upgrading sudo on Debian SID! Gothic_linux Linux - Newbie 2 05-03-2010 02:09 PM
Debian, swfdec, codecs, sudo b1f30 Debian 1 02-19-2009 05:31 PM
Debian, kdm config as sudo b1f30 Linux - Desktop 4 12-16-2008 01:49 PM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 0 02-25-2007 05:01 PM
aftr sudo cmd and pswd i get this E: Type 'http://archive.ubuntu.com/ubuntu' is not k turoblaztr Linux - General 1 01-14-2007 10:29 AM


All times are GMT -5. The time now is 12:23 PM.

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