Difference between revisions of "Sudo"

From CBLFS
Jump to navigationJump to search
(Upgraded sudo to 1.6.9p6 - patch removed, already implemented.)
Line 22: Line 22:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
if [ -f /etc/pam.d/su ]; then
 +
  sed "s/su$/&do/" /etc/pam.d/su > /etc/pam.d/sudo
 +
fi
  
 
== Multilib ==
 
== Multilib ==
Line 37: Line 40:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
if [ -f /etc/pam.d/su ]; then
 +
  sed "s/su$/&do/" /etc/pam.d/su > /etc/pam.d/sudo
 +
fi
  
 
=== N32 ===
 
=== N32 ===
Line 50: Line 56:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
if [ -f /etc/pam.d/su ]; then
 +
  sed "s/su$/&do/" /etc/pam.d/su > /etc/pam.d/sudo
 +
fi
 +
 
 
=== 64Bit ===
 
=== 64Bit ===
  
Line 62: Line 72:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
if [ -f /etc/pam.d/su ]; then
 +
  sed "s/su$/&do/" /etc/pam.d/su > /etc/pam.d/sudo
 +
fi
  
 
== Content ==
 
== Content ==

Revision as of 11:39, 6 January 2008

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 &&
if [ -f /etc/pam.d/su ]; then
  sed "s/su$/&do/" /etc/pam.d/su > /etc/pam.d/sudo
fi

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 &&
if [ -f /etc/pam.d/su ]; then
  sed "s/su$/&do/" /etc/pam.d/su > /etc/pam.d/sudo
fi

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 &&
if [ -f /etc/pam.d/su ]; then
  sed "s/su$/&do/" /etc/pam.d/su > /etc/pam.d/sudo
fi

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 &&
if [ -f /etc/pam.d/su ]; then
  sed "s/su$/&do/" /etc/pam.d/su > /etc/pam.d/sudo
fi

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=12572"