Re: more problems with su and sudo

2025-07-01 Thread Greg
On 2025-07-01, Titus Newswanger wrote: > I've had that problem once or twice where a newly created password would > not work. I've always suspected typos or undefined caps-lock state. I've had the problem. I have a en_US.UTF-8 locale and a French keyboard. Once, moons ago, when doing an alt-F1

Re: more problems with su and sudo

2025-07-01 Thread David Christensen
linux-3.6.1-08339.run sudo ./pia-linux-3.6.1-08339.run Thank you for the clarification. However, your instructions still leave out one critical piece that I suspect Moe may be overlooking: * "su" uses the ROOT password. * "sudo" uses YOUR password. Thank

Re: more problems with su and sudo

2025-07-01 Thread Greg Wooledge
do ./pia-linux-3.6.1-08339.run However, your instructions still leave out one critical piece that I suspect Moe may be overlooking: * "su" uses the ROOT password. * "sudo" uses YOUR password. If she's trying to use the root password for sudo, that won't work

Re: more problems with su and sudo

2025-06-30 Thread David Christensen
accepted. So today I tried it again with just su and got the same results. I am at a complete loss.  If I can't get into the sudo file I cannot install anything in root.  I really need your knowledge.   I always double and sometimes triple check everything I do.  Passwords are written down and d

Re: more problems with su and sudo

2025-06-30 Thread Titus Newswanger
On 6/30/25 21:55, Titus Newswanger wrote: The time I accidentally locked myself out of sudo, I mounted the locked hdd on another linux pc and edited the shadow file, copying the hash for sudo with the known password to the drive with the unknown password. I would not recommend trying that unl

Re: more problems with su and sudo

2025-06-30 Thread Titus Newswanger
nd edited the shadow file, copying the hash for sudo with the known password to the drive with the unknown password. I would not recommend trying that unless you are confident about editing operating system configuration files. So today I tried it again with just su and got the same results. I a

more problems with su and sudo

2025-06-30 Thread Maureen L Thomas
went to the terminal I first followed the directions which stated sudo.  I put in my new password and with no way to check it I hit enter.  Three times I did this and was very careful to put it in correctly.  It would not take it and kept saying not accepted. So today I tried it again with just su

Re: AW: AW: su su- sudo dont work

2024-02-15 Thread chris
do use an old kernel. >> >> Can LINUX update a kernel? >> >> Regards >> Sophie >> >> >> -- >> *Von:* chris >> *Gesendet:* Mittwoch, 7. Februar 2024 19:35 >> *An:* Schwibinger Michael >> *Betr

Re: AW: AW: su su- sudo dont work

2024-02-14 Thread chris
> *Von:* chris > *Gesendet:* Mittwoch, 7. Februar 2024 19:35 > *An:* Schwibinger Michael > *Betreff:* Re: AW: AW: su su- sudo dont work > > Very helpful ty > > On Wed, Feb 7, 2024, 1:57 PM Schwibinger Michael wrote: > > Good afternoon. > &g

Can Linux update an old kernel [WAS Re: AW: AW: AW: su su- sudo dont work]

2024-02-10 Thread Andrew M.A. Cater
e anybody any actual *details* All best, as ever, Andy > Regards > Sophie > > > > Von: chris > Gesendet: Mittwoch, 7. Februar 2024 19:35 > An: Schwibinger Michael > Betreff: Re: AW: AW: su su- sudo dont work > > Very he

AW: AW: AW: su su- sudo dont work

2024-02-10 Thread Schwibinger Michael
Yes. I found out I do use an old kernel. Can LINUX update a kernel? Regards Sophie Von: chris Gesendet: Mittwoch, 7. Februar 2024 19:35 An: Schwibinger Michael Betreff: Re: AW: AW: su su- sudo dont work Very helpful ty On Wed, Feb 7, 2024, 1:57 PM

Re: AW: AW: su su- sudo dont work

2024-02-07 Thread chris
M.A. Cater > *Gesendet:* Mittwoch, 31. Januar 2024 20:36 > *An:* debian-user@lists.debian.org ; > Schwibinger Michael > *Betreff:* Re: AW: AW: su su- sudo dont work > > On Wed, Jan 31, 2024 at 01:58:41PM +, Schwibinger Michael wrote: > > Good afternoon > > I thin

Re: AW: AW: su su- sudo dont work

2024-02-07 Thread chris
. Januar 2024 18:44 > *An:* debian-user@lists.debian.org > *Betreff:* Re: AW: AW: su su- sudo dont work > > > Am Freitag, 26. Januar 2024, 17:23:07 CET schrieben Sie: > > Yes, if you want to install soemthing for example by using the apt > command, best way is becoming root

Request for output of commands [WAS Re: AW: AW: AW: su su- sudo dont work]

2024-02-07 Thread Andrew M.A. Cater
gt; Gesendet: Mittwoch, 31. Januar 2024 20:36 > An: debian-user@lists.debian.org ; Schwibinger > Michael > Betreff: Re: AW: AW: su su- sudo dont work > > On Wed, Jan 31, 2024 at 01:58:41PM +, Schwibinger Michael wrote: > > Good afternoon > > I think > > maybe

AW: AW: AW: su su- sudo dont work

2024-02-07 Thread Schwibinger Michael
Good afternoon I did send the bugreport. Thank You. Did anybody use the rescue mode? Regards Sophie Von: Andrew M.A. Cater Gesendet: Mittwoch, 31. Januar 2024 20:36 An: debian-user@lists.debian.org ; Schwibinger Michael Betreff: Re: AW: AW: su su- sudo

AW: AW: AW: su su- sudo dont work

2024-02-07 Thread Schwibinger Michael
: AW: AW: su su- sudo dont work Hi Hans, On Sat, Jan 27, 2024 at 10:23:09AM +0100, Hans wrote: > I see this exactly as you and are watching this list for may years. I'm not sure who you're replying to as you've removed those details, though I may guess from your In-Reply-To he

AW: AW: AW: su su- sudo dont work

2024-02-07 Thread Schwibinger Michael
Good afternoon. The bug report sudo ... You are not in the sudoers file. Regards Sophie Von: Hans Gesendet: Freitag, 26. Januar 2024 18:44 An: debian-user@lists.debian.org Betreff: Re: AW: AW: su su- sudo dont work Am Freitag, 26. Januar 2024, 17:23:07 CET

Re: AW: AW: su su- sudo dont work

2024-02-02 Thread Timothy M Butterworth
On Fri, Feb 2, 2024 at 7:17 PM Schwibinger Michael wrote: > Good afternoon > > Before there was panic > > su > su - > sudo > did work. > > Somebody does have experience with > rescue mode? > If you are in Single User Mode you are already root and do not nee

AW: AW: AW: su su- sudo dont work

2024-02-02 Thread Schwibinger Michael
Good afternoon Before there was panic su su - sudo did work. Somebody does have experience with rescue mode? Regards Sophie Von: Greg Wooledge Gesendet: Freitag, 26. Januar 2024 17:45 An: debian-user@lists.debian.org Betreff: Re: AW: AW: su su- sudo dont

Re: su su- sudo dont work

2024-02-02 Thread CL
think, nobody is so stupid, that he/she can not do a su or install a package. NOT after 2 years!!! For me, I will get no help here for this person, just ignore it. This is my very personal decision! Sorry to say it, but for me personally it looks like fake! Like a morone, like a troll. And those

Re: su su- sudo dont work

2024-02-02 Thread Christian Lorenz
C does have only one user=admin. >> > >> > Regards Sophie >> > Is it the rescue mode? >> >> Explain, please. >> >> Your Subject: header says "su su- sudo dont work". What does this MEAN? >> >> Please show us your attempts

Re: AW: AW: su su- sudo dont work

2024-01-31 Thread Andrew M.A. Cater
On Wed, Jan 31, 2024 at 01:58:41PM +, Schwibinger Michael wrote: > Good afternoon > I think > maybe Im sure > it is because of rescue mode. > Hi Sophie, Once again: we need to you to show us what commands you run. We need to see error messages. if you cannot run sudo or su,

AW: AW: su su- sudo dont work

2024-01-31 Thread Schwibinger Michael
@lists.debian.org Betreff: Re: AW: su su- sudo dont work On Thu, Jan 25, 2024 at 03:53:10PM +, Schwibinger Michael wrote: > Good afternoon > Why do I have to open a group? > This is to *tell* us information about why you're having problems with su and sudo Running the id command s

AW: su su- sudo dont work

2024-01-27 Thread Schwibinger Michael
Good afternoon Thank You There is only one password. The problem was created until the update to DEBIAN 11 created panic. Before sudo su su - did work. Regards Sophie Von: Gareth Evans Gesendet: Mittwoch, 24. Januar 2024 04:31 An: debian-user@lists.debian.org

Re: AW: AW: su su- sudo dont work

2024-01-27 Thread Andy Smith
ss stream of mispastes and misunderstandings about "sudo" and "su". But I guess what one finds amusing can have a very wide variability… Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting

Re: AW: AW: su su- sudo dont work

2024-01-27 Thread Thomas Schmitt
Hi, Andy Smith wrote: > It is hard to understand how what Michael/Sophie/Tobias does can in > any way be "fun" for them, though maybe that is just our lack of > understanding. I expressed my suspicion of a "Hurz" performance in https://lists.debian.org/debian-user/2023/05/msg00100.html Have a

Re: AW: AW: su su- sudo dont work

2024-01-27 Thread Andy Smith
Hi Hans, On Sat, Jan 27, 2024 at 10:23:09AM +0100, Hans wrote: > I see this exactly as you and are watching this list for may years. I'm not sure who you're replying to as you've removed those details, though I may guess from your In-Reply-To header which doesn't point to a list message. You have

Re: AW: AW: su su- sudo dont work

2024-01-27 Thread Hans
, that he/she can not do a su or install a package. NOT after 2 years!!! For me, I will get no help here for this person, just ignore it. This is my very personal decision! Sorry to say it, but for me personally it looks like fake! Like a morone, like a troll. And those I can not support, sorry

Re: AW: AW: su su- sudo dont work

2024-01-26 Thread Hans
Am Freitag, 26. Januar 2024, 17:23:07 CET schrieben Sie: Yes, if you want to install soemthing for example by using the apt command, best way is becoming root with the command "su -" and then install the rquired package. Example: su - then enter the password of the user root If

Re: AW: AW: su su- sudo dont work

2024-01-26 Thread Greg Wooledge
On Fri, Jan 26, 2024 at 04:23:07PM +, Schwibinger Michael wrote: > su - > su > or sudo. > > Is su - > the best for install? Whatever works best for *you* is best. "su -" is quite popular. If it does what you need, and is convenient for you, then there's your answer.

AW: AW: su su- sudo dont work

2024-01-26 Thread Schwibinger Michael
Sorry it was my mistake It is su - su or sudo. Sorry. Is su - the best for install? Regards Sophie Von: Hans Gesendet: Dienstag, 23. Januar 2024 18:29 An: debian-user@lists.debian.org Betreff: Re: AW: su su- sudo dont work Am Dienstag, 23. Januar 2024

Re: AW: su su- sudo dont work

2024-01-25 Thread Andrew M.A. Cater
On Thu, Jan 25, 2024 at 03:53:10PM +, Schwibinger Michael wrote: > Good afternoon > Why do I have to open a group? > This is to *tell* us information about why you're having problems with su and sudo Running the id command should give you information like uid=1000(amac

AW: su su- sudo dont work

2024-01-25 Thread Schwibinger Michael
: su su- sudo dont work On Sun, Jan 21, 2024 at 4:07 PM Schwibinger Michael mailto:h...@hotmail.com>> wrote: Thank You Example I say sudo apt-get install firefox Reaction LINUX This is not allowed we send a message to the admin. This error message means that your account is not in the sudo

AW: AW: su su- sudo dont work

2024-01-24 Thread Schwibinger Michael
Good afternoon Thank You. I ll print it out and read it. 2 questions: Is this the same problem with su su - su -p? Is it not a problem of rescue mode, before panic it did work. Problem: root terminal is not accepting copy paste. Regards Sophie Von: Greg

Re: su su- sudo dont work

2024-01-23 Thread Gareth Evans
> On 23 Jan 2024, at 18:30, Hans wrote: > > Am Dienstag, 23. Januar 2024, 13:54:25 CET schrieb Schwibinger Michael: > For gvetting root as normal user, best is use "su -". > > Note: It is not "su-", but "su -", with a space between su and t

Re: AW: su su- sudo dont work

2024-01-23 Thread Hans
Am Dienstag, 23. Januar 2024, 13:54:25 CET schrieb Schwibinger Michael: For gvetting root as normal user, best is use "su -". Note: It is not "su-", but "su -", with a space between su and the minus sign. Good luck! Hans > Thank You. > > 2 questions

AW: su su- sudo dont work

2024-01-23 Thread Schwibinger Michael
Thank You. 2 questions 1 Is the best to use su- for ding install? 2 All 4 dont work. What do I do wrong? Regards Sophie Von: Hans Gesendet: Samstag, 20. Januar 2024 14:23 An: debian-user@lists.debian.org Betreff: Re: su su- sudo dont work Am Samstag, 20

AW: su su- sudo dont work

2024-01-23 Thread Schwibinger Michael
2024 14:34 An: debian-user@lists.debian.org Betreff: Re: su su- sudo dont work On Sat 20 Jan 2024 at 09:14:30 (-0500), Greg Wooledge wrote: > On Sat, Jan 20, 2024 at 01:26:06PM +, Schwibinger Michael wrote: > > Good afternoon. > > Root terminal is fine. > > What do I do

Re: su su- sudo dont work

2024-01-21 Thread Timothy M Butterworth
-- > *Von:* Greg Wooledge > *Gesendet:* Samstag, 20. Januar 2024 14:14 > *An:* debian-user@lists.debian.org > *Betreff:* Re: su su- sudo dont work > > On Sat, Jan 20, 2024 at 01:26:06PM +, Schwibinger Michael wrote: > > Good afternoon. > > Root terminal is fine.

Re: AW: su su- sudo dont work

2024-01-21 Thread Greg Wooledge
On Sun, Jan 21, 2024 at 12:57:17PM +, Schwibinger Michael wrote: > sudo apt-get install firefox > Reaction LINUX > This is not allowed we send a message to the admin. > > I do open root terminal > there its working. It sounds like you are not authorized to use "sudo" on this computer. This i

AW: su su- sudo dont work

2024-01-21 Thread Schwibinger Michael
@lists.debian.org Betreff: Re: su su- sudo dont work On Sat, Jan 20, 2024 at 01:26:06PM +, Schwibinger Michael wrote: > Good afternoon. > Root terminal is fine. > What do I do wrong? > What did I destroy? > > PC does have only one user=admin. > > Regards Sophie > Is i

Re: su su- sudo dont work

2024-01-21 Thread Byung-Hee HWANG
On Sat, 2024-01-20 at 13:26 +, Schwibinger Michael wrote: > > Good afternoon. > Root terminal is fine. > What do I do wrong? > What did I destroy? > > > PC does have only one user=admin. > > > Regards Sophie > Is it the rescue mode? Hellow Sophie, English is not my native language. Somet

Problem booting the Debian machine [WAS Re: AW: su su- sudo dont work]

2024-01-21 Thread Andrew M.A. Cater
On Sat, Jan 20, 2024 at 02:30:43PM +, Schwibinger Michael wrote: > Good afternoon > I destroyed DEBIAN > now 2 years agon. > I asked here for help > no solution. > So every morning > I interrupt booting > change to rescue mode. > > "Normal" booting does create panic. > > Regards > Sophie > >

Re: su su- sudo dont work

2024-01-20 Thread Andy Smith
Hi, On Sat, Jan 20, 2024 at 01:26:06PM +, Schwibinger Michael wrote: > Good afternoon. > Root terminal is fine. > What do I do wrong? > What did I destroy? h-boy, strap yourselves in for another epic Sophie/Michael thread. A bit like the Gene ones, though tend to be circular across a much

AW: su su- sudo dont work

2024-01-20 Thread Schwibinger Michael
_ Von: Dan Ritter Gesendet: Samstag, 20. Januar 2024 14:09 An: Schwibinger Michael Cc: debian-user@lists.debian.org Betreff: Re: su su- sudo dont work Schwibinger Michael wrote: > Good afternoon. > Root terminal is fine. > What do I do wrong? > What did I destroy? > > PC d

Re: su su- sudo dont work

2024-01-20 Thread David Wright
one user=admin. > > > > Regards Sophie > > Is it the rescue mode? > > Explain, please. > > Your Subject: header says "su su- sudo dont work". What does this MEAN? > > Please show us your attempts to USE each of these commands, and the > result

Re: su su- sudo dont work

2024-01-20 Thread Dan Ritter
Schwibinger Michael wrote: > Good afternoon. > Root terminal is fine. > What do I do wrong? > What did I destroy? > > PC does have only one user=admin. > > Regards Sophie > Is it the rescue mode? Please tell us: exactly what rescue mode you were using exactly what the prompt was exactly w

Re: su su- sudo dont work

2024-01-20 Thread Hans
Am Samstag, 20. Januar 2024, 14:26:06 CET schrieb Schwibinger Michael: There is not "su su-", but there is su = change to root, envirenmont of former user without changing of X environment (hope, this is corect said) su -= change to root, environment of user root su -p =

Re: su su- sudo dont work

2024-01-20 Thread Greg Wooledge
On Sat, Jan 20, 2024 at 01:26:06PM +, Schwibinger Michael wrote: > Good afternoon. > Root terminal is fine. > What do I do wrong? > What did I destroy? > > PC does have only one user=admin. > > Regards Sophie > Is it the rescue mode? Explain, please. Your Subjec

su su- sudo dont work

2024-01-20 Thread Schwibinger Michael
Good afternoon. Root terminal is fine. What do I do wrong? What did I destroy? PC does have only one user=admin. Regards Sophie Is it the rescue mode?

Re: su

2023-09-14 Thread Max Nikulin
. E.g. bash does not rely on xterm*VT100.reverseWrap: true BTW, I don't think that the preservation of $TERM is sufficient. Preserving $TERMINFO (when set) is important too. I do not use TERMINFO, however if you need to preserve it than you may use su --whitelist-environment=TERM

Re: su

2023-09-14 Thread Vincent Lefevre
On 2023-09-14 21:25:56 +0700, Max Nikulin wrote: > On 14/09/2023 17:30, Vincent Lefevre wrote: > > Yes, XDG_RUNTIME_DIR is problematic, but as "su -" doesn't work in > > GNU Screen (it yields major display issues), I presume that some > > environment variables

Re: su

2023-09-14 Thread Max Nikulin
On 14/09/2023 17:30, Vincent Lefevre wrote: Yes, XDG_RUNTIME_DIR is problematic, but as "su -" doesn't work in GNU Screen (it yields major display issues), I presume that some environment variables (terminal related?) are still useful. I just have tried it. "su -" pr

Re: su

2023-09-14 Thread Vincent Lefevre
On 2023-09-06 14:36:48 +0700, Max Nikulin wrote: > On 06/09/2023 10:41, Greg Wooledge wrote: > > > > Just put "ALWAYS_SET_PATH yes" into /etc/default/su and the problem > > is FIXED. "su" will work properly again! > > Greg, you provided a valid

Re: su

2023-09-06 Thread Michel Verdier
On 2023-09-05, Greg Wooledge wrote: > How *incredibly* Red Hat. Really, it just sickens me that this is the > answer accepted by so many people. It's not Red Hat, it's man page and own practice, even before Red Hat exists :) > To perform that installation, you run "su&

Re: su

2023-09-06 Thread Max Nikulin
On 06/09/2023 10:41, Greg Wooledge wrote: Just put "ALWAYS_SET_PATH yes" into /etc/default/su and the problem is FIXED. "su" will work properly again! Greg, you provided a valid example when "su -" is undesirable, however in general "su -" is safer

Re: su

2023-09-05 Thread Charlie
On Tue, 5 Sep 2023 23:41:45 -0400 Greg Wooledge wrote: > To perform that installation, you run "su", which gives you a root > shell, and then you do something like "make install". > > But the Red Hat answer says you should use "su -" instead, to become

Re: su

2023-09-05 Thread Greg Wooledge
On Wed, Sep 06, 2023 at 05:09:29AM +0200, Michel Verdier wrote: > On 2023-09-05, Greg Wooledge wrote: > > > You used "su" to become root, I believe. Unfortunately, beginning > > with Debian 9, "su" with no arguments and no configuration doesn't > >

AW: Topic su- sudo su su -

2022-07-26 Thread Schwibinger Michael
Thank You. Von: David Wright Gesendet: Dienstag, 26. Juli 2022 01:42 An: debian-user@lists.debian.org Betreff: Re: Topic su- sudo su On Sun 24 Jul 2022 at 12:12:47 (+0200), to...@tuxteam.de wrote: > On Sun, Jul 24, 2022 at 10:06:07AM +, Schwibinger Mich

Re: Topic su- sudo su

2022-07-25 Thread tomas
On Mon, Jul 25, 2022 at 08:42:35PM -0500, David Wright wrote: [...] > … as you might remember writing in: > > https://lists.debian.org/debian-user/2022/05/msg00693.html I wish I had a memory half as good as yours :) cheers -- t signature.asc Description: PGP signature

Re: Topic su- sudo su

2022-07-25 Thread David Wright
#x27;t quite understand what you are trying to say, The post seems to be a long-delayed response to: https://lists.debian.org/debian-user/2022/06/msg00423.html > but in any > case... > > > open terminal > > su- > ^^^ ...there is a space missing here. > > If you want

AW: Topic su - sudo su

2022-07-24 Thread Schwibinger Michael
Sorry su . not su- Thank You Regards Sophie Von: to...@tuxteam.de Gesendet: Sonntag, 24. Juli 2022 10:12 Bis: Schwibinger Michael Cc: debian-user@lists.debian.org Betreff: Re: Topic su- sudo su On Sun, Jul 24, 2022 at 10:06:07AM +, Schwibinger

Topic su- sudo su

2022-07-24 Thread Schwibinger Michael
Hello Thank You for help. Sorry for forgotten topic. So install is open terminal su- Password and so on. Regards Sophie Von: to...@tuxteam.de Gesendet: Sonntag, 01. Mai 2022 11:24 Bis: debian-user@lists.debian.org Betreff: Re: Firmaware II On Sun, May 01

Re: Topic su- sudo su

2022-07-24 Thread to...@tuxteam.de
On Sun, Jul 24, 2022 at 10:06:07AM +, Schwibinger Michael wrote: > > Hello > Thank You for help. > Sorry for forgotten topic. > > So > install is I don't quite understand what you are trying to say, but in any case... > open terminal > su- ^^^ ...there

Sudo or su ? [WAS Re: Firmware III grub]

2022-06-12 Thread Andrew M.A. Cater
nabled root user then su - will give you root privileges and you will need to supply the root user password. Some people advise on one or the other: sudo can be limited so that specific commands can be limited to one user, for example. apt / apt-get and other package installation programs need

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-23 Thread Lee
On 5/22/22, Charles Kroeger wrote: >> There is no silver bullet that makes your system secure. > > I get a login shell with $su --login > > I don't have sudo installed > > is there something heretical about that, I should know? If this is for your personal machine,

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread tomas
On Sun, May 22, 2022 at 03:32:22PM -0400, The Wanderer wrote: > On 2022-05-22 at 14:53, Charles Kroeger wrote: > > >> There is no silver bullet that makes your system secure. > > > > I get a login shell with $su --login > > > > I don't have sudo ins

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread Greg Wooledge
On Sun, May 22, 2022 at 09:37:43PM +0200, basti wrote: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918754#41 > > or use su -l For the record, that URL says: This is a new behavior because the util-linux implementation of su is used now. See also /usr/share/doc/u

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread basti
Am 20.05.22 um 02:24 schrieb Kenneth Parker: On Thu, May 19, 2022, 4:14 AM 황병희 <mailto:soyeo...@doraji.xyz>> wrote: Tom Browder mailto:tom.brow...@gmail.com>> writes: > I need a special path setting for root after both "sudo" and "sudo

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread The Wanderer
On 2022-05-22 at 14:53, Charles Kroeger wrote: >> There is no silver bullet that makes your system secure. > > I get a login shell with $su --login > > I don't have sudo installed > > is there something heretical about that, I should know? Not heretical, but -

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread Charles Kroeger
> There is no silver bullet that makes your system secure. I get a login shell with $su --login I don't have sudo installed is there something heretical about that, I should know?

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread Tom Browder
On Sun, May 22, 2022 at 11:04 Greg Wooledge wrote: ... > So... we literally can't tell what you did. I think that character munging is because of the unwanted, unedititible html mail from my ipad gmail client. Still wondering why you can't just use the other solutions you've been > given. If

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread Tom Browder
On Sat, May 21, 2022 at 10:40 Greg Wooledge wrote: ... > So, I've already given you the solution that *I* would use, which is: > > ln -s /opt/raku/bin/raku /usr/local/bin/raku That works fine, but another part of the work flow for nstallation is the need to access another Raku program which mus

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread Greg Wooledge
On Sun, May 22, 2022 at 10:48:44AM -0500, Tom Browder wrote: > Yes, I actually used that syntax but failed to put it in the message—same > result: > > sudo —preserve-env=PATH raku -v > sudo: raku: command not found You might have misspelled --preserve. It's hard to tell, because what y

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread Tom Browder
On Sun, May 22, 2022 at 09:02 wrote: … Socratic -- I fear you over-estimate me badly :-) You are too modest! Note that the key --preserve-env takes an arg. That would be > > --preserve-env=PATH > > to pass on the PATH environment variable. The arg is a comma separated > list of environment v

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-22 Thread tomas
[reinserted the copy to list: others tend to have better ideas than me] On Sun, May 22, 2022 at 06:15:57AM -0500, Tom Browder wrote: > On Sat, May 21, 2022 at 11:28 wrote: > ... > > > I'm sure the OP is now able to locate that "security policy" config > > and change it to taste. "--preserve-env=

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-21 Thread tomas
On Sat, May 21, 2022 at 06:04:07PM +0200, Linux-Fan wrote: > Greg Wooledge writes: > > > On Sat, May 21, 2022 at 10:04:01AM -0500, Tom Browder wrote: > > > I am getting nowhere fast. > > > > OK, let's start at the beginning. > > > > You have raku installed in some directory that is not in a regu

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-21 Thread Linux-Fan
are the same PATH. I tend to interactively become root and hence ensure that the scripts are run all of the time. This has mostly survived the mentioned change in `su` behaviour and observable variations between `sudo -s` and `su` behaviours are kept at a minimum. HTH and YMMV Linux-Fan öö p

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-21 Thread Greg Wooledge
elling you that symlinks will corrupt your precious bodily fluids. Who knows. So, you would like to perform a privilege elevation command and keep your regular account's PATH variable. Well, guess what? As it turns out, the incredibly stupid behavior of buster's "su" command d

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-21 Thread Tom Browder
On Sat, May 21, 2022 at 09:02 Greg Wooledge wrote: > On Sat, May 21, 2022 at 03:19:09PM +0200, to...@tuxteam.de wrote: > > Less typing, more general. Nobody's trying to dissuade you of doing > > "sudo bash" or "sudo su" or... > I am getting nowhere fas

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-21 Thread Greg Wooledge
On Sat, May 21, 2022 at 03:19:09PM +0200, to...@tuxteam.de wrote: > Less typing, more general. Nobody's trying to dissuade you of doing > "sudo bash" or "sudo su" or... I'm definitely trying to dissuade people from doing the latter. It's one of those h

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-21 Thread tomas
On Sat, May 21, 2022 at 11:12:01AM +, Lee wrote: > On 5/19/22, Tom Browder wrote: > > On Thu, May 19, 2022 at 03:54 Kamil Jońca wrote: > > > >> It is quite misterious for me. > >> What is the purpose of "sudo su" instead of plain "sudo" o

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-21 Thread Brian
oot > > > Password. Ubuntu doesn't, so one of my early actions after the Install > > > is > > > to enter "sudo su -" and, on the resulting Root Shell, type "passwd root". > > > > Depends on whta you mean by "Ubuntu". It

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-21 Thread Tixy
r the Install is > > to enter "sudo su -" and, on the resulting Root Shell, type "passwd root". > > Depends on whta you mean by "Ubuntu". Its mini.iso offers settong a root > password. I wonder whether the regular ISO can be preseeded? > Don't th

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-21 Thread Lee
On 5/19/22, Tom Browder wrote: > On Thu, May 19, 2022 at 03:54 Kamil Jońca wrote: > >> It is quite misterious for me. >> What is the purpose of "sudo su" instead of plain "sudo" or "sudo -i" < .. snip ..> > > I have for years now not u

Re: Avoiding command hijacking in shells (was Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11))

2022-05-20 Thread Greg Wooledge
On Fri, May 20, 2022 at 09:36:40PM -0400, The Wanderer wrote: > I wasn't even thinking of it in those terms, although now that you point > it out that's a good thing to be aware of. I was thinking of it in terms > of A: trying to write scripts that are safe against such problematic > elements being

Re: Avoiding command hijacking in shells (was Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11))

2022-05-20 Thread The Wanderer
>> > $ >> >> A quick test demonstrates that this can be worked around via the 'unset' >> command: > > Until you define a function named unset. Well, yes - that was the point of the paragraphs after the demonstration. > But the real point here is t

Re: Avoiding command hijacking in shells (was Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11))

2022-05-20 Thread Greg Wooledge
via the 'unset' > command: Until you define a function named unset. But the real point here is that you should only use sudo or su (or doas or any other program that reads your password) from a trusted environment. What you definitely should NOT do is get called by a coworker, go over t

Avoiding command hijacking in shells (was Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11))

2022-05-20 Thread The Wanderer
On 2022-05-20 at 20:28, David Wright wrote: > On Thu 19 May 2022 at 15:42:33 (-0500), Nicholas Geovanis wrote: > >> On Thu, May 19, 2022, 3:14 AM 황병희 wrote: >> > Tom Browder writes: >> > >> > > I need a special path setting for root after both "s

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-20 Thread Nicholas Geovanis
On Fri, May 20, 2022, 7:28 PM David Wright wrote: > On Thu 19 May 2022 at 15:42:33 (-0500), Nicholas Geovanis wrote: > > On Thu, May 19, 2022, 3:14 AM 황병희 wrote: > > > Tom Browder writes: > > > > > > > I need a special path setting for root

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-20 Thread David Wright
On Thu 19 May 2022 at 15:42:33 (-0500), Nicholas Geovanis wrote: > On Thu, May 19, 2022, 3:14 AM 황병희 wrote: > > Tom Browder writes: > > > > > I need a special path setting for root after both "sudo" and "sudo > > > su." (...) > > > &

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-20 Thread Brian
On Thu 19 May 2022 at 20:24:50 -0400, Kenneth Parker wrote: [...] > Note, Debian (at least in the Expert Installation Mode) lets me set a Root > Password. Ubuntu doesn't, so one of my early actions after the Install is > to enter "sudo su -" and, on the resulting Root

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-19 Thread Timothy M Butterworth
On Thu, May 19, 2022 at 8:25 PM Kenneth Parker wrote: > > > On Thu, May 19, 2022, 4:14 AM 황병희 wrote: > >> Tom Browder writes: >> >> > I need a special path setting for root after both "sudo" and "sudo >> > su." (...) >> >&g

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-19 Thread Kenneth Parker
On Thu, May 19, 2022, 4:14 AM 황병희 wrote: > Tom Browder writes: > > > I need a special path setting for root after both "sudo" and "sudo > > su." (...) > > Just you try like as "sudo su -". Sometimes i use it that way. > > Sincerely, Li

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-19 Thread Nicholas Geovanis
On Thu, May 19, 2022, 3:14 AM 황병희 wrote: > Tom Browder writes: > > > I need a special path setting for root after both "sudo" and "sudo > > su." (...) > > Just you try like as "sudo su -". Sometimes i use it that way. > When I need to

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-19 Thread Tom Browder
On Thu, May 19, 2022 at 06:31 Greg Wooledge wrote: ... > > > > I feel like you're doing "sudo su" out of some bad habit that you've > > > developed. You'd be doing yourself a favor if you retrain yourself > > > to use "sudo -s"

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-19 Thread Greg Wooledge
On Thu, May 19, 2022 at 06:22:07AM -0500, Tom Browder wrote: > On Thu, May 19, 2022 at 06:03 Greg Wooledge wrote: > > > On Thu, May 19, 2022 at 05:47:29AM -0500, Tom Browder wrote: > > > $ sudo su > > > # ./myprog install > > > > Again, th

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-19 Thread Tom Browder
On Thu, May 19, 2022 at 06:03 Greg Wooledge wrote: > On Thu, May 19, 2022 at 05:47:29AM -0500, Tom Browder wrote: > > $ sudo su > > # ./myprog install > > Again, there's no reason to use both "sudo" AND "su". Just "sudo -s" >

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-19 Thread Greg Wooledge
On Thu, May 19, 2022 at 05:47:29AM -0500, Tom Browder wrote: > $ sudo su > # ./myprog install Again, there's no reason to use both "sudo" AND "su". Just "sudo -s" would give you the interactive root shell, without changing directory. I feel li

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)

2022-05-19 Thread Tom Browder
On Thu, May 19, 2022 at 03:54 Kamil Jońca wrote: > Tom Browder writes: > > > I need a special path setting for root after both "sudo" and "sudo su." > How can I set that up correctly? > > It is quite misterious for me. > What is the purpose of "s

  1   2   3   4   5   6   7   8   9   10   >