site  contact  history  index

Fix sudo run as another user

July 17, 2026 — BarryK

EasyOS does not have 'sudo', instead has a light-weight replacement named 'sudo-sh':

https://bkhome.org/news/202510/sudo-sh-reverted-to-simpler-design.html

There is a script /usr/bin/sudo, that is a wrapper for sudo-sh. It is far from implementing everything that sudo is capable of. The guys found when install Zoneminder, that it tries to use sudo to launch an app as user 'www-data':

https://forum.puppylinux.com/viewtopic.php?p=173863#p173863

I have modified 'sudo' script:

#!/bin/ash
C=''
while [ -n "$1" ];do
case "$1" in
-*)
case "$1" in
--user=*)
#ref: https://forum.puppylinux.com/viewtopic.php?p=173863#p173863
USERx="${1/*=/}"
shift
exec /usr/sbin/run-as-user ${USERx} ${@}
;;
-u)
shift
exec /usr/sbin/run-as-user ${@}
;;
-g|-p|-U|-C|-r|-t)
shift
;;
esac
;;
*)
C="$@"
break
;;
esac
shift
done

if [ -n "$C" ];then
#exec sudo-sh ${PPID} ${0} ${C}
exec sudo-sh ${PPID} ${C}
fi
###end###

The 'run-as-user' script was introduced here:

https://bkhome.org/news/202602/enhanced-script-to-run-app-as-any-user.html

If you try and run it, like this for example: run-as-user www-data myapp

It will fail, as folder "/home/www-data" does not exist. I have modified the 'run-as-user' script to call /usr/local/clients/create-client-environment if www-data not in /etc/passwd, or if it is, to not require existence of /home/www-data.  

Tags: easy

Started work on EasyOS graphical installer

July 14, 2026 — BarryK

Still a lot to do, but here are some snapshots. The startup window:

img1

MS Windows help popup:

img2

Install to entire drive help:

img3

For frugal install, the Installer cannot do everything. Just like the mainstream installers, such as Calamares, some things have to be done in a running MS Windows. Especially these days, as it seems most Windows installations in modern computers have encrypted drives, using BitLocker.

So, I will need to revise and improve the instructions for defragmenting and shrinking the main C: partition, and turn off Fast Startup. After that, there will be free space in the drive, and gParted can be used to make a ext4 partition, and maybe another FAT partition. Though, Easy Installer could also be coded to do this.   

Tags: easy

Set Limine default in UEFI

July 13, 2026 — BarryK

Reviewing Limine Installer, this code adds the new installation of Limine to the UEFI (/usr/local/limine-installer/limine-installer, line 572+:

    DRVdest="$(echo -n "${ESPdest}" | sed -e 's%[0-9]*$%%' -e 's%p$%%')" #ex: sdb
efibootmgr -c -d /dev/${DRVdest} -p ${ESPdest/*[a-z]/} -L limine -l "\EFI\limine/"${EFIname}".EFI" 2>/tmp/limine-installer/efibootmgr-install-error.log

...where "-c" is the short form of "--create", "-d" is the drive, "-p" is partitition number, "-L" is the label, and "-l" is path the to Limine .efi file.

According to online documentation, this new entry should become the default at next bootup. However, I seem to recall, from testing sometime ago, that might not have been the case, so have added extra code to ensure it is first in the boot order:

     ENTRY="$(efibootmgr 2>/dev/null | grep ' limine' | grep -o '000[0-9A-Z]')"
BO1="$(efibootmgr 2>/dev/null | grep '^BootOrder:' | cut -f 2 -d ' ' | tr ',' '\n' | grep -v "${ENTRY}")"
BO2="${ENTRY}${CR}${BO1}"
BO3="$(echo -n "${BO2}" | tr '\n' ',')" #ex: 0005,0000,0001
efibootmgr --bootorder ${BO3}

I have started to think about a graphical installer for EasyOS, and Limine Installer will be part of it. So, checking the code in Limine Installer, that it looks sane.    

Tags: easy

Wayne is homeless

July 12, 2026 — BarryK

Wayne is from Perth, Western Australia, and today travels in Asia, staying in cheap accommodation. He makes a living, just enough, from his YouTube channel "Fiasco da Gama" (a take on the Portuguese explorer Vasco da Gama).

In this video, Wayne explains about his lifelong desire not to accumulate possessions, to just be a wandering spirit:

"60 And The Freedom Of Having Nothing. Goa."
https://www.youtube.com/watch?v=PUa_SSz29Mo

I've been turning over Wayne's philosophy in my mind...

He does come back to Perth sometimes. I think the last time was for dental treatment. He stays with his sister, who is a regular married person with a home.

Can't say that I agree with him, not 100%. A person can be very happy owning a home, and have pleasure in having kids. Just as, alternatively, those things could be a not-so-happy experience. I think, mostly, it is where you are in your own mind.

Wayne will qualify for the Age pension when he reaches 67, as long as he has been resident in Australia for 10 years, 5 of which must be continuous. There is something called "Australian Working Life Residency" (AWLR), which is how many years you have been resident in Australia since age 16; a figure of 35 or more confers the full Age pension. below that, it declines proportionally -- which could be a problem for Wayne.

However, as far as I can make out, this AWLR rule only applies if you are living overseas while retired. Google AI says this:

The 26-Week Rule:
You can receive your full Age Pension rate while traveling overseas for up to 26 weeks, regardless of your AWLR.
After 26 weeks:
Your AWLR calculation kicks in to determine your ongoing rate.

...so it looks like that 26-week rule will suit Wayne.   

Tags: general

EasyOS Excalibur-series version 7.4.4 released

July 11, 2026 — BarryK

Bug fixes! Release notes since 7.4.3:

...and of course, more videos.

If you are a newcomer to EasyOS, recommend read the 7.4 announcement, as it has more details:

Download:

https://distro.ibiblio.org/easyos/amd64/releases/excalibur/2026/7.4.4/

Feedback welcome on the forum:

https://forum.puppylinux.com/viewtopic.php?p=173649#p173649

Have fun!   

Tags: easy

Another fix to unmount all partitions

July 11, 2026 — BarryK

See forum:

https://forum.puppylinux.com/viewtopic.php?p=173635#p173635

Have modified /sbin/fixlayers in the initrd to force redraw all partition icons at version update.   

Tags: easy

Typo in EasyShare

July 11, 2026 — BarryK

Sigh, these things do happen when there is a moment of inattention:

https://forum.puppylinux.com/viewtopic.php?p=173634#p173634

Will build Easy 7.4.4 tonight.   

Tags: easy

yff rolled back to 2.7

July 11, 2026 — BarryK

Posted earlier that had updated yff to 3.1; however, bug:

https://forum.puppylinux.com/viewtopic.php?p=173598#p173598

Need to build Easy 7.4.4 today, so temporarily rolling yff back to 2.7.   

Tags: easy