Re: I need to be root to run this script

2020-01-22 Thread kaye n
On Wed, Jan 22, 2020 at 5:59 AM Jude DaShiell wrote: > will alt+f2 sudo backlight-brightness work? > It does absolutely nothing.

Re: I need to be root to run this script

2020-01-21 Thread Jude DaShiell
will alt+f2 sudo backlight-brightness work? On Wed, 15 Jan 2020, kaye n wrote: > Date: Tue, 14 Jan 2020 12:36:23 > From: kaye n > To: debian-user@lists.debian.org > Subject: I need to be root to run this script > Resent-Date: Tue, 14 Jan 2020 18:39:09 + (UTC) > Resent

Re: I need to be root to run this script

2020-01-18 Thread l0f4r0
Hi, 17 janv. 2020 à 02:40 de guik...@gmail.com: > (I edited the > 10-installer> file with the line > kaye ALL=(ALL) NOPASSWD: > /usr/local/bin/backlight-brightness > but it doesn't have any effect; in fact > I think sudo was rendered useless to me, as in I cannot execute sudo, it said > somet

Re: I need to be root to run this script

2020-01-16 Thread tomas
On Thu, Jan 16, 2020 at 11:48:36PM +0100, l0f...@tuta.io wrote: > Hello, [...] > It's not recommended to modify /etc/sudoers because it can be > overwritten/reset during a next upgrade. That would contradict Debian policy. /etc is the place for config files, and the sysadmin has the last word o

Re: I need to be root to run this script

2020-01-16 Thread David Wright
On Fri 17 Jan 2020 at 09:40:48 (+0800), kaye n wrote: > On Fri, Jan 17, 2020 at 6:48 AM wrote: > > > > > I would put it in /etc/sudoers, myself. > > > > > It's not recommended to modify /etc/sudoers because it can be > > overwritten/reset during a next upgrade. > > Best is to have a file inside /e

Re: I need to be root to run this script

2020-01-16 Thread kaye n
On Fri, Jan 17, 2020 at 6:48 AM wrote: > > > I would put it in /etc/sudoers, myself. > > > It's not recommended to modify /etc/sudoers because it can be > overwritten/reset during a next upgrade. > Best is to have a file inside /etc/sudoers.d. > Be sure to have the following instruction in your /

Re: I need to be root to run this script

2020-01-16 Thread l0f4r0
Hello, 15 janv. 2020 à 18:45 de wool...@eeg.ccf.org: > On Wed, Jan 15, 2020 at 06:40:42PM +0100, l0f...@tuta.io wrote: > >> What's the pro of >> >> tail -n +1 /etc/sudoers.d/* >> >> compared to a simple cat as your tail is fetching from the 1st line so does >> cat? >> > > It writes a header for

Re: I need to be root to run this script

2020-01-16 Thread Dan Ritter
kaye n wrote: > On Thu, Jan 16, 2020 at 11:33 PM Dan Ritter wrote: > > > > > > > > > /etc/sudoers.d/10-installer > > > > > > of my Debian system does not work. > > > > Because you used the wrong format. > > > > kaye ALL=(ALL) NOPASSWD: /usr/local/bin/backlight-brightness > > > > is probably what

Re: I need to be root to run this script

2020-01-16 Thread kaye n
On Thu, Jan 16, 2020 at 11:33 PM Dan Ritter wrote: > > > > > /etc/sudoers.d/10-installer > > > > of my Debian system does not work. > > Because you used the wrong format. > > kaye ALL=(ALL) NOPASSWD: /usr/local/bin/backlight-brightness > > is probably what you want. > Still doesn't work. Am I c

A minimalist backlight script from antiX (Was: Re: I need to be root to run this script)

2020-01-16 Thread Linux-Fan
Andrei POPESCU writes: On Mi, 15 ian 20, 01:36:23, kaye n wrote: [...] > kaye@laptop:~$ backlight-brightness > backlight-brightness: You need to be root to run this script > > Is it possible to be able to execute the script without being root? Apparently the message is produced by the scrip

Re: I need to be root to run this script

2020-01-16 Thread Dan Ritter
kaye n wrote: > I don't understand why adding the line: > > kaye ALL= /usr/local/bin/backlight-brightness > > in > > /etc/sudoers.d/10-installer > > of my Debian system does not work. Because you used the wrong format. kaye ALL=(ALL) NOPASSWD: /usr/local/bin/backlight-brightness is probably

Re: I need to be root to run this script

2020-01-16 Thread kaye n
On Thu, Jan 16, 2020 at 5:09 PM Andrei POPESCU wrote: > On Mi, 15 ian 20, 01:36:23, kaye n wrote: > > Hello Friends > > > > I copied a script called backlight-brightness from the directory, > > /usr/local/bin > > of another GNU/Linux distro, > > and pasted it to the same directory of my Debian sy

Re: I need to be root to run this script

2020-01-16 Thread Andrei POPESCU
On Mi, 15 ian 20, 01:36:23, kaye n wrote: > Hello Friends > > I copied a script called backlight-brightness from the directory, > /usr/local/bin > of another GNU/Linux distro, > and pasted it to the same directory of my Debian system. > > If I run it in terminal, > kaye@laptop:~$ backlight-brigh

Re: I need to be root to run this script

2020-01-16 Thread Andrei POPESCU
On Mi, 15 ian 20, 18:40:42, l0f...@tuta.io wrote: > 15 janv. 2020 à 14:41 de wool...@eeg.ccf.org: > > > On Tue, Jan 14, 2020 at 08:32:12PM -0800, Will Mengarini wrote: > > > >> And the ls -R would be helped by this: > >> for f in /etc/sudoers.d/*;{ [[ -f $f ]] && echo === "$f" && cat "$f";} > > >

Re: I need to be root to run this script

2020-01-15 Thread Greg Wooledge
On Wed, Jan 15, 2020 at 06:40:42PM +0100, l0f...@tuta.io wrote: > What's the pro of > > tail -n +1 /etc/sudoers.d/* > > compared to a simple cat as your tail is fetching from the 1st line so does > cat? It writes a header for each file, if there's more than one file. So, it basically replaces

Re: I need to be root to run this script

2020-01-15 Thread l0f4r0
Hi, 15 janv. 2020 à 14:41 de wool...@eeg.ccf.org: > On Tue, Jan 14, 2020 at 08:32:12PM -0800, Will Mengarini wrote: > >> And the ls -R would be helped by this: >> for f in /etc/sudoers.d/*;{ [[ -f $f ]] && echo === "$f" && cat "$f";} >> > > I'm *definitely* not a fan of stretching the shell's pa

Re: I need to be root to run this script

2020-01-15 Thread Greg Wooledge
On Tue, Jan 14, 2020 at 08:32:12PM -0800, Will Mengarini wrote: > And the ls -R would be helped by this: > for f in /etc/sudoers.d/*;{ [[ -f $f ]] && echo === "$f" && cat "$f";} I'm *definitely* not a fan of stretching the shell's parser in that way (replacing do ... done with a braced command g

Re: I need to be root to run this script

2020-01-15 Thread Linux-Fan
kaye n writes: On Wed, Jan 15, 2020 at 8:19 AM l0f...@tuta.io> wrote: Yes, and please paste the output of the following commands (both on your other distro & your Debian): ls -R /etc/sudoers.dcat /etc/sudoers ls -l /usr/local/bin/backlight-brightness Best

Re: I need to be root to run this script

2020-01-14 Thread Will Mengarini
* l0f...@tuta.io [20-01/15=We 01:19 +0100]: >> ls -R /etc/sudoers.dcat /etc/sudoers >> ls -l /usr/local/bin/backlight-brightness * kaye n [20-01/15=Wed 10:57 +0800]: > [...] > kaye@laptop:~$ ls -R /etc/sudoers.dcat /etc/sudoers > [...] l0f4r0's commands were missing a newline. These were the

Re: I need to be root to run this script

2020-01-14 Thread Will Mengarini
* l0f...@tuta.io [20-01/15=We 01:19 +0100]: >>> ls -R /etc/sudoers.dcat /etc/sudoers >>> ls -l /usr/local/bin/backlight-brightness * kaye n [20-01/15=We 10:57 +0800]: >> [...] >> kaye@laptop:~$ ls -R /etc/sudoers.dcat /etc/sudoers >> [...] * Will Mengarini [20-01/14=Tu 20:24 -0800]: > l0f4r0'

Re: I need to be root to run this script

2020-01-14 Thread kaye n
On Wed, Jan 15, 2020 at 8:19 AM wrote: > Yes, and please paste the output of the following commands (both on your > other distro & your Debian): > > ls -R /etc/sudoers.dcat /etc/sudoers > ls -l /usr/local/bin/backlight-brightness > > Best regards, > l0f4r0 > Hi friends Are you guys sure you want

Re: I need to be root to run this script

2020-01-14 Thread l0f4r0
Hi, 14 janv. 2020 à 19:44 de d...@randomstring.org: > kaye n wrote: > >> I copied a script called backlight-brightness from the directory, >> /usr/local/bin >> of another GNU/Linux distro, >> and pasted it to the same directory of my Debian system. >> >> If I run it in terminal, >> kaye@laptop:

Re: I need to be root to run this script

2020-01-14 Thread Reco
Hi. On Wed, Jan 15, 2020 at 01:36:23AM +0800, kaye n wrote: > If I run it in terminal, > kaye@laptop:~$ backlight-brightness > backlight-brightness: You need to be root to run this script > > Is it possible to be able to execute the script without being root? Without the script contents

Re: I need to be root to run this script

2020-01-14 Thread Dan Ritter
kaye n wrote: > Hello Friends > > I copied a script called backlight-brightness from the directory, > /usr/local/bin > of another GNU/Linux distro, > and pasted it to the same directory of my Debian system. > > If I run it in terminal, > kaye@laptop:~$ backlight-brightness > backlight-brightnes

I need to be root to run this script

2020-01-14 Thread kaye n
Hello Friends I copied a script called backlight-brightness from the directory, /usr/local/bin of another GNU/Linux distro, and pasted it to the same directory of my Debian system. If I run it in terminal, kaye@laptop:~$ backlight-brightness backlight-brightness: You need to be root to run this