Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: apacherulzz on April 30, 2011, 10:05:03 AM
-
I did some searching and it seems as if any extensions downloaded with app browser should have the correct permissions so im thinking this is a bug. I read that Jason had a script but had trouble locating it to find out which extensions are causing the problems. System boots fine, really. Just thought that it may cause some weird issues later. Can anyone point me in the right direction? Thanks :)
-
What exactly is happening?
-
Sorry, I guess that wasnt very descriptive :P
So when I boot, I have the showapps boot option enabled so I can see the extensions that are being loaded. Please bear with me as I am completely new to these types of distros.
I installed MicroCore and am using the i3 wm with the latest version of Xorg (i found it odd synaptics driver required previous version...may revert for scrolling functionality). In the Onboot.lst where I am loading all of my extensions, I have Xprog, Xlib, Xorg, etc. but I am loading Xorg related extensions first. The very first extensions loads fine but the next 5 give a touch error that permissions where denied to /usr/local/tce.installed/{respective dir} . ls -l shows tce.installed is root staff, almost all of the files inside this dir are however tc staff. Some are root staff. The one I think is causing problems...Xprogs, the second item in my onboot.lst. It is root root. This is the first of 4 or 5 that gives the permission denied error.
-
i found it odd synaptics driver required previous versio
the synaptics driver is contained in the Xorg-7.5 extension, but not in the Xorg-7.4 extension
Xprogs, the second item in my onboot.lst. It is root root. This is the first of 4 or 5 that gives the permission denied error.
the /usr/local/tce.installed folder should be owned by root:staff in all of the extensions
-
ahh didn't know that about the new Xorg...I need to look into enabled the scrolling mechanism on my touchpad then.
as far as the permissions of /usr/local...i changed them all to what they should be but of course a restart and everything is back to where it was. I thought I read that the permissions are a part of the extension. Do I need to make /usr/local/tce.installed persistent or something?
-
Here is a comand to identify potential offenders with wrong tce.installed perms on your installed system.
for I in `ls /tmp/tcloop/`; do [ -d /tmp/tcloop/"$I"/usr/local/tce.installed \
] && ls -l /tmp/tcloop/"$I"/usr/local/tce.installed | grep -v "rwxrwxr-x" | grep -v "drwxrwsr-x" | \
grep -v "root staff" ; done
-
Do I need to make /usr/local/tce.installed persistent or something?
No, it's the extension owner's job to fix the permissions if required - you could drop them a pm
-
@Jason
your script returns nothing. it seems the permissions should be set properly. why would I be getting this messages on boot?
@Juanito
Thank you, once I figure out what the problem is, if appropriate PMs will be sent :)
PS: It was painstakingly obvious to figure out synaptics driver. got it working this morning :)
-
I updated the command, it should work now. There was a bug in it.
-
sorry : / still nothing
-
Let's list them all.
ls -ld /tmp/tcloop/*/usr/local/tce.installed
-
I have nothing in tcloop... ???
tc@box:/usr/local/tce.installed$ ls -ld /tmp/tcloop/*/usr/local/tce.installed
ls: /tmp/tcloop/*/usr/local/tce.installed: No such file or directory
EDIT: maybe you wanted a space after the *?
in that case tcloop is completely empty
here is my /usr/local/tce.installed if that helps :-\
tc@box:/usr/local/tce.installed$ ls -l
total 88
-rwxrwxr-x 1 root staff 154 Aug 28 2010 915resolution
-rwxrwxr-x 1 root staff 481 Jan 27 00:10 Linux-PAM
-rwxrwxr-x 1 root staff 390 Aug 4 2010 NetworkManager
-rw-r--r-- 1 tc staff 0 May 2 18:47 Xlibs
-rwxr-xr-x 1 tc staff 140 May 28 2010 Xorg-7.5
-rw-r--r-- 1 tc staff 0 May 2 18:47 Xorg-7.5-lib
-rwxr-xr-x 1 root root 312 Feb 8 17:40 Xprogs
-rw-r--r-- 1 tc staff 0 May 2 18:47 acpi
-rwxrwxr-x 1 root staff 408 Oct 19 2010 alsa
-rw-r--r-- 1 tc staff 0 May 2 18:47 alsa-modules-2.6.33.3-tinycore
-rw-r--r-- 1 tc staff 0 May 2 18:47 alsaconf
-rw-r--r-- 1 tc staff 0 May 2 18:47 atk
-rw-r--r-- 1 tc staff 0 May 2 18:48 babl
-rwxr-xr-x 1 root staff 469 Mar 1 2010 bash
-rw-r--r-- 1 tc staff 0 May 2 18:48 bc-1.06.94
-rw-r--r-- 1 tc staff 0 May 2 18:47 bsddb
-rw-r--r-- 1 tc staff 0 May 2 18:47 bzip2-lib
-rw-r--r-- 1 tc staff 0 May 2 18:47 cairo
-rw-r--r-- 1 tc staff 0 May 2 18:47 cnetworkmanager
-rw-r--r-- 1 tc staff 0 May 2 18:47 cracklib
-rw-r--r-- 1 tc staff 0 May 2 18:47 curl
-rwxr-xr-x 1 tc staff 532 Feb 8 2010 dbus
-rw-r--r-- 1 tc staff 0 May 2 18:47 dbus-glib
-rw-r--r-- 1 tc staff 0 May 2 18:47 dbus-python-2.7
-rwxrwxr-x 1 root staff 113 Apr 10 23:08 dhcpcd
-rw-r--r-- 1 tc staff 0 May 2 18:47 dialog
-rw-r--r-- 1 tc staff 0 May 2 18:48 dmenu
-rw-r--r-- 1 tc staff 0 May 2 18:48 dzen2
-rw-r--r-- 1 tc staff 0 May 2 18:48 dzen2-utils
-rw-r--r-- 1 tc staff 0 May 2 18:47 eggdbus
-rw-r--r-- 1 tc staff 0 May 2 18:47 expat2
-rwxr-xr-x 1 root staff 700 Feb 7 2010 firefox
-rwxrwxr-x 1 root staff 1112 Apr 24 06:30 flash10
-rw-r--r-- 1 tc staff 0 May 2 18:47 fontconfig
-rwxrwxr-x 1 root staff 68 Oct 14 2010 gdk-pixbuf2
-rw-r--r-- 1 tc staff 0 May 2 18:48 gegl
-rw-r--r-- 1 tc staff 0 May 2 18:48 gimp2
-rw-r--r-- 1 tc staff 0 May 2 18:47 glib2
-rw-r--r-- 1 tc staff 0 May 2 18:47 gobject-introspection
-rw-r--r-- 1 tc staff 0 May 2 18:47 graphics-libs-1
-rw-r--r-- 1 tc staff 0 May 2 18:48 gsfonts
-rwxrwxr-x 1 root staff 68 Feb 15 18:33 gtk2
-rw-r--r-- 1 tc staff 0 May 2 18:47 gudev-lib
-rwxrwxr-x 1 root staff 45 Jul 14 2010 i3
-rw-r--r-- 1 tc staff 0 May 2 18:47 input-joystick-2.6.33.3-tinycore
-rw-r--r-- 1 tc staff 0 May 2 18:47 iproute2
-rw-r--r-- 1 tc staff 0 May 2 18:47 iptables
-rw-r--r-- 1 tc staff 0 May 2 18:47 libasound
-rw-r--r-- 1 tc staff 0 May 2 18:48 libev
-rw-r--r-- 1 tc staff 0 May 2 18:48 libexif
-rw-r--r-- 1 tc staff 0 May 2 18:47 libffi
-rw-r--r-- 1 tc staff 0 May 2 18:47 libnl1
-rw-r--r-- 1 tc staff 0 May 2 18:48 libnotify
-rw-r--r-- 1 tc staff 0 May 2 18:47 libpci
-rw-r--r-- 1 tc staff 0 May 2 18:48 libxcb
-rw-r--r-- 1 tc staff 0 May 2 18:48 libxcb-util
-rw-r--r-- 1 tc staff 0 May 2 18:47 libxft
-rw-r--r-- 1 tc staff 0 May 2 18:47 libxml2
-rw-r--r-- 1 tc staff 0 May 2 18:48 libxp
-rw-r--r-- 1 tc staff 0 May 2 18:47 mktemp
-rw-r--r-- 1 tc staff 0 May 2 18:47 ncurses
-rw-r--r-- 1 tc staff 0 May 2 18:47 ncurses-common
-rw-r--r-- 1 tc staff 0 May 2 18:47 netfilter-2.6.33.3-tinycore
-rw-r--r-- 1 tc staff 0 May 2 18:47 nspr
-rw-r--r-- 1 tc staff 0 May 2 18:47 nss
-rw-r--r-- 1 tc staff 0 May 2 18:47 openssl-0.9.8
-rwxrwxr-x 1 root staff 334 Nov 7 19:42 pango
-rwxrwxr-x 1 root staff 130 Oct 6 2009 pci-utils
-rwxrwxr-x 1 root staff 46 Oct 2 2009 perl5
-rw-r--r-- 1 tc staff 0 May 2 18:47 pixman
-rwxrwxr-x 1 root staff 752 Oct 10 2010 polkit
-rwxr-xr-x 1 root staff 128 Oct 10 2009 pppd
-rw-r--r-- 1 tc staff 0 May 2 18:47 pycairo-2.7
-rw-r--r-- 1 tc staff 0 May 2 18:47 pygobject-2.7
-rwxrwxr-x 1 root staff 116 Dec 5 08:42 python
-rw-r--r-- 1 tc staff 0 May 2 18:47 readline
-rw-r--r-- 1 tc staff 0 May 2 18:47 sqlite3
-rw-r--r-- 1 tc staff 0 May 2 18:47 squashfs-tools-4.x
-rw-r--r-- 1 tc staff 0 May 2 18:47 tcl
-rw-r--r-- 1 tc staff 0 May 2 18:47 tk
-rw-r--r-- 1 tc staff 0 May 2 18:47 udev-lib
-rw-r--r-- 1 tc staff 0 May 2 18:47 vim
-rw-r--r-- 1 tc staff 0 May 2 18:47 wireless-2.6.33.3-tinycore
-rw-r--r-- 1 tc staff 0 May 2 18:47 wireless_tools
-rw-r--r-- 1 tc staff 0 May 2 18:47 wl
-rwxrwxr-x 1 root staff 146 Nov 18 22:59 wpa_supplicant-dbus
-rwxrwxr-x 1 root root 272 Feb 23 2010 xpdf
-rw-r--r-- 1 tc staff 0 May 2 18:48 xsetroot
-rw-r--r-- 1 tc staff 0 May 2 18:48 yajl
-
So you load them to ram? Then you'd need to scan the extensions on disk...
-
I fixed the ownership of the xpdf install script from root:root to root:staff though it should be of no consequence in this case since it was the script and not the tce.installed directory that had the root:root ownership.
-
Xprogs.tcz had root:root ownership of it's /usr/local/tce.installed directory and installed script, which could possibly result in the permission error with the touch command when loading subsequent extensions that do not contain a startup script. Corrected and uploaded, update and see if that fixes it.
-
wow...worked ;D thank you VERY much. I can already tell this is going to be a great community to be a part of ;) not to mention I do happen to be a software engineer as well and have always wanted to get into the linux development community so once I get a better understanding of whats goin on here maybe I can help out too!
Thank you all again very much.