Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!feeds.phibee-telecom.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Thu, 09 Apr 2020 05:08:03 -0500 From: Martyn Barclay Subject: Re: How to allow execution of a script requiring root privileges? Date: Thu, 09 Apr 2020 11:01:42 +0100 User-Agent: The Original All-singing All-dancing Pan Message-Id: Newsgroups: alt.os.linux References: <4e608c7c-9163-4ac6-bd5f-64f1a24a052c@googlegroups.com> X-OS: Debian 10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lines: 44 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-OIfCBmfzkjwfhfVuVn/oAkLQ0fmrhNpF8lsyvuVy93Emp1TuYSbffzBPYYA4BdZZ2Z5pNe0E9AYvG0I!NelRICGrJCgT+IDVtZOaJFyIBYou10sXFG4ggPsGs44RpHlV1PNLcipOrixIQRIg2W2wg4NeeWxh!OfsgJ6YucHSL X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2652 Xref: csiph.com alt.os.linux:64488 On Thu, 09 Apr 2020 09:28:21 +0200, J.O. Aho wrote: > On 08/04/2020 23.32, F Russell wrote: >> On Wed, 08 Apr 2020 10:02:47 -0700, 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 >>> >>> >> Your "way around" should be to boot up as the root user and stay as the >> root user. > > Then you have lowered your system security to the level of microsoft > windows with a window run as administrator (you don't need to be logged in > as administrator). +1 >> For the single-user workstation this is the ONLY way. > > No, that is only the wrong way to do things. It is, absolutely the /wrong/ way to do things. >> I still hear moans and groans about running as root but all of that >> security nonsense is just that: nonsense. > > You remember that bug steam had a few yours around, where they got the > paths wrong, you as root would have wiped your hard drive, for everyone > one else it was your users files that was gone. > > >> They can always spout off with generalities but they can never provide >> specific examples about how a single-user workstation can be compromised >> by running as root. > > With all the CPU vulnerabilities, a javascript can execute system > binaries, which in your case mean someone would have full control of your > system, your only luck is that Linux not as targeted as microsoft windows. -- Debian 10.2 "Buster"