From: "Dmitry V. Levin" <ldv@fandra.org> To: mandrake-russian@linuxteam.iplabs.ru Subject: [mdk-re] Re: [mdk-re] reboot для юзера Date: Fri Mar 2 02:58:01 2001 Message-ID: <20010302030148.C16965@LDV.fandra.org> (raw) In-Reply-To: <01030205524400.02044@pif.b5.mephi.ru>; from serpiph@mail.ru on Fri, Mar 02, 2001 at 05:52:44AM +0300 [-- Attachment #1: Type: text/plain, Size: 1792 bytes --] On Fri, Mar 02, 2001 at 05:52:44AM +0300, Sergei wrote: > > Есть тут такой вопрос: в RedHat мне понравился пакет usermode (или что-то > > > около того), который позволял обычным пользователям запускать reboot, > > > halt, poweroff, shutdown (естественно, что можно было настроить, кому это > > > разрешено). Что-то эта возможность исчезла... Можно ли это вернуть (или > > > обойти), тем более,что есть consolehelper, userhelper, но нет ссылок > > > /bin/<poweroff|halt|shutdown|reboot> на consolehelper. И стоит ли? > > > > В любом случае лучше используйте sudo. > > См. sudo(8), sudoers(5). > Вообще-то одно дело набрать reboot, а другое - sudo reboot. Что проще? Проще alias reboot="sudo reboot" > Кроме того, можно использовать следующую конфигурацию pam: > #%PAM-1.0 > auth sufficient /lib/security/pam_rootok.so > auth required /lib/security/pam_listfile.so item=user sense=allow > file=/etc/power.operator onerr=fail > auth required /lib/security/pam_console.so > auth required /lib/security/pam_stack.so service=system-auth > account required /lib/security/pam_permit.so > > В /etc/power.operator лежат имена тех, кому это разрешено. > > А в /etc/security/console.apps (пример для reboot): > USER=<user> > PROGRAM=/sbin/reboot > SESSION=false > FALLBACK=false > > Хотя кому как нравиться... Точно. Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2001-03-02 2:58 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-03-01 23:14 [mdk-re] reboot ÄÌÑ ÀÚÅÒÁ Sergei 2001-03-02 0:44 ` [mdk-re] Re: [mdk-re] reboot для юзера Dmitry V. Levin 2001-03-02 2:49 ` [mdk-re] Re: [mdk-re] reboot ÄÌÑ ÀÚÅÒÁ Sergei 2001-03-02 2:58 ` Dmitry V. Levin [this message] 2001-03-02 3:05 ` Sergei 2001-03-02 3:17 ` [mdk-re] Re: [mdk-re] reboot для юзера Dmitry V. Levin 2001-03-02 2:56 ` [mdk-re] Re: [mdk-re] reboot ÄÌÑ ÀÚÅÒÁ Sergei
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010302030148.C16965@LDV.fandra.org \ --to=ldv@fandra.org \ --cc=mandrake-russian@linuxteam.iplabs.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git