Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #64455
| From | Aragorn <thorongil@telenet.be> |
|---|---|
| Newsgroups | alt.os.linux |
| Subject | Re: How to allow execution of a script requiring root privileges? |
| Date | 2020-04-08 21:35 +0200 |
| Organization | A noiseless patient Strider |
| Message-ID | <20200408213517.1e1144a8@nx-74205> (permalink) |
| References | <4e608c7c-9163-4ac6-bd5f-64f1a24a052c@googlegroups.com> <dod1mg-6gg.ln1@Telcontar.valinor> <20200408195413.41340068@nx-74205> <20200408195819.2cb35905@nx-74205> <r6l8p5$k9h$1@dont-email.me> |
On 08.04.2020 at 21:30, Soviet_Mario scribbled: > On 08/04/20 19:58, Aragorn wrote: > > On 08.04.2020 at 19:54, Aragorn scribbled: > > > >> On 08.04.2020 at 19:20, Carlos E.R. scribbled: > >> > >>> On 08/04/2020 19.02, 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? > >>> > >>> Yes... making the script suid or sgid. > >>> > >>> However, that poses a security danger. > >> > >> Not really, because the Linux kernel ignores SUID/SGID on scripts. > >> ;) > > > > A better solution would be to set up /etc/sudoers so that the script > > may be executed passwordlessly — if that's not a word, then it is > > now :p — and perhaps create an alias or a shell function to invoke > > the script with the "sudo" prefix. ;) > > > > > > could you delve deeper into this .... > I can't understand the relation between a given script and > sudoers You can set the permissions in /etc/sudoers [*] so that a certain user can execute certain commands with root privileges without requiring a password. A script is a command too. :) [*] Read The /Fine/ Manual. :p -- With respect, = Aragorn =
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