Changeset 522

Show
Ignore:
Timestamp:
05/14/08 08:57:36 (4 months ago)
Author:
free
Message:

Don't ask password to sudoers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cdd-utils/trunk/cdd-config

    r513 r522  
    22 
    33libdir=/usr/lib/cdd-utils 
     4 
     5lsb=/etc/lsb-release 
     6 
     7if [ ! $lsb ]; then # we're probably on etch 
     8DISTRIB_ID=Debian 
     9DISTRIB_RELEASE=4.0 
     10DISTRIB_CODENAME=etch 
     11DISTRIB_DESCRIPTION="Debian 4.0" 
     12else 
     13  . $lsb 
     14fi 
    415 
    516. $libdir/common.sh 
  • cdd-utils/trunk/debian/changelog

    r518 r522  
    1010  * Added missing LMMS desktop file 
    1111  * Mount /proc/bus/usb to workaround broken udev midisport rule 
     12  * Don't ask password to sudoers 
    1213 
    1314 -- Free Ekanayaka <free@64studio.com>  Thu, 08 May 2008 21:55:32 +0200 
  • cdd-utils/trunk/lib/suites.sh

    r518 r522  
    5959    cdd-config menu hardy 
    6060    cdd-config midisport 
     61    cdd-config sudoers 
    6162 
    6263    # Various updates and fixes 
  • cdd-utils/trunk/lib/system.sh

    r506 r522  
    11# Grant a user superuser priviliges 
    22sudoers () { 
     3 
     4    cfg=/etc/sudoers 
     5    if ! exists $cfg; then warning $cfg not found; return; fi 
     6 
     7    if [ "$DISTRIB_ID" = "Ubuntu" ]; then 
     8        set_key "%admin" " " "ALL=(ALL) NOPASSWD: ALL" $cfg 
     9        exit 
     10    fi 
     11 
    312    USER=$1 
    413    if nullstr $USER; then warning "no user given"; return; fi