sudo: converted to use PAM
This commit is contained in:
parent
45c632287c
commit
53d2ed7290
@ -1,4 +1,6 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/pam.d/
|
||||
-rw-r--r-- root/root etc/pam.d/sudo
|
||||
-r--r----- root/root etc/sudoers
|
||||
drwxr-x--- root/root etc/sudoers.d/
|
||||
-r--r----- root/root etc/sudoers.dist
|
||||
|
@ -1,5 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/core.pub
|
||||
RWRJc1FUaeVeqhN0XVne6DMHScg1csCJgnY7kRYVL+QyRAlRng6A6aYd9QdwqIz6VNMYZvagzQ9NL4r0KqYifWeDcZ3f09UoSgE=
|
||||
SHA256 (Pkgfile) = a9f31c7c73529f9b6cf4e692db679c484ebf061db8976687c7f2a4f4ef07b493
|
||||
SHA256 (.footprint) = d7fecfbf06f8d91c409a6d87301fb2c91ef0f8278f30a8fe9a28b0172088ac74
|
||||
RWRJc1FUaeVeqgwZ3nf94xAefnBAKcp/qnU7D5XMQ+334FJ14w0RCTM0DYIIlHLSi4Vi+g3Oyuvfv8YX4jAdj3u5oogm9+LvAAQ=
|
||||
SHA256 (Pkgfile) = b352194cd1c864f837dcd1f1b9f519ed96fe27fc4a37408b06f30072d661789d
|
||||
SHA256 (.footprint) = f33ee1b4a6f217a5b392e6c63e74e1d9db02b1715b79284b80a9938f6e87914d
|
||||
SHA256 (sudo-1.8.27.tar.gz) = 7beb68b94471ef56d8a1036dbcdc09a7b58a949a68ffce48b83f837dd33e2ec0
|
||||
SHA256 (sudo.pam) = d56499ea47e4c654032b278923ebee0caba4ca5b0fd242ea9c47204afc8a09e1
|
||||
|
12
sudo/Pkgfile
12
sudo/Pkgfile
@ -1,12 +1,13 @@
|
||||
# Description: Sudo (superuser do)
|
||||
# URL: http://www.sudo.ws/sudo/
|
||||
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
||||
# Depends on: zlib
|
||||
# Depends on: zlib linux-pam
|
||||
|
||||
name=sudo
|
||||
version=1.8.27
|
||||
release=1
|
||||
source=(https://www.sudo.ws/$name/dist/$name-$version.tar.gz)
|
||||
release=2
|
||||
source=(https://www.sudo.ws/dist/$name-$version.tar.gz \
|
||||
$name.pam)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
@ -16,11 +17,14 @@ build() {
|
||||
--with-logfac=auth \
|
||||
--with-vardir=/var/lib/sudo \
|
||||
--with-rundir=/var/run/sudo \
|
||||
--without-pam \
|
||||
--disable-nls
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
# PAM service file
|
||||
install -D -m 0644 $SRC/$name.pam \
|
||||
$PKG/etc/pam.d/$name
|
||||
|
||||
rm -r $PKG/usr/share/doc
|
||||
}
|
||||
|
11
sudo/sudo.pam
Normal file
11
sudo/sudo.pam
Normal file
@ -0,0 +1,11 @@
|
||||
#
|
||||
# /etc/pam.d/sudo - sudo service module configuration
|
||||
#
|
||||
|
||||
auth include common-auth
|
||||
|
||||
account include common-account
|
||||
|
||||
password include common-password
|
||||
|
||||
session include common-session
|
Loading…
x
Reference in New Issue
Block a user