From: Sodom <sodom@sodom.ru> To: harlan <community@altlinux.ru> Subject: Re: [Comm] Запрет удалённого исполнения некоторых команд. Date: Thu, 22 Apr 2004 10:30:09 +0400 Message-ID: <451396250.20040422103009@sodom.ru> (raw) In-Reply-To: <20040422095358.0700c5d4.harlan@mail.ru> Здравствуйте, harlan. Вы писали 22 апреля 2004 г., 6:53:58: h> Есть сервер ALM 2.2, который стоит в нескольких десятках h> километрах от меня. Я его администрирую через ssh. h> Возникла необходимость запретить исполнение некоторых команд с h> удалённого терминала (например halt, shutdown -h) h> даже от имени root, а с локального терминала разрешить эти h> команды только для root. Подскажите, как это можно h> сделать? Нутром чую, что через sudo, но можно узнать конкретнее - КАК? Желательно с примерами. Знаете, я в подобных случаях просто делаю chmod -x на подобные файлы. Чтобы уж 100% даже я сам по ошибке не мог случайно остановить сервер. Если приспичивает - ставлю исполнимый бит обратно. Наверное, в Вашем случае, необходимо все же локальному руту разрешить принципиально? h> _______________________________________________ h> Community mailing list h> Community@altlinux.ru h> http://lists.altlinux.ru/mailman/listinfo/community -- С уважением, Sodom mailto:sodom@sodom.ru Origin: Сколько голов, столько умов. Но первых всегда больше.
next prev parent reply other threads:[~2004-04-22 6:30 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-04-22 2:53 harlan 2004-04-22 6:27 ` [Comm] " Anton V. Boyarshinov 2004-04-22 6:30 ` Sodom [this message] 2004-04-22 10:24 ` Vitaly Ostanin 2004-04-22 11:03 ` Antonio
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=451396250.20040422103009@sodom.ru \ --to=sodom@sodom.ru \ --cc=community@altlinux.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