openSUSE Forums > Surveys/Polls » sudo like Ubuntu?

Go Back   openSUSE Forums > Surveys/Polls
Forums FAQ Members List Search Today's Posts Mark Forums Read


Surveys/Polls Share opinions about various topics

View Poll Results: Which is 'better' ?
The traditional sudo/root access methods, like SuSE uses. 34 94.44%
Ubuntu's sudo-with-my-password, root-with-no-password method. 2 5.56%
Voters: 36. You may not vote on this poll

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-Jan-2009, 12:59
bear454's Avatar
Puzzled Penguin
 
Join Date: Jun 2008
Location: Bellingham, WA, USA
Posts: 12
bear454 hasn't been rated much yet
Send a message via ICQ to bear454 Send a message via AIM to bear454 Send a message via MSN to bear454 Send a message via Yahoo to bear454
Question sudo like Ubuntu?

Hey all,

I've been using *suse since 7.2, and really haven't bothered with a lot of other distros. But with desktop virtualization having become so easy, I figured it was time to broaden my horizons, and figure out what all the Ubuntu hubbub was about...

Aside from all the orange (thanks but no thanks, I like green just fine), the thing that struck me as radically different was the way sudo & root are handled; root has no password - you must sudo stuff, but with your own password.

I like this approach, in the appropriate hands (like mine). I figure, if I know the root password anyway, why not just use mine. I don't like the 'emulation' of this provided from YAST the last few versions with the option to have the root set the same as one user's password, as this isn't very multi-user friendly.

So, I'd like to know what you guys think of the Ubuntu-style of handling sudo: benefits, pitfalls, and what would it take to run an openSUSE system that way?
Reply With Quote
  #2 (permalink)  
Old 23-Jan-2009, 14:23
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,862
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: sudo like Ubuntu?

Throw away thought: Ubu's way is unsafe unless you can totally block sudo from selected other users who are inexperienced (e.g. the 10 yr old kdz from next door).
__________________
Drop in and visit some time.
Reply With Quote
  #3 (permalink)  
Old 23-Jan-2009, 14:53
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,220
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: sudo like Ubuntu?

Ubuntu's way is supposed to stop people from logging in as root, but at the expense of making the root password effectively the same as any privileged user (in group wheel, I think). So it's not without problems. If a user can be social engineered to do an unsafe sudo operation, then that opens up the system. Sorry, but I'd rather stick with the traditional model and keep the root password different. But then I'm a stick in the mud, what do you expect?
Reply With Quote
  #4 (permalink)  
Old 24-Jan-2009, 00:03
else_where's Avatar
Busy Penguin
 
Join Date: Mar 2008
Location: Toronto, Canada
Posts: 315
else_where hasn't been rated much yet
Default Re: sudo like Ubuntu?

Quote:
Originally Posted by bear454 View Post
...and what would it take to run an openSUSE system that way?
Yast -> Security and Users -> Sudo

Having said that, I haven't used it to configure sudo, since I guess I'm old school. I either su or kdesu anything I need root privileges for.

just my 2c...

Cheers,
KV
Reply With Quote
  #5 (permalink)  
Old 24-Jan-2009, 01:35
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,220
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: sudo like Ubuntu?

To make your setup for sudo like Ubuntu, if that's what you want:

visudo and change the config to give superuser permission to users in the group wheel with the user's password

Put the privileged users in the group wheel.

Test.

Disable root login by editing the password hash to be an impossible hash (does not correspond to any plaintext).

You might also want to make a wheel user's path include /sbin and /usr/sbin (in front) so that you don't have to type in the full path when using sudo.
Reply With Quote
  #6 (permalink)  
Old 24-Jan-2009, 02:22
conram's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,000
conram hasn't been rated much yet
Default Re: sudo like Ubuntu?

I prefer su than sudo, su is easier/shorter to type. In my native language su meaning is two lovely mountain with a green meaning
__________________
People who do not break things first will never learn to create anything
Reply With Quote
  #7 (permalink)  
Old 24-Jan-2009, 04:43
Magic31's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: The Netherlands
Posts: 1,297
Magic31 hasn't been rated much yet
Default Re: sudo like Ubuntu?

+1 for 'su - '

Keeps all the users as regulair users and special access when you need it on the separate root account.

Sudo is nice to add to let users start certain applications that need the rights..

The way Ubuntu implements sudo, in my eyes, makes it too easy to do something that can jepordize or flush your system.. Maybe not to bad for a desktop, but I don't like that thought on servers.
__________________
Have a lot of fun!
Reply With Quote
  #8 (permalink)  
Old 24-Jan-2009, 09:29
brucecadieux's Avatar
Busy Penguin
 
Join Date: Jun 2008
Location: Wales, MA
Posts: 294
brucecadieux hasn't been rated much yet
Default Re: sudo like Ubuntu?

I always set a separate password for the root acount.

I don't ubuntus sudo of using user passwords.

I was actually disappointed to see openSUSE offering to let people use the same password for a user and root account.

I think it is a dangerous practice akin to all the security problems that have plagued windows over the years.

Anyone sitting down in front of a given machine having access to root that easily just seems inherently wrong to me.
Reply With Quote
  #9 (permalink)  
Old 24-Jan-2009, 17:09
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,220
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: sudo like Ubuntu?

To be fair to Ubuntu it's only users that have been put in group wheel (this is done by "make user administrator" in GNOME). The first user is in, of course. Very Windowish.
Reply With Quote
Reply

Bookmarks

Tags
security, sudo, ubuntu


Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2