Tiny Core Linux

Tiny Core Base => Corepure64 => Topic started by: aus9 on May 23, 2023, 05:13:32 PM

Title: [Solved] 14x Can someone do a test for me manual load of acpid please
Post by: aus9 on May 23, 2023, 05:13:32 PM
on aarch64 ( Rpi) I found more than 1 issue in my setup and I think I have fixed it. But one issue remains, but I found same issue here on TC64 14x
Let me try and explain what little I know.
Your boot list loads TCEs from top to bottom. But each may have a dep file. And they load from bottom to top. So acpid is a small TCE to download and does not appear to be in any of my dep files.

Whoever has time to volunteer....on TC64 14x run  TEST1
Code: [Select]
ls -al /usr/local/tce.installedfocus on the hits for actual scripts....you and me both will see they are root:staff

For the volunteer now manually load acpid, which has no dep file run
Code: [Select]
tce-load -i acpid
Now run TEST2
Code: [Select]
ls -al /usr/local/tce.installed/acpid
curiously ls -al /tmp/tcloop/acpid/usr/local/tce.installed/ shows its currently tc:staff.

If volunteer can say...they too see root:root  TEST2, then my setup is still good and I will need report an issue for TC64.
If volunteer result is still good.....TEST2 shows root:staff then I have a bad setup

thanks for reading
Title: Re: 14x Can someone do a test for me manual load of acpid please
Post by: Rich on May 23, 2023, 05:37:43 PM
Hi aus9
/usr/local/tce.installed/acpid  shows  root:root
/tmp/tcloop/acpid/usr/local/tce.installed/acpid  shows  tc:staff
Title: Re: 14x Can someone do a test for me manual load of acpid please
Post by: aus9 on May 23, 2023, 07:33:56 PM
well in some ways thats a relief. But as you are Rich and not me, is this something that needs  a bug report.

if not, please mark as solved
Title: Re: [Solved] 14x Can someone do a test for me manual load of acpid please
Post by: Rich on May 24, 2023, 04:44:42 AM
Hi aus9
I don't think this is an issue. Aside from  USER (tc)  and  Group (staff)  there
is a third field called  Other.  If you look at the permission bits:
tc@box:~$ ls -l /tmp/tcloop/acpid/usr/local/tce.installed/acpid 
-rwxr-xr-x 1 tc staff 97 Jan  8  2010 /tmp/tcloop/acpid/usr/local/tce.installed/acpid
tc@box:~$ ls -l /usr/local/tce.installed/acpid
lrwxrwxrwx 1 root root 47 May 23 20:34 /usr/local/tce.installed/acpid -> /tmp/tcloop/acpid/usr/local/tce.installed/acpid

you'll see the  read  and  execute  bits are set for  Other , meaning anyone is
allowed to execute the script.
Title: Re: [Solved] 14x Can someone do a test for me manual load of acpid please
Post by: aus9 on May 25, 2023, 01:49:48 AM
hi Rich

thanks