Difference between revisions of "Sudo"

From CBLFS
Jump to navigationJump to search
(Upgraded sudo to 1.6.9p6 - patch removed, already implemented.)
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
| http://www.courtesan.com/sudo/dist/sudo-{{Sudo-Version}}.tar.gz
 
| http://www.courtesan.com/sudo/dist/sudo-{{Sudo-Version}}.tar.gz
|-
 
!Download Patch:
 
| http://www.linuxfromscratch.org/patches/blfs/svn/sudo-{{Sudo-Version}}-envvar_fix-1.patch
 
 
|}
 
|}
  
Line 18: Line 15:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../sudo-{{Sudo-Version}}-envvar_fix-1.patch &&
 
 
  ./configure --prefix=/usr --libexecdir=/usr/lib \
 
  ./configure --prefix=/usr --libexecdir=/usr/lib \
 
     --enable-noargs-shell --with-ignore-dot --with-all-insults \
 
     --enable-noargs-shell --with-ignore-dot --with-all-insults \
Line 34: Line 30:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../sudo-{{Sudo-Version}}-envvar_fix-1.patch &&
 
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --libexecdir=/usr/lib \
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --libexecdir=/usr/lib \
 
     --enable-noargs-shell --with-ignore-dot --with-all-insults \
 
     --enable-noargs-shell --with-ignore-dot --with-all-insults \
Line 48: Line 43:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../sudo-{{Sudo-Version}}-envvar_fix-1.patch &&
 
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 --libexecdir=/usr/lib \
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 --libexecdir=/usr/lib \
 
     --enable-noargs-shell --with-ignore-dot --with-all-insults \
 
     --enable-noargs-shell --with-ignore-dot --with-all-insults \
Line 61: Line 55:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../sudo-{{Sudo-Version}}-envvar_fix-1.patch &&
 
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/lib \
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/lib \
 
     --enable-noargs-shell --with-ignore-dot --with-all-insults \
 
     --enable-noargs-shell --with-ignore-dot --with-all-insults \

Revision as of 17:05, 13 October 2007

Download Source: http://www.courtesan.com/sudo/dist/sudo-1.8.8.tar.gz

Introduction to Sudo

Project Homepage: Unknown

Dependencies

Non-Multilib

Compile the package:

./configure --prefix=/usr --libexecdir=/usr/lib \
    --enable-noargs-shell --with-ignore-dot --with-all-insults \
    --enable-shell-sets-home &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr --libexecdir=/usr/lib \
    --enable-noargs-shell --with-ignore-dot --with-all-insults \
    --enable-shell-sets-home &&
make

Install the package

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 --libexecdir=/usr/lib \
    --enable-noargs-shell --with-ignore-dot --with-all-insults \
    --enable-shell-sets-home &&
make

Install the package

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/lib \
    --enable-noargs-shell --with-ignore-dot --with-all-insults \
    --enable-shell-sets-home &&
make

Install the package

make install

Content

Installed Programs: sudo, sudoedit, and visudo
Installed Libraries: sudo_noexec.so
Installed Directories: None

Short Descriptions

sudo executes a command as another user as permitted by the /etc/sudoers configuration file.
sudoedit is a hard link to sudo that implies the -e option to invoke an editor as another user.
visudo allows for safer editing of the sudoers file.
sudo_noexec.so enables support for the "noexec" functionality which prevents a dynamically-linked program being run by sudo from executing another program (think shell escapes).
Retrieved from "?title=Sudo&oldid=11506"