WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tcz ownership and permission questions...  (Read 3445 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
tcz ownership and permission questions...
« on: June 24, 2015, 09:04:19 PM »
Have an amalgamation of information and can't remember exactly where i read this (wiki, forum, Core book). When preparing .tcz extensions, is the following ownership and permission information still accurate? For example, one source indicated binary should be root:root with 755 permission, another root:staff with 775 permission?

- binary should be root:staff with 775 permission
- shared object lib files (end in .so or .so*) are also treated as executable (root:staff, 775 permission)
- static object lib files (end in .a or .la) are classified as normal files (644 permission)
- all files root:root, 644 for files, 755 for executables, 755 for directories
- permissions of sym links will show as 777 which is normal

Also when i go though my system's /optional/*.tcz extensions, there are several oddball permssions. All extensions are tc:staff owned and most are 664. Here are some of the oddball permissions below. My system is otherwise working great, just wondering if there is a reason or explanation for these differences?
- aterm.tcz 575 and also tagged executable
- freetype.tcz 575 tagged executable
- glib2.tcz 620
- libX11.tcz 575 tagged executable
- libdrm.tcz 620
« Last Edit: June 24, 2015, 09:32:46 PM by nitram »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: tcz ownership and permission questions...
« Reply #1 on: June 25, 2015, 12:36:56 AM »
Which version, which architecture are you referring?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: tcz ownership and permission questions...
« Reply #2 on: June 25, 2015, 12:58:01 AM »
Sorry.
TC 6.3 x86

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: tcz ownership and permission questions...
« Reply #3 on: June 25, 2015, 04:23:00 AM »
There is no rule for binaries and libraries, usually what "make install" does is sufficient (root:root and suitable permissions).
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14823
Re: tcz ownership and permission questions...
« Reply #4 on: June 25, 2015, 04:25:00 AM »
I checked on the server - there were a few extensions mistakenly marked as executable (now corrected), but none of the ones you mentioned.

The ownership was correct on all of the extensions in the repo, so the error must be local.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: tcz ownership and permission questions...
« Reply #5 on: June 25, 2015, 06:49:25 AM »
Never had any problems with 'executable' extensions. Also, if core is installed on a DOS/Windows partition, everything on that file system is executable.

When compiling from source and creating extensions, I use:
Code: [Select]
sudo make DESTDIR=/tmp/extension-name install
which should create correct file permissions.

Quote
- all files root:root, 644 for files, 755 for executables, 755 for directories
I'm also not sure about root:root for executables. Might not be true/necessary for every possible file.
For example, my personal Firefox extension is currently tc:staff but root:staff did work as well.
Download a copy and keep it handy: Core book ;)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: tcz ownership and permission questions...
« Reply #6 on: June 25, 2015, 11:09:12 PM »
Thanks for all replies. My actual /optional/*.tcz extensions are all tc:staff, so no problem. Have no explanation why the permissions would be different. Always use the distro. ibiblio. org/ tinycorelinux/ repository and haven't purposely changed any permissions within /optional.

Regardless, thanks Juanito for checking the repo and removing the unnecessary executable tags. As a relative beginner, think i wil just stick with 'sudo make DESTDIR=/tmp/extension-name install' and leave it at that, although agree not every binary needs or probably should even be root:root.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: tcz ownership and permission questions...
« Reply #7 on: June 26, 2015, 01:40:36 AM »
Always use the distro. ibiblio. org/ tinycorelinux/ repository...

In the specific case it is irrelevant, but better to use the main repo, repo.tinycorelinux.net instead of ibiblio which is a mirror.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: tcz ownership and permission questions...
« Reply #8 on: June 26, 2015, 03:34:05 AM »
Thanks - changed repository to repo.tinycorelinux.

Think i figured out most of my permission issues - newbie hacked TC install :)

Folder permissions for /optional and /ondemand for a persistent install have been changed to 775 and all /optional/*.tcz extension permissions have been corrected.

No biggie, but in the process of discovery i downloaded and investigated TinyCore (15MB) and CorePlus (72MB). All of these .iso extensions in cde/optional appear correct (444 permissions) except the CorePlus gamin.tcz extension (555 plus an executable bit).

Thanks again everyone.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14823
Re: tcz ownership and permission questions...
« Reply #9 on: June 26, 2015, 06:39:41 AM »
The gamin extension was one of those corrected - it will be fixed next time the ISO is built