KMail a SMTP

Daniel Prynych Daniel.Prynych na hornet.cz
Středa Červen 13 17:53:47 CEST 2001


Dne st 13. červen 2001 17:02 jste napsal(a):
> Dobry den,
>
>  balicek usermode mal som nainstalovany a subory halt a shutdown sa
>  nevytvorily. Teraz neviem kde je zrada.
Jakou mate disribuci takto je to na RH5.1:

[dan na alvin dan]$ rpm -ql usermode
/etc/X11/applnk/System/userinfo.desktop
/etc/X11/applnk/System/usermount.desktop
/etc/X11/applnk/System/userpasswd.desktop
/etc/pam.d/halt
/etc/pam.d/poweroff
/etc/pam.d/reboot
/etc/pam.d/shutdown
/etc/security/console.apps/halt
/etc/security/console.apps/poweroff
/etc/security/console.apps/reboot
/etc/security/console.apps/shutdown
/usr/bin/consolehelper
/usr/bin/halt
/usr/bin/poweroff
/usr/bin/reboot
/usr/bin/shutdown
/usr/bin/userinfo
/usr/bin/usermount
/usr/bin/userpasswd
/usr/man/man1/userinfo.1
/usr/man/man1/usermount.1
/usr/man/man1/userpasswd.1
/usr/man/man8/consolehelper.8
/usr/man/man8/userhelper.8
/usr/sbin/userhelper
[dan na alvin dan]$


Ale je to celkem jedno.
Potrebujete consolehelper
pak udelat link /usr/bin/halt na /usr/bin/consolehelper
vytvorit /etc/pam/halt  je zde:
[dan na alvin dan]$ more /etc/pam.d/halt
#%PAM-1.0
auth       sufficient   /lib/security/pam_rootok.so
auth       required     /lib/security/pam_console.so
auth       required     /lib/security/pam_pwdb.so
account    required     /lib/security/pam_permit.so
[dan na alvin dan]$
a ted jen nastavit /etc/security/console.apps/halt treba takto
[dan na alvin dan]$ more /etc/security/console.apps/halt
USER=root
PROGRAM=/sbin/halt
SESSION=false
[dan na alvin dan]$

Dan


Další informace o konferenci Linux