Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
777 stars 188 forks source link

Permission Denied #744

Closed biftabravo closed 1 year ago

biftabravo commented 1 year ago

Hi,

I'm running the latest build of devstation 6.2.13. Fresh install, twice! When I build any image I keep getting the same error and looked at it to long now to figure it out!

"line 20: can't open /etc/thinstation.functions : permission denied"

Any help would be great!

Thinstation commented 1 year ago

What are the permissions on the file?

biftabravo commented 1 year ago

-rw-r-----

This on the booted image. It tries then fails with this error.

Thinstation commented 1 year ago

And the user.group?

Thinstation commented 1 year ago

What locale?

biftabravo commented 1 year ago

everything in etc is root 0

Thinstation commented 1 year ago

You might a umask issue. Perms should be rw.r..r..

biftabravo commented 1 year ago

strange its only the one file in there rest are fine.

How can I change that?

Thinstation commented 1 year ago

Are you using an altered thinstation.functions in a custom package?

biftabravo commented 1 year ago

no. nothing special not changed anything. I've set my session_0 stuff for rdesktop and nothing else. Then build with --allmodules

Thinstation commented 1 year ago

And in the resulting image, only thinstation.functions has bad perms?

biftabravo commented 1 year ago

yep. everything else is what it should be. Capture

Thinstation commented 1 year ago

Looks like thinstation.packages is also getting baked. Should be rwxr-xr-x What locale?

Thinstation commented 1 year ago

Look at your checkout and verify the perms on the files in /build/packages/base/etc

biftabravo commented 1 year ago

locale in dev env shows as C. guessing ive never set it.

biftabravo commented 1 year ago

Looking at that now.

Apricate the help

biftabravo commented 1 year ago

permissions are correct in /build/packages/base/etc

Thinstation commented 1 year ago

find /build/packages -name thinstation.functions

Thinstation commented 1 year ago

Also check dialog.functions

biftabravo commented 1 year ago

permissions are the same on the dialog file as well. Fine before build but in the image no read permissions

Thinstation commented 1 year ago

What is "your" locale?

biftabravo commented 1 year ago

UK lol

Thinstation commented 1 year ago

Those are core files, and that they are the files that are being disabled gives me pause. I would usually expect someone to customize those files for language, but you say that you have not done that. ¯_(ツ)_/¯

biftabravo commented 1 year ago

I thought it was me as well!!

Fresh download and clean install. no changes made and nothing extra added to config.

Just doing it again but on different hardware...

Thinstation commented 1 year ago

Could also try another base distro to host the clone. DevStation is a teacher, but maybe not the best host OS.

biftabravo commented 1 year ago

ok I have a ubuntu box I can use so ill add it there if one doesnt work

biftabravo commented 1 year ago

new hardware, same image, same config, working fine!

The hypervisor was update a few weeks ago guessing a network driver or something like raid controller is causing an issue! 2 days well spent!

Owe you a beer my friend!

Thinstation commented 1 year ago

That does not really explain why core files had there perms altered, but glad your back on track.