Spot is failing to work in Bionicpup64 8.0 (Solved)

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Spot is failing to work in Bionicpup64 8.0 (Solved)

Post by Phoenix »

Bionicpup64 8.0
Simply trying to use ``run-as-spot``, or ``su spot`` does not work as it exits due to permission being denied. Both for ash, and sh. Even executing browsers via their menu entry does not work, as they can write to places outside /home/spot.
The flags for puppy are ``pfix=nocopy pmedia=usbhd mitigations=off'
As well I am using 5.10-ck kernel.

Last edited by Phoenix on Wed Feb 09, 2022 1:19 am, edited 1 time in total.

IRC: firepup | Time to hack Puppy!

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: spot is failing

Post by April »

Using xenialpup64-7.5
I get

Code: Select all

root# run-as-spot
root# whoami
root
root# su spot
root$ whoami
spot
root$ 

Now if I can just remember how to get back to being root.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

TerryH
Posts: 627
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 157 times
Been thanked: 157 times

Re: spot is failing

Post by TerryH »

April wrote: Wed Jan 26, 2022 12:24 am

Using xenialpup64-7.5
I get

Code: Select all

root# run-as-spot
root# whoami
root
root# su spot
root$ whoami
spot
root$ 

Now if I can just remember how to get back to being root.

exit

OR just close the terminal, you will be root when you open a new terminal.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

User avatar
mikeslr
Posts: 2944
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 905 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by mikeslr »

Hi April, TerryH's suggestion is more likely to work than "Out, Out damn spot."
Rather than take up additional Forum's space with a another reply, let me congratulate you here on your recent announcement. :thumbup:
We all need to be apprised of more good news beyond the occasional "Generalismo Franco is still dead."

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

The order suggested does not work unfortunately.

IRC: firepup | Time to hack Puppy!

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by April »

Phoenix wrote: Wed Jan 26, 2022 6:32 am

The order suggested does not work unfortunately.

Yes you said that . That means it is a fault particular to Bionicpup64 8.0 probably.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

Well it works on the same puppy that my sister uses. So I'm not certain what I'm doing wrong here.

IRC: firepup | Time to hack Puppy!

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by April »

Others with more knowledge on Bionic pup will chip in but my guess would be you have deleted a file needed or overwritten one with new stuff imported. How long since a new save file and can you boot from a CD or other without a savefile and try it then.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

I have now booted via pfix=ram and setting up via loginmanager still doesn't work. Permissions still being denied. I've tried chown spot:root and that fails too.

IRC: firepup | Time to hack Puppy!

User avatar
bigpup
Moderator
Posts: 6937
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 897 times
Been thanked: 1511 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by bigpup »

What exactly are you trying to do?

Spot is not a different login user.

spot is not a normal user, you don't login as user spot. Instead, you bootup in the normal way as the root user, but you can choose to run some Internet applications as the restricted user spot.
This means that you have unfettered access to your local system, all the benefits of root, no hassles with file/directory ownerships and permissions, no restrictions on access to all hardware.
But, you can run, for example, SeaMonkey (browser, Composer, mail&news, IRC-chat suite), as spot. The home directory for spot is /root/spot, and SeaMonkey will only be able to (normally) edit/create/write files inside /root/spot.

run-as-spot basically lets you fool a Program into thinking it is not running as root user.
Used in a execute line or terminal command.
run-as-spot (name of the program exec file that runs the program)

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

I am preferably trying to run-as-spot for a given program, such as firefox or palemoon. But run-as-spot does not work either. /bin/ash: Permission denied
As well, reading the README.txt reveals I should be able to issue su spot; cd ~

IRC: firepup | Time to hack Puppy!

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by JASpup »

I just experienced the same problem. I can run Chromium 97 as root in Bionic with its own profile. It will not run with an earlier version profile or as user spot.

Reading cli feedback it appears to be trying to put the config in the /home directory.

I experience the same in a current 32 pup.

Walsh explains: http://forum.puppylinux.com/viewtopic.p ... 688#p48688

Is this the Ubuntu-izing of Upups?

I have Chromium 90 in Xenial as spot, so the salient question:

When does the cutoff occur?

Otherwise, the only non-technical way I know to get around this problem is to run standalone in the spot directory. It is also possible of course to make .sfs of standalone, specifically for spot.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

User avatar
Wiz57
Moderator
Posts: 567
Joined: Fri Dec 13, 2019 3:54 pm
Location: Chickasha, OK USA
Has thanked: 78 times
Been thanked: 115 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Wiz57 »

In Puppy Setup, can't remember exactly the name right off the top of my head, maybe PupControl?? Think that's it...
Anywho, in there you can choose the option to "Run all internet applications as 'Spot'" or some such. Have you tried
that? If not, try it and report results. NOTE: DO NOT "SU SPOT" OR OTHER SUDO TYPE...su is probably not even a
part of Puppy...I've never used it...Puppy is NOT Ubuntu, though your Pup may be based on 'buntu.
Wiz

Signature available upon request

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by JASpup »

Wiz57 wrote: Fri Feb 04, 2022 1:04 am

Anywho, in there you can choose the option to "Run all internet applications as 'Spot'" or some such. Have you tried
that? If not, try it and report results.

It's quicksetup, 1st run in initial boots or remasters. It wouldn't kill to try, but I wouldn't expect it to work trying to use a config parent directory that does not exist.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

Still a fail unfortunately... :thumbdown:

IRC: firepup | Time to hack Puppy!

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by April »

Code: Select all

root# su spot; cd ~
root$ whoami
spot
root$ su
su: must be suid to work properly
root$ su root
su: must be suid to work properly
root$ close terminal and you are root again 

xenialpup64-7.5

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

Even with that the first command fails because /bin/sh is denied to spot. I'm honestly not certain what is wrong here as all the executable bits are set for the owner, group, and world...

IRC: firepup | Time to hack Puppy!

User avatar
rockedge
Site Admin
Posts: 6500
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2711 times
Been thanked: 2602 times
Contact:

Re: Spot is failing to work in Bionicpup64 8.0

Post by rockedge »

@Phoenix ,
here is the fix: (in a terminal)

Code: Select all

chmod 755 /
chmod 755 /bin
chmod 755 /lib
User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

This did not resolve su spot failing. As well run-as-spot fails too! This is very strange. (Please, I hope I don't have to use -R because that will write to my savefile with tons of stuff)

IRC: firepup | Time to hack Puppy!

User avatar
bigpup
Moderator
Posts: 6937
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 897 times
Been thanked: 1511 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by bigpup »

Phoenix wrote: Tue Jan 25, 2022 11:45 pm

Bionicpup64 8.0
Simply trying to use ``run-as-spot``, or ``su spot`` does not work as it exits due to permission being denied. Both for ash, and sh. Even executing browsers via their menu entry does not work, as they can write to places outside /home/spot.
The flags for puppy are ``pfix=nocopy pmedia=usbhd mitigations=off'
As well I am using 5.10-ck kernel.

I just tried it in my install of Bionicpup64 8.0, fully udated using Quickpet->Info->Bionicpup updates.

Works for me.

I see you are running in nocopy mode.
Are you using a save?
If no you need to be.

Settings to run internet programs as spot, need to be saved, so they get used as settings, to run the program.
menu->System->Login and Security Manager->Spot
A save file/folder is needed for these settings to stick.

Tried in a terminal:

Code: Select all

run-as-spot firefox

Firefox acted as it should to only allow downloads to /home/spot/
Any other selected location gave could not do errors.
Same results with some other browsers I tried.

So have you updated Bionicpup64 8.0?
you need a save to store this update stuff, so it gets used on next boot up.
Not sure if the not original Bionicpup64 kernel, you use, is also your issue.
There could be something you added or deleted, that is messing yours up.

Note:
All browsers I have installed, will take 5 to 10 seconds to start, from the time I click on menu entry or run from terminal.
most do stuff in background startup, before their window pops up.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

Yes I have. I have updated, I have a savefile, and no, run-as-spot does not work, as /bin/ash is being denied. On a further note kernels being used are not an issue, as my sister's puppy uses the same unoriginal kernel that I use.

IRC: firepup | Time to hack Puppy!

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by JASpup »

Phoenix wrote: Sun Feb 06, 2022 2:38 am

Yes I have. I have updated, I have a savefile, and no, run-as-spot does not work, as /bin/ash is being denied.

Which browser?

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

User avatar
bigpup
Moderator
Posts: 6937
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 897 times
Been thanked: 1511 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by bigpup »

Look in /bin

ash should be a symbolic link to busybox

busybox should also be in /bin

If you enter ash --help in a terminal do you get this:

root# ash --help
BusyBox v1.29.3 (2018-09-25 16:13:15 +08) multi-call binary.

Usage: ash [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS] / -s [ARGS]]

Unix shell interpreter
root#

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
bigpup
Moderator
Posts: 6937
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 897 times
Been thanked: 1511 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by bigpup »

You are booting Bionicpup as normally done, as root?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

Yes, /bin/ash is linked to busybox. And the output is identical with ash --help.
I am trying to either get firefox or palemoon to execute under the user spot.

IRC: firepup | Time to hack Puppy!

bigpuppyfan
Posts: 81
Joined: Fri Feb 12, 2021 1:20 pm
Has thanked: 14 times
Been thanked: 17 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by bigpuppyfan »

I was able to reproduce the error by intentionally putting wrong permissions on a few files in /bin
Couple of things you can try:

Code: Select all

root# chmod 755 /bin/*

Or get the original puppy_bionicpup64_8.0 iso - double click it and the puppy_bionicpup64_8.0.sfs - then copy the /bin folder in this sfs to root, to overwrite whatever is there

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by JASpup »

Your struggle has been inspiring some misadventures. I literally just crashed Bionic64 with sfs_load to where commands wouldn't execute. I had to poweroff with the device button.

I've had prior success, but I'm currently not able to make a .sfs run from the spot directory in Bionic64.

Alas, I am now in Pale Moon 28.4 builtin Bionic64 as spot.

If you can boot a default live session to run as spot, I would guess it's just a snafu you've saved in use.

Then we keep discovering or back to the drawing board.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

User avatar
bigpup
Moderator
Posts: 6937
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 897 times
Been thanked: 1511 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by bigpup »

There are posts, all over this forum, about doing an install of some program package, that was not specifically compiled for the specific Puppy version.
It changed some file permissions.
Now other programs will not work.

Usually it is program packages you get from program specific web sites.
Repositories of program packages compiled for other Linux OS's.
Programs, that for some reason, are coded to make this permission changes.

Problem is trying to figure out exactly what files did it change permissions on.

The good thing is all of this is in the save.

So, replacing the messed up save, with a good backup copy of a good working save, fixes it.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by Phoenix »

It will be aforementioned that even with a live session and ticking spot and all, it still refuses to work at all. I now have gone through the list of dependencies for /bin/bash and set 755, and su spot still complains about permissions being denied. As well /, /bin, and /lib have 755 on them. I know there's something different between my computer and my sister's, but I can't place my paw on it.

IRC: firepup | Time to hack Puppy!

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: Spot is failing to work in Bionicpup64 8.0

Post by JASpup »

If you've tried a default live session in Mainline Bionic 64 and the builtin Pale Moon runs as spot on one computer and does not on another, I would be testing other distros on the non-working device before resignation if there's not an extraordinary reason to use it for browsing.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

Post Reply

Return to “Users”