Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: rhermsen on May 25, 2025, 06:49:58 AM

Title: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: rhermsen on May 25, 2025, 06:49:58 AM
Follow-up on During startup, while extensions are loaded I see a few warnings regarding chown (https://forum.tinycorelinux.net/index.php/topic,26991.0.html)

found (I think) the last chown command causing the following message

Quote
chown: warning: '.' should be ':': 'tc.staff'


Code: [Select]
$ grep -rn chown /usr/local/bin/*.sh
/usr/local/bin/wbar_setup.sh:16:sudo chown root:staff "$TCEWBAR"
/usr/local/bin/wbar_setup.sh:22:        chown "$USER":staff "$XWBAR"
/usr/local/bin/xsetup.sh:103:sudo chown ${USER}.staff "$HOME"/.xsession

So it is line 103 in /usr/local/bin/xsetup.sh which still has a '.' (dot) i.s.o. a ':'.

I have problems using the 'P' option to locate the originating extension providing this file:
Code: [Select]
$ tce-ab
tce-ab - Tiny Core Extension: Application Browser

S)earch P)rovides K)eywords or Q)uit: P
Enter search term, e.g. iwconfig: xsetup.sh
awk: /etc/sysconfig/tcedir/provides.db: No such file or directory
S)earch P)rovides K)eywords or Q)uit:

Seen on both CL-16.0 and CP64-16.0

Code: [Select]
$ uname -a
Linux testapps 6.12.11-tinycore #1 SMP Sun Jan 26 18:37:07 UTC 2025 i686 GNU/Linux

Code: [Select]
$ version
16.0
Title: Re: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: Rich on May 25, 2025, 07:29:54 AM
Hi rhermsen
...
Code: [Select]
$ grep -rn chown /usr/local/bin/*.sh
 ----- Snip -----
/usr/local/bin/xsetup.sh:103:sudo chown ${USER}.staff "$HOME"/.xsession
...
It is provided by Xlibs.

Since the file is linked into the file system, this also displays that information:
Code: [Select]
tc@E310:~$ ls -l /usr/local/bin/xsetup.sh
lrwxrwxrwx 1 root root 41 May 22 04:12 /usr/local/bin/xsetup.sh -> /tmp/tcloop/Xlibs/usr/local/bin/xsetup.sh
Title: Re: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: Rich on May 25, 2025, 08:16:59 AM
Hi rhermsen
In addition ...
TC16 aarch64:
Code: [Select]
pkg/usr/local/bin/xsetup.sh:103:sudo chown ${USER}.staff "$HOME"/.xsession
pkg/usr/local/tce.installed/Xlibs:7:sudo chown -R root.staff /usr/local/tce.installed 2>/dev/null

TC16 armhf:
Code: [Select]
pkg/usr/local/tce.installed/Xlibs:7:chown -R "$USER".staff /home/"$USER" 2>/dev/null
pkg/usr/local/tce.installed/Xlibs:9:sudo chown -R root.staff /usr/local/tce.installed 2>/dev/null
I also noticed xsetup.sh for armhf is a lot different:
Code: [Select]
rich@tcbox:~$ cat pkg/usr/bin/xsetup.sh
#!/bin/sh

#######################################
# Modified by bmarkus for piCore
#
# October 2, 2016
#######################################

busybox cp -f /etc/skel/.xsession $HOME/.xsession
Title: Re: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: Juanito on May 26, 2025, 09:40:43 AM
Xlibs adjusted in the 16.x repos
Title: Re: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: rhermsen on May 28, 2025, 07:46:53 PM
@Juanito

Thanks for resolving the Xlibs script.

I still see the message with a reboot (but maybe less often?)

Did some more searching and found the following two:

Code: [Select]
$ grep -Irn chown /usr/local/bin/* | grep "\.staff"
/usr/local/bin/flwm_topside_ondemand:19:chown ${USER}.staff -R /home/${USER}/.wmx
/usr/local/bin/wbar_mv_icon:16:   sudo chown root.staff ${FROMFILE}


flwm_topside_ondemand > flwm_topside.tcz
/usr/local/bin/wbar_mv_icon > wbar.tcz



Title: Re: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: Juanito on May 29, 2025, 06:13:57 AM
flwm, flwm_topside and wbar adjusted in CorePure64-16.x repo - I'll do the other repos as I get round to it.
Title: Re: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: rhermsen on June 14, 2025, 05:46:50 AM
I have not been able to reproduce the message with CorePure64-16.x.
(still see it with CL-16.0 (32-bit))
Title: Re: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: Juanito on June 14, 2025, 10:18:32 AM
flwm, flwm_topside and wbar adjusted in Core-16.x repo
Title: Re: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: Juanito on June 14, 2025, 11:01:48 AM
..and piCore-16.x and piCore64-16.x repos
Title: Re: While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0
Post by: mjmouse on July 31, 2025, 05:19:28 AM
The jwm.tcz and jwm-full.tcz extensions for Tiny Core x86_64 have a
Code: [Select]
chown "$USER".staff "$TCEMENU" /home/"$USER"/.jwm* in /usr/local/bin/jwm_initmenu .

I've currently just overridden that binary and set it to backup with filetool for now.