Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37422971
en ru br
Репозитории ALT

Группа :: Система/Настройка/Прочее
Пакет: installer-feature-sudo-enable-by-default

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

installer-feature-sudo-enable-by-default-0.1/000075500000000000000000000000001121203053600212155ustar00rootroot00000000000000installer-feature-sudo-enable-by-default-0.1/Makefile000064400000000000000000000004121121203053600226520ustar00rootroot00000000000000install2_dir=$(datadir)/install2

install:
install -d $(install2_dir)
[ -d initinstall.d ] && cp -a initinstall.d $(install2_dir) ||:
[ -d preinstall.d ] && cp -a preinstall.d $(install2_dir) ||:
[ -d postinstall.d ] && cp -a postinstall.d $(install2_dir) ||:
installer-feature-sudo-enable-by-default-0.1/postinstall.d/000075500000000000000000000000001121203053600240135ustar00rootroot00000000000000installer-feature-sudo-enable-by-default-0.1/postinstall.d/01-sudo-for-wheel.sh000075500000000000000000000013641121203053600274340ustar00rootroot00000000000000#!/bin/sh -efu

. install2-init-functions

[ ! -f $destdir/etc/sudoers ] ||

touch $destdir/etc/sudoers

cat >"$destdir/etc/sudoers" << EOF
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# See the sudoers man page for the details on how to write a sudoers file.

# User alias specification
User_Alias WHEEL_USERS = %wheel
User_Alias XGRP_USERS = %xgrp

# If env_reset is disabled, sudo will NOT reset the environment
# to only contain the fixed list of variables.
# See sudoers(5) for details.

Defaults:WHEEL_USERS !env_reset

# Preserve DISPLAY and XAUTHORITY environment variables
# for "xgrp" group members.

Defaults:XGRP_USERS env_keep += "DISPLAY XAUTHORITY"

# User privilege specification
%wheel ALL=(ALL) ALL

EOF
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin