Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started 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
chown: warning: '.' should be ':': 'tc.staff'
$ 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:
$ 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
$ uname -a
Linux testapps 6.12.11-tinycore #1 SMP Sun Jan 26 18:37:07 UTC 2025 i686 GNU/Linux
$ version
16.0
-
Hi rhermsen
... $ 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:
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
-
Hi rhermsen
In addition ...
TC16 aarch64:
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:
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:
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
-
Xlibs adjusted in the 16.x repos
-
@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:
$ 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
-
flwm, flwm_topside and wbar adjusted in CorePure64-16.x repo - I'll do the other repos as I get round to it.
-
I have not been able to reproduce the message with CorePure64-16.x.
(still see it with CL-16.0 (32-bit))
-
flwm, flwm_topside and wbar adjusted in Core-16.x repo
-
..and piCore-16.x and piCore64-16.x repos
-
The jwm.tcz and jwm-full.tcz extensions for Tiny Core x86_64 have a
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.