UmVirt LFS Package info

DB commit: c78e95157185199cceff370fa5b5f1dd2a1be2fa
APP commit: cac3f2066a9a05955b29d720b9b9b14f534d21c2

sudo

The Sudo package allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while logging the commands and arguments.

Package info

Codename: sudo
Source file: sudo-1.8.23.tar.gz
Source directory: sudo-1.8.23
Package URL: https://umvirt.com/linux/downloads/0.1/packages/s/sudo-1.8.23.tar.gz
Package md5-checksum URL: https://umvirt.com/linux/downloads/0.1/packages/s/sudo-1.8.23.tar.gz.md5sum
Dependances: Linux-PAM.
Dependance of: libreoffice.
Patches: *** NO PATCHES FOUND ***
Addons: *** NO ADDONS FOUND ***
Nestings *** NO NESTINGS FOUND ***
Configuration script:
./configure --prefix=/usr              \
            --libexecdir=/usr/lib      \
            --with-secure-path         \
            --with-all-insults         \
            --with-env-editor          \
            --docdir=/usr/share/doc/sudo-1.8.23 \
            --with-passprompt="[sudo] password for %p: "

Build script:
make

Install script:
make install &&
ln -sfv libsudo_util.so.0.0.0 /usr/lib/sudo/libsudo_util.so.0
groupadd -g 100 sudo
groupadd -g 101 admin

useradd -u 801 -g 101 \
-G admin,sudo \
-d /home/maintainer \
-p "ulfs" \
maintainer 

mkdir -v /home/maintainer
chown maintainer /home/maintainer
chown -R 801:101 /var/cache/ulfs-packages
chown -R 801:101 /var/log/ulfs-packages
chown -R 801:101 /sources

cat > /etc/sudoers << "EOF"
User_Alias ADMIN = maintainer

root ALL=(ALL:ALL) ALL


# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# Allow people in group ADMIN to run all commands without a password
ADMIN       ALL = NOPASSWD: ALL

EOF

cat > /etc/pam.d/sudo << "EOF"
# Begin /etc/pam.d/sudo

# include the default auth settings
auth      include     system-auth

# include the default account settings
account   include     system-account

# Set default environment variables for the service user
session   required    pam_env.so

# include system session defaults
session   include     system-session

# End /etc/pam.d/sudo
EOF
chmod 644 /etc/pam.d/sudo