Outils pour utilisateurs

Outils du site


tech:notes_userhelper_-_usermode

Notes userhelper - usermode

userhelper - usermode

Voir :

Voir aussi :

usermode contains the userhelper program, which can be used to allow configured programs to be run with superuser privileges by ordinary users, and several graphical tools for users:

  • userinfo allows users to change their finger information.
  • usermount lets users mount, unmount, and format filesystems.
  • userpasswd allows users to change their passwords.
sudo /usr/sbin/userhelper -t -w subscription-manager identity

/etc/security/console.apps/config-util

USER=root
UGROUPS=wheel

/etc/security/console.apps/subscription-manager

USER=root
PROGRAM=/usr/sbin/subscription-manager
SESSION=true
# ls -l /usr/bin/subscription-manager
lrwxrwxrwx. 1 root root 22 Feb 23 07:16 /usr/bin/subscription-manager -> /usr/bin/consolehelper

# grep '^PROGRAM=' /etc/security/console.apps/subscription-manager
PROGRAM=/usr/sbin/subscription-manager

Test

/etc/pam.d/sleep

#%PAM-1.0
auth            include         config-util
account         include         config-util
session         include         config-util

ou

/etc/pam.d/sleep

#%PAM-1.0
auth       sufficient   pam_rootok.so
auth required pam_warn.so
auth required pam_deny.so
auth       include      system-auth
account    include      system-auth
password   include      system-auth
session    include      system-auth

/etc/security/console.apps/sleep

USER=root
#UGROUPS=wheel
PROGRAM=/usr/bin/sleep
SESSION=true
#KEEP_ENV_VARS=http_proxy,ftp_proxy
#FALLBACK=yes
/usr/sbin/userhelper -t -w sleep 1
tech/notes_userhelper_-_usermode.txt · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki