From: óÅÒÇÅÊ ðÁÒÁÄÅÅ× <psv@gdnet.dp.ua> To: Vlad Gousev <community@altlinux.ru> Subject: Re: [Comm] ip-up.local ??? Date: Thu, 16 Oct 2003 17:12:26 -0000 Message-ID: <18031437945.20031016201234@gdnet.dp.ua> (raw) In-Reply-To: <200310161700.32588.VladGousev@gmx.net> Hello Vlad, Thursday, October 16, 2003, 4:00:23 PM, you wrote: VG> Подскажите, пожалуйста, как сделать, чтобы при соединении с VG> инетом запускалось конкретное приложение, но от имени текущего VG> пользователя. Если прописать вызов из ip-up.local, то вызов VG> происходит от root... VG> Конкретно, я хочу, чтобы при коннекто запускался kget, а при VG> дисконнекте "killall kget". Вторая часть у меня получилась VG> (ip-down.local), а вот первую не знаю как реализовать... Как понимать текущего? Того имени которое в chap-secrets на авторизацию с "провайдером"? Если оно есть в числе пользователей на машинке, то наверное его имя можно взять в ip-up.local как $PPPLOGNAME и запускать процесс как su -c "/path/to/kget" $PPPLOGNAME. Не проверял, это совет навскидку :) С этого места можно наковырять много вариантов. Вообщем пересмотри по диогонали 'man pppd'. Я много полезного начал делать, когда посмтрел чего передается в "среде окружения" для ip-up.local. :) -- Best regards, Сергей mailto:psv@gdnet.dp.ua
next prev parent reply other threads:[~2003-10-16 17:12 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-10-16 13:01 Vlad Gousev 2003-10-16 17:12 ` óÅÒÇÅÊ ðÁÒÁÄÅÅ× [this message] 2003-10-16 18:10 ` Vlad Gousev 2003-10-18 7:56 ` [Comm] " Michael Shigorin 2003-10-18 19:01 ` Vlad Gousev 2003-10-18 20:24 ` Shur 2003-10-18 22:46 ` Vlad Gousev 2003-10-18 22:58 ` Borovoy M. 2003-10-18 23:30 ` Borovoy M. 2003-10-19 15:30 ` Vlad Gousev 2003-10-20 1:26 ` Borovoy M. 2003-10-19 15:29 ` Vlad Gousev
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=18031437945.20031016201234@gdnet.dp.ua \ --to=psv@gdnet.dp.ua \ --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