#5537 BLOC Update.: Use sudo, not su, to get root.

Zarro Boogs per Child bugtracker at laptop.org
Fri Feb 1 13:13:40 EST 2008


#5537: Use sudo, not su, to get root.
----------------------+-----------------------------------------------------
  Reporter:  cscott   |       Owner:  ApprovalForUpdate
      Type:  defect   |      Status:  new              
  Priority:  blocker  |   Milestone:  Update.1         
 Component:  distro   |     Version:                   
Resolution:           |    Keywords:                   
  Verified:  0        |    Blocking:  5819             
 Blockedby:           |  
----------------------+-----------------------------------------------------
Changes (by cscott):

 * cc: bernie (added)
  * blockedby:  6316 =>


Comment:

 olpcsudo 1.2, now in joyride, fixes the problem with options which erikos
 describes.  I have tested joyride-1625 by manually updating the olpcsudo
 package, but I will test the next joyride build and confirm.

 jg: this is primarily a pilgrim patch, since we are altering the pam
 configuration, the groups which 'olpc' belongs to, and the permissions on
 /bin/su.  There is a small 'sudo' script which is currently in the
 'olpcsudo' package in joyride for testing, but I'd expect that dgilmore
 will want to move that into olpc-utils for a proper release (although this
 can be done between RC2 and RC3).  bernie, could you help me move the sudo
 script into olpc-utils?

 The 'become_root' problems are trac #6316, a separate bug.  Basically
 become_root is fundamentally broken and should be removed, but if it is
 kept it should use 'sudo -s', and not 'su -', since the latter command
 explicitly asks for an environment 'like initial login' which su
 interprets to mean that extraneous environment variables (like SUGAR_PATH)
 should be removed.

-- 
Ticket URL: <http://dev.laptop.org/ticket/5537#comment:44>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list