Bug#905564: /etc/default/su

2020-12-27 Thread Chris Hofstaedtler
* Gene Heskett  [201228 00:51]:
> On Sunday 27 December 2020 18:34:02 Chris Hofstaedtler wrote:
[..]
> I don't I'd be so quick to cancel/close this bug, as that is not where it 
> goes for me. My stretch does not have an /etc/default/su file. Yet su 
> works. I generally use konsole and run tde, not kde.  Fix it for 
> everybody if you are claiming a fix.

stretch does not get fixes any more. Fixes go into bullseye.
On bullseye, creating an /etc/defaults/su file with the suggested
contents works.

If you are suggesting this does not work on stretch, that might be
correct, but is of no relevance to me.

Chris



Bug#905564: /etc/default/su

2020-12-27 Thread Gene Heskett
On Sunday 27 December 2020 18:34:02 Chris Hofstaedtler wrote:

> * Gene Heskett  [201227 23:33]:
> > > unicorn:~$ cat /etc/default/su
> > > ALWAYS_SET_PATH yes
> >
> > This has been done on stretch, but has no effect on this:
> >
> > gene@coyote:~$ sudo -i
> > [sudo] password for gene:
> > root@coyote:~$ su amanda -c "geany bak-indices-configs"
> > configuration error - unknown item 'ALWAYS_SET_PATH' (notify
> > administrator)
> >
> > Is there a better fix for uptodate stretch?
>
> /etc/default/su uses "shell" format, so it should be:
> ALWAYS_SET_PATH=yes
> instead.
>
> I have updated the NEWS entry, and will close this bug with the next
> upload.

I don't I'd be so quick to cancel/close this bug, as that is not where it 
goes for me. My stretch does not have an /etc/default/su file. Yet su 
works. I generally use konsole and run tde, not kde.  Fix it for 
everybody if you are claiming a fix.

Lets have a better 2021.

> Best,
> Chris


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Bug#905564: /etc/default/su

2020-12-27 Thread Chris Hofstaedtler
* Gene Heskett  [201227 23:33]:
> > unicorn:~$ cat /etc/default/su
> > ALWAYS_SET_PATH yes
> 
> This has been done on stretch, but has no effect on this:
> 
> gene@coyote:~$ sudo -i
> [sudo] password for gene:
> root@coyote:~$ su amanda -c "geany bak-indices-configs"
> configuration error - unknown item 'ALWAYS_SET_PATH' (notify administrator)
> 
> Is there a better fix for uptodate stretch?

/etc/default/su uses "shell" format, so it should be:
ALWAYS_SET_PATH=yes
instead.

I have updated the NEWS entry, and will close this bug with the next
upload.

Best,
Chris



Bug#905564: /etc/default/su

2020-12-17 Thread Gene Heskett

On Wed, 7 Oct 2020 09:52:43 -0400 Greg Wooledge wrote:
> There is no /etc/default/su file by default, but if you create one and
> put
>
> ALWAYS_SET_PATH yes
>
> in it, then su *does* change the PATH variable, and this avoids the 
warning

> message from login.
>
> ii util-linux 2.33.1-0.1 amd64 miscellaneous system utilities
>
> unicorn:~$ cat /etc/default/su
> ALWAYS_SET_PATH yes
> unicorn:~$ echo "$PATH"
> 
/home/greg/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin

> unicorn:~$ su
> Password:
> root@unicorn:/home/greg# echo "$PATH"
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> root@unicorn:/home/greg#
>
>

This has been done on stretch, but has no effect on this:

gene@coyote:~$ sudo -i
[sudo] password for gene:
root@coyote:~$ su amanda -c "geany bak-indices-configs"
configuration error - unknown item 'ALWAYS_SET_PATH' (notify administrator)

Is there a better fix for uptodate stretch?




Bug#905564: /etc/default/su

2020-10-07 Thread Greg Wooledge
There is no /etc/default/su file by default, but if you create one and
put

ALWAYS_SET_PATH yes

in it, then su *does* change the PATH variable, and this avoids the warning
message from login.

ii  util-linux 2.33.1-0.1   amd64miscellaneous system utilities

unicorn:~$ cat /etc/default/su
ALWAYS_SET_PATH yes
unicorn:~$ echo "$PATH"
/home/greg/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
unicorn:~$ su
Password:
root@unicorn:/home/greg# echo "$PATH"
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@unicorn:/home/greg#