Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #64487
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "J.O. Aho" <user@example.net> |
| Newsgroups | alt.os.linux |
| Subject | Re: How to allow execution of a script requiring root privileges? |
| Date | Thu, 9 Apr 2020 11:46:47 +0200 |
| Lines | 37 |
| Message-ID | <hf8987Fr888U1@mid.individual.net> (permalink) |
| References | <4e608c7c-9163-4ac6-bd5f-64f1a24a052c@googlegroups.com> <slrnr8s49b.m22.nedlatham@woden.valhalla.oz> <hf6iiiFgdgsU1@mid.individual.net> <87sghd2hqi.fsf@LkoBDZeT.terraraq.uk> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net Pa/E/RROclCnoIGMVhYLAQLy1mzdzvNKsG5kDyqN841L3m5YCo |
| Cancel-Lock | sha1:A6qyfrvS/PZxvfksD8EMDjWhpIU= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
| In-Reply-To | <87sghd2hqi.fsf@LkoBDZeT.terraraq.uk> |
| Content-Language | en-US-large |
| Xref | csiph.com alt.os.linux:64487 |
Show key headers only | View raw
On 09/04/2020 10.20, Richard Kettlewell wrote: > "J.O. Aho" <user@example.net> writes: >> On 08/04/2020 20.00, Ned Latham wrote: >>> Bengt T wrote: >>>> >>>> In my backup script, using rsync, some directories/files will not be >>>> processed because they are only accessible by root. My way around this >>>> is to use "sudo my_backup.script" and provide a password. >>>> >>>> My wish is to allow execution of the backup script directly without >>>> "sudo..." and password. >>>> >>>> Is/are there any way/s to accomplish this? >>> >>> Put your username and rsync in /etc/sudoers >> >> That would be a security issue, as now you allow the user to sync any >> file, in which ever direction, so with all the vulnerabilities in >> browsers in theory a remote attacker could overwrite or create new >> files in where ever on the system. > > An attacker can already do that, in the OP’s configuration. If you can > sudo to root from an account, that account is equivalent to root in > security terms. The requirement to type a password does nothing more > than slow the attacker down slightly; there are multiple ways an > attacker can arrange to capture it. Yes, an attacker could figure out the local users password, it's a bit more job than just execute a command. A small rock on the road is better than no rock at all if you want to keep folks from using the road. Had been nice to see a 2 factor authentication for sudo/su. -- //Aho
Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to allow execution of a script requiring root privileges? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-08 10:02 -0700
Re: How to allow execution of a script requiring root privileges? "Carlos E.R." <robin_listas@es.invalid> - 2020-04-08 19:20 +0200
Re: How to allow execution of a script requiring root privileges? Aragorn <thorongil@telenet.be> - 2020-04-08 19:54 +0200
Re: How to allow execution of a script requiring root privileges? Aragorn <thorongil@telenet.be> - 2020-04-08 19:58 +0200
Re: How to allow execution of a script requiring root privileges? Soviet_Mario <SovietMario@CCCP.MIR> - 2020-04-08 21:30 +0200
Re: How to allow execution of a script requiring root privileges? Aragorn <thorongil@telenet.be> - 2020-04-08 21:35 +0200
Re: How to allow execution of a script requiring root privileges? Soviet_Mario <SovietMario@CCCP.MIR> - 2020-04-09 16:03 +0200
Re: How to allow execution of a script requiring root privileges? Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-08 13:00 -0500
Re: How to allow execution of a script requiring root privileges? "J.O. Aho" <user@example.net> - 2020-04-08 20:13 +0200
Re: How to allow execution of a script requiring root privileges? "Carlos E.R." <robin_listas@es.invalid> - 2020-04-08 20:27 +0200
Re: How to allow execution of a script requiring root privileges? Richard Kettlewell <invalid@invalid.invalid> - 2020-04-09 09:20 +0100
Re: How to allow execution of a script requiring root privileges? "J.O. Aho" <user@example.net> - 2020-04-09 11:46 +0200
Re: How to allow execution of a script requiring root privileges? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-08 12:23 -0700
Re: How to allow execution of a script requiring root privileges? Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-08 19:36 -0500
Re: How to allow execution of a script requiring root privileges? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-08 12:25 -0700
Re: How to allow execution of a script requiring root privileges? "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2020-04-08 19:29 -0400
Re: How to allow execution of a script requiring root privileges? F Russell <fr@random.info> - 2020-04-08 21:32 +0000
Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 21:47 +0000
Re: How to allow execution of a script requiring root privileges? Wildman <best_lay@yahoo.com> - 2020-04-08 17:00 -0500
Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 22:15 +0000
Re: How to allow execution of a script requiring root privileges? Wildman <best_lay@yahoo.com> - 2020-04-08 19:05 -0500
Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-09 00:12 +0000
Re: How to allow execution of a script requiring root privileges? Wildman <best_lay@yahoo.com> - 2020-04-08 21:03 -0500
Re: How to allow execution of a script requiring root privileges? "Carlos E.R." <robin_listas@es.invalid> - 2020-04-09 13:50 +0200
Re: How to allow execution of a script requiring root privileges? Melzzzzz <Melzzzzz@zzzzz.com> - 2020-04-09 14:29 +0000
[OT] Re: How to allow execution of a script requiring root privileges? Bit Twister <BitTwister@mouse-potato.com> - 2020-04-09 10:19 -0500
Re: How to allow execution of a script requiring root privileges? F Russell <fr@random.info> - 2020-04-08 22:10 +0000
Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 22:20 +0000
Re: How to allow execution of a script requiring root privileges? F Russell <fr@random.info> - 2020-04-08 22:37 +0000
Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 22:56 +0000
Re: How to allow execution of a script requiring root privileges? "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2020-04-08 19:33 -0400
Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 23:50 +0000
Re: How to allow execution of a script requiring root privileges? "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2020-04-08 21:23 -0400
Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-09 02:45 +0000
Re: How to allow execution of a script requiring root privileges? Bit Twister <BitTwister@mouse-potato.com> - 2020-04-08 23:29 -0500
Re: How to allow execution of a script requiring root privileges? Martyn Barclay <mby@dev.null> - 2020-04-09 07:33 +0100
Re: How to allow execution of a script requiring root privileges? "Carlos E.R." <robin_listas@es.invalid> - 2020-04-09 13:47 +0200
Re: How to allow execution of a script requiring root privileges? Aragorn <thorongil@telenet.be> - 2020-04-09 10:20 +0200
Re: How to allow execution of a script requiring root privileges? Martyn Barclay <mby@dev.null> - 2020-04-09 11:15 +0100
Re: How to allow execution of a script requiring root privileges? Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-08 19:39 -0500
Re: How to allow execution of a script requiring root privileges? "J.O. Aho" <user@example.net> - 2020-04-09 09:30 +0200
Re: How to allow execution of a script requiring root privileges? "J.O. Aho" <user@example.net> - 2020-04-09 09:28 +0200
Re: How to allow execution of a script requiring root privileges? Martyn Barclay <mby@dev.null> - 2020-04-09 11:01 +0100
Re: How to allow execution of a script requiring root privileges? Jasen Betts <jasen@xnet.co.nz> - 2020-04-09 11:06 +0000
Re: How to allow execution of a script requiring root privileges? Allodoxaphobia <trepidation@example.net> - 2020-04-09 17:00 +0000
Re: How to allow execution of a script requiring root privileges? Allodoxaphobia <trepidation@example.net> - 2020-04-10 17:42 +0000
Re: How to allow execution of a script requiring root privileges? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-09 22:58 -0700
csiph-web