Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #269290
| Path | csiph.com!weretis.net!feeder9.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Nicolas George <george@nsup.org> |
| Newsgroups | linux.debian.user |
| Subject | Re: How to run automatically a script as soon root login |
| Date | Mon, 13 May 2024 15:30:01 +0200 |
| Message-ID | <IDDUB-d4Js-3@gated-at.bofh.it> (permalink) |
| References | <IDwzL-d02T-1@gated-at.bofh.it> <IDC2t-d3BB-1@gated-at.bofh.it> <IDClP-d3If-9@gated-at.bofh.it> <IDCOR-d47e-3@gated-at.bofh.it> <IDCOR-d47e-1@gated-at.bofh.it> <IDDhT-d4gY-3@gated-at.bofh.it> <IDDhT-d4gY-1@gated-at.bofh.it> <IDDrz-d4ko-3@gated-at.bofh.it> <IDDrz-d4ko-1@gated-at.bofh.it> <IDDKW-d4Gq-9@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-user-request@lists.debian.org Mon May 13 13:24:23 2024 |
| Old-Return-Path | <george@phare.normalesup.org> |
| X-Amavis-Spam-Status | No, score=-9.049 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.7 |
| X-Ens-Nef-Client | 129.199.129.80 ( name = phare.normalesup.org ) |
| Reply-To | debian-user@lists.debian.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (nef.ens.fr [129.199.96.32]); Mon, 13 May 2024 15:23:59 +0200 (CEST) |
| X-Mailing-List | <debian-user@lists.debian.org> archive/latest/811296 |
| List-ID | <debian-user.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-user/> |
| List-Archive | https://lists.debian.org/msgid-search/ZkIUbvDwc2Z11Ry4@phare.normalesup.org |
| Approved | robomod@news.nic.it |
| Lines | 20 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Mon, 13 May 2024 15:23:58 +0200 |
| X-Original-Message-ID | <ZkIUbvDwc2Z11Ry4@phare.normalesup.org> |
| X-Original-References | <CAJdFKOnkcpodvK87qC26zFePHu0YWBdWT0DXmaUUJvgxjXtmnQ@mail.gmail.com> <ZkH4YXovYOvopzWu@wooledge.org> <CA+1FSijuGRQ_FGj=6jSpUwa3bq2XbLeZagASHZym9zT=HSDdew@mail.gmail.com> <ZkH_2vJJKLMlQEjf@randomstring.org> <ZkIEW8uHhW5URWNS@phare.normalesup.org> <865xvh51o8.fsf@example.com> <ZkIL32HoxYtTtZnn@tuxteam.de> <ZkINPpTj+YYVIhsQ@phare.normalesup.org> <ZkIOm/9JjIWUqIT7@tuxteam.de> <CA+1FSiiBrdYxTzBZUQnrXuPhaAp4cWP-X7NVy-cevfZUHCbwTw@mail.gmail.com> |
| Xref | csiph.com linux.debian.user:269290 |
Show key headers only | View raw
Mario Marietto (12024-05-13):
> The command iptables -A POSTROUTING -t nat -s 192.168.1.5 -j MASQUERADE
> doesn't work if invoked as a user,it says "you must be root". So,as
> user,the script seems to be working fine like this :
>
> function jumpto
> {
> label=$1
> cmd=$(sed -n "/$label:/{:a;n;p;ba};" $0 | grep -v ':$')
> eval "$cmd"
> exit
> }
You seem to be investing a lot of effort into a fragile solution to
emulate a deprecated execution control primitive.
Regards,
--
Nicolas George
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: How to run automatically a script as soon root login Greg Wooledge <greg@wooledge.org> - 2024-05-13 13:30 +0200
Re: How to run automatically a script as soon root login Mario Marietto <marietto2008@gmail.com> - 2024-05-13 13:50 +0200
Re: How to run automatically a script as soon root login Greg Wooledge <greg@wooledge.org> - 2024-05-13 14:00 +0200
Re: How to run automatically a script as soon root login Erwan David <erwan@rail.eu.org> - 2024-05-13 14:00 +0200
Re: How to run automatically a script as soon root login Nicolas George <george@nsup.org> - 2024-05-13 14:10 +0200
Re: How to run automatically a script as soon root login Stefan Monnier <monnier@iro.umontreal.ca> - 2024-05-13 15:50 +0200
Re: How to run automatically a script as soon root login Stefan Monnier <monnier@iro.umontreal.ca> - 2024-05-13 16:20 +0200
Re: How to run automatically a script as soon root login Mario Marietto <marietto2008@gmail.com> - 2024-05-13 17:30 +0200
Re: How to run automatically a script as soon root login Richmond <dnomhcir@gmx.com> - 2024-05-13 18:50 +0200
Re: How to run automatically a script as soon root login Stefan Monnier <monnier@iro.umontreal.ca> - 2024-05-13 14:10 +0200
Re: How to run automatically a script as soon root login Nicolas George <george@nsup.org> - 2024-05-13 14:20 +0200
Re: How to run automatically a script as soon root login Erwan David <erwan@rail.eu.org> - 2024-05-13 14:50 +0200
Re: How to run automatically a script as soon root login Richmond <dnomhcir@gmx.com> - 2024-05-13 15:20 +0200
Re: How to run automatically a script as soon root login Erwan David <erwan@rail.eu.org> - 2024-05-13 15:20 +0200
Re: How to run automatically a script as soon root login Greg Wooledge <greg@wooledge.org> - 2024-05-13 15:20 +0200
Re: How to run automatically a script as soon root login <tomas@tuxteam.de> - 2024-05-13 15:30 +0200
Re: How to run automatically a script as soon root login Mario Marietto <marietto2008@gmail.com> - 2024-05-13 19:10 +0200
Re: How to run automatically a script as soon root login <tomas@tuxteam.de> - 2024-05-13 14:50 +0200
Re: How to run automatically a script as soon root login <tomas@tuxteam.de> - 2024-05-13 15:00 +0200
Re: How to run automatically a script as soon root login Mario Marietto <marietto2008@gmail.com> - 2024-05-13 15:20 +0200
Re: How to run automatically a script as soon root login Nicolas George <george@nsup.org> - 2024-05-13 15:30 +0200
Re: How to run automatically a script as soon root login Mario Marietto <marietto2008@gmail.com> - 2024-05-13 16:00 +0200
Re: How to run automatically a script as soon root login Nicolas George <george@nsup.org> - 2024-05-13 15:00 +0200
Re: How to run automatically a script as soon root login Nicolas George <george@nsup.org> - 2024-05-13 15:20 +0200
Re: How to run automatically a script as soon root login Richmond <dnomhcir@gmx.com> - 2024-05-13 15:20 +0200
Re: How to run automatically a script as soon root login Richmond <dnomhcir@gmx.com> - 2024-05-13 14:50 +0200
Re: How to run automatically a script as soon root login Dan Ritter <dsr@randomstring.org> - 2024-05-13 15:10 +0200
Re: How to run automatically a script as soon root login Dan Ritter <dsr@randomstring.org> - 2024-05-13 14:20 +0200
Re: How to run automatically a script as soon root login Hans <hans.ullrich@loop.de> - 2024-05-13 18:10 +0200
Re: How to run automatically a script as soon root login <tomas@tuxteam.de> - 2024-05-13 18:40 +0200
Re: How to run automatically a script as soon root login Richard <rrosner5@gmail.com> - 2024-05-13 19:10 +0200
Re: How to run automatically a script as soon root login Greg Wooledge <greg@wooledge.org> - 2024-05-13 21:10 +0200
Re: How to run automatically a script as soon root login Mario Marietto <marietto2008@gmail.com> - 2024-05-13 21:20 +0200
Re: How to run automatically a script as soon root login David Wright <deblis@lionunicorn.co.uk> - 2024-05-13 22:00 +0200
Re: How to run automatically a script as soon root login Mario Marietto <marietto2008@gmail.com> - 2024-05-13 22:10 +0200
csiph-web