WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] /usr/local/tce.installed permission errors  (Read 5855 times)

Offline apacherulzz

  • Newbie
  • *
  • Posts: 18
[SOLVED] /usr/local/tce.installed permission errors
« on: April 30, 2011, 01:05:03 PM »
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 :)
« Last Edit: May 05, 2011, 07:05:06 PM by apacherulzz »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: /usr/local/tce.installed permission errors
« Reply #1 on: April 30, 2011, 01:11:16 PM »
What exactly is happening?

Offline apacherulzz

  • Newbie
  • *
  • Posts: 18
Re: /usr/local/tce.installed permission errors
« Reply #2 on: April 30, 2011, 01:17:11 PM »
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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14641
Re: /usr/local/tce.installed permission errors
« Reply #3 on: April 30, 2011, 01:29:06 PM »
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

Quote
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

Offline apacherulzz

  • Newbie
  • *
  • Posts: 18
Re: /usr/local/tce.installed permission errors
« Reply #4 on: April 30, 2011, 01:33:00 PM »
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?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: /usr/local/tce.installed permission errors
« Reply #5 on: April 30, 2011, 09:08:24 PM »
Here is a comand to identify potential offenders with wrong tce.installed perms on your installed system.

Code: [Select]
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

« Last Edit: May 01, 2011, 04:29:09 PM by Jason W »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14641
Re: /usr/local/tce.installed permission errors
« Reply #6 on: May 01, 2011, 12:11:29 AM »
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

Offline apacherulzz

  • Newbie
  • *
  • Posts: 18
Re: /usr/local/tce.installed permission errors
« Reply #7 on: May 01, 2011, 01:53:00 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 :)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: /usr/local/tce.installed permission errors
« Reply #8 on: May 01, 2011, 04:30:08 PM »
I updated the command, it should work now.  There was a bug in it.

Offline apacherulzz

  • Newbie
  • *
  • Posts: 18
Re: /usr/local/tce.installed permission errors
« Reply #9 on: May 01, 2011, 09:37:38 PM »
sorry : / still nothing

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10993
Re: /usr/local/tce.installed permission errors
« Reply #10 on: May 02, 2011, 02:59:13 AM »
Let's list them all.

ls -ld /tmp/tcloop/*/usr/local/tce.installed
The only barriers that can stop you are the ones you create yourself.

Offline apacherulzz

  • Newbie
  • *
  • Posts: 18
Re: /usr/local/tce.installed permission errors
« Reply #11 on: May 02, 2011, 07:08:37 PM »
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
« Last Edit: May 03, 2011, 06:27:39 PM by apacherulzz »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10993
Re: /usr/local/tce.installed permission errors
« Reply #12 on: May 04, 2011, 12:01:31 PM »
So you load them to ram? Then you'd need to scan the extensions on disk...
The only barriers that can stop you are the ones you create yourself.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: /usr/local/tce.installed permission errors
« Reply #13 on: May 04, 2011, 12:51:58 PM »
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.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: /usr/local/tce.installed permission errors
« Reply #14 on: May 04, 2011, 10:41:42 PM »
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.