Tiny Core Extensions > TCE Q&A Forum

While loading GUI extensions see a warning regarding chown, CL-16.0. CP64-16.0

(1/2) > >>

rhermsen:
Follow-up on During startup, while extensions are loaded I see a few warnings regarding chown

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


--- Quote ---chown: warning: '.' should be ':': 'tc.staff'
--- End quote ---



--- Code: ---$ 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

--- End code ---

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: ---$ 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:
--- End code ---

Seen on both CL-16.0 and CP64-16.0


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


--- Code: ---$ version
16.0
--- End code ---

Rich:
Hi rhermsen

--- Quote from: rhermsen on May 25, 2025, 06:49:58 AM --- ...
--- Code: ---$ grep -rn chown /usr/local/bin/*.sh
 ----- Snip -----
/usr/local/bin/xsetup.sh:103:sudo chown ${USER}.staff "$HOME"/.xsession
--- End code ---
...
--- End quote ---
It is provided by Xlibs.

Since the file is linked into the file system, this also displays that information:

--- Code: ---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
--- End code ---

Rich:
Hi rhermsen
In addition ...
TC16 aarch64:

--- Code: ---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
--- End code ---

TC16 armhf:

--- Code: ---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
--- End code ---
I also noticed xsetup.sh for armhf is a lot different:

--- Code: ---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
--- End code ---

Juanito:
Xlibs adjusted in the 16.x repos

rhermsen:
@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: ---$ 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}

--- End code ---


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



Navigation

[0] Message Index

[#] Next page

Go to full version