[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ONLY lsblk worked Re: How to _display_ disk partition info?



On Tue, Aug 12, 2025 at 00:05:27 +0800, Ming Kuang wrote:
> On Mon, Aug 11, 2025 at 09:26:31AM -0500, Richard Owlett wrote:
> > > richard@debian12:~$ su
> > > Password:
> > > root@debian12:/home/richard# parted
> > > bash: parted: command not found
> > > root@debian12:/home/richard# sfdisk
> > > bash: sfdisk: command not found
> > > root@debian12:/home/richard# fdisk -l
> > > bash: fdisk: command not found
> > > root@debian12:/home/richard#

> You should use `su -` to switch to the root user to automatically load
> the root user's profile.

<https://wiki.debian.org/NewInBuster#Changes> explains the reason for
this change, and gives additional options.

Personally, I prefer to create an /etc/default/su file so that this
issue is fixed permanently.

hobbit:~$ cat /etc/default/su
ALWAYS_SET_PATH yes


Reply to: