Re: Little problem with rights on a script

2019-11-18 Thread Gene Heskett
On Monday 18 November 2019 09:28:42 Greg Wooledge wrote: > On Sun, Nov 17, 2019 at 10:07:23AM -0500, Gene Heskett wrote: > > The docs for udev are too paranoid to show one how, and the next > > package upgrade undoes your work anyway so why bother. > > You're putting your stuff in the wrong

Re: Little problem with rights on a script

2019-11-18 Thread Greg Wooledge
On Sun, Nov 17, 2019 at 10:07:23AM -0500, Gene Heskett wrote: > The docs for udev are too paranoid to show one how, and the next package > upgrade undoes your work anyway so why bother. You're putting your stuff in the wrong place. The files in /lib/udev/ are put there by Debian packages, and

Re: Little problem with rights on a script

2019-11-17 Thread David Wright
On Sun 17 Nov 2019 at 12:56:06 (-0500), Gene Heskett wrote: > On Sunday 17 November 2019 11:44:40 Andy Smith wrote: > > On Sun, Nov 17, 2019 at 09:57:39AM -0500, Gene Heskett wrote: > > > You may have to resort to similar measures. > > > > Hopefully though, most people asking questions here are

Re: Little problem with rights on a script

2019-11-17 Thread Gene Heskett
On Sunday 17 November 2019 11:44:40 Andy Smith wrote: > On Sun, Nov 17, 2019 at 09:57:39AM -0500, Gene Heskett wrote: > > You may have to resort to similar measures. > > Hopefully though, most people asking questions here are more willing > to read documentation and accept advice, and so will end

Re: Little problem with rights on a script

2019-11-17 Thread Gene Heskett
On Sunday 17 November 2019 11:05:36 to...@tuxteam.de wrote: > On Sun, Nov 17, 2019 at 10:07:23AM -0500, Gene Heskett wrote: > > On Sunday 17 November 2019 09:59:52 Nicolas George wrote: > > > Gene Heskett (12019-11-17): > > > > i have a similar situation with heyu, which runs as a normal > > > >

Re: Little problem with rights on a script

2019-11-17 Thread Andy Smith
On Sun, Nov 17, 2019 at 09:57:39AM -0500, Gene Heskett wrote: > You may have to resort to similar measures. Hopefully though, most people asking questions here are more willing to read documentation and accept advice, and so will end up with more sensible solutions. Regards, Andy --

Re: Little problem with rights on a script

2019-11-17 Thread tomas
On Sun, Nov 17, 2019 at 10:07:23AM -0500, Gene Heskett wrote: > On Sunday 17 November 2019 09:59:52 Nicolas George wrote: > > > Gene Heskett (12019-11-17): > > > i have a similar situation with heyu, which runs as a normal user. > > > But udev insists all the ttyUSB# ports are root:root, so I've

Re: Little problem with rights on a script

2019-11-17 Thread Gene Heskett
On Sunday 17 November 2019 09:59:52 Nicolas George wrote: > Gene Heskett (12019-11-17): > > i have a similar situation with heyu, which runs as a normal user. > > But udev insists all the ttyUSB# ports are root:root, so I've put a > > couple lines in my rc.local for the last decade or so to make

Re: Little problem with rights on a script

2019-11-17 Thread Nicolas George
Gene Heskett (12019-11-17): > i have a similar situation with heyu, which runs as a normal user. But > udev insists all the ttyUSB# ports are root:root, so I've put a couple > lines in my rc.local for the last decade or so to make me own You could have read the doc for udev instead of wasting

Re: Little problem with rights on a script

2019-11-17 Thread Gene Heskett
On Sunday 17 November 2019 09:44:21 Nicolas George wrote: > Hans (12019-11-17): > > The script settings are > rwsr-xr-- root:dip > > and as far as I know, it should start with the rights of root. > > Linux does not honor SUID bits for scripts, because it is very tricky > to implement without

Re: Little problem with rights on a script

2019-11-17 Thread Reco
Hi. On Sun, Nov 17, 2019 at 03:29:58PM +0100, Hans wrote: > The script settings are > rwsr-xr-- root:dip > and as far as I know, it should start with the rights of root. Both suid and sgid bits are ignored for scripts. If you need this script to be run as root you either use sudo

Re: Little problem with rights on a script

2019-11-17 Thread Nicolas George
Hans (12019-11-17): > The script settings are > rwsr-xr-- root:dip > and as far as I know, it should start with the rights of root. Linux does not honor SUID bits for scripts, because it is very tricky to implement without security issue and most interpreters do not make the effort. You

Little problem with rights on a script

2019-11-17 Thread Hans
Hi folks, on debian/testing I am running into a rights problem with a little script. The script is called "sakis3g" and it is intended to dial out into a UMTS- connection. The script should be run as root, but it also can be run as a normal user, who is in group "dip&q