Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 02 Apr 2020, 18:40
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Permission problem downloading files in BionicPup32 (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
TheyCallMeTJ

Joined: 18 Jan 2020
Posts: 7

PostPosted: Fri 14 Feb 2020, 21:01    Post subject:  Permission problem downloading files in BionicPup32 (Solved)
Subject description: Using default browser, "Light"
 

Hi guys

When trying to download files from the internet (such as web email attachments) in the my-documents folder, I get failures due to 'lack of permission' errors. The only area that I can download files to appear to be an area referred to as "Spot" where there is a default downloads folder. Can we not download files elsewhere? Is there a way to set permissions in other folders to enable downloading files to?

Using BionicPup32, default browser.

Thanks

Last edited by TheyCallMeTJ on Sat 15 Feb 2020, 11:46; edited 1 time in total
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 2142
Location: London, England

PostPosted: Sat 15 Feb 2020, 08:05    Post subject:  

Do you mean you are using the browser named "Light" which comes with BionicPup32 ?
I ask because this browser can be run as spot or as root.
(Some other browsers can only be run as spot)

What you describe is intended behaviour and is a security feature. With the browser running as user spot, downloaded files can only be in a restricted area under the spot directory and can not "invade" your wider system and pose a malicious threat. In Puppy, many users consider this unnecessary but it depends on what you are doing and is a personal decision.

So one solution is to use Menu > System > Login and Security Manager to untick the run as spot option for "Light" and run it as root. You can then download files to any chosen location. (At some point you must have opted to run it as spot).

Alternatively you can use a utility for changing downloaded file permissions,
http://murga-linux.com/puppy/viewtopic.php?t=118078

_________________
Oscar in England

Back to top
View user's profile Send private message 
TheyCallMeTJ

Joined: 18 Jan 2020
Posts: 7

PostPosted: Sat 15 Feb 2020, 11:45    Post subject:
Subject description: <SOLVED>
 

Yes "light", sorry I didn't realise that is what its called.

That's interesting to know about running apps as Spot or Root.

Many thank you for your well explained solutions. This resolves the problem!


Will mark this as solved.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 6077
Location: King's Lynn, UK.

PostPosted: Sat 15 Feb 2020, 18:16    Post subject:  

@ TJ :-

Just to add to what Oscar told you above, some browsers (primarily Chromium-based, specifically Chrome & SlimJet) have to be run as 'spot'. No options. This is because they're written pretty much for the mainstream distros, which are all set up as 'multi-user'. 'Root' is reserved for system stuff only; all 'users' have their own, named directory within /home, with permissions restricted to that directory.

Google, under the guise of the Chromium Project (aka Big Brother's browser R & D department!), have in recent years taken it upon themselves to pretty much dictate how the modern web is accessed.....including coding their browser in such a way that you can henceforth only run it as 'a normal user'.

Running-as-root is NOT allowed.....under pain of death!!!! Twisted Evil Laughing

Puppy doesn't have the 'home' directory, since for Puppy, '/root' is 'home'....and spot is Puppy's equivalent to the individual 'user' directory in the mainstream distros, along with suitably restricted permissions. Thus, why 'spot' exists; remember, for Puppy, this is not 'normal' behaviour, since Puppy was always intended to be a single-user, 'hobbyist' system.

But without 'spot', it's rapidly becoming so that more & more current software is no longer accessible, since devs the world over are recognising the 'user-only' model to be the safest.....and are writing/coding everything accordingly.


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 307

PostPosted: Sat 15 Feb 2020, 20:20    Post subject:  

Quote:
Is there a way to set permissions in other folders...

I can mount an ntfs partition so that spot can use it:
Code:
ntfs-3g /dev/sda4 /mnt/home -o umask=0022,no_def_opts,noatime,rw,silent,allow_other,gid=100

This makes the default owner root and the default group disk.
umask=0022 makes it owner writable and group writable but not world writable.
spot is a member of the disk group (type: groups spot)

Code:
# whoami
root
# su spot
$ whoami
spot
$ cd
$ ls -lh /mnt/home/adrv_bionicpup64_8.0.sfs
-rwxrwxr-x 1 root disk 84M Feb 11 18:26 /mnt/home/adrv_bionicpup64_8.0.sfs
$ echo 'I am spot' > /mnt/home/spot.txt
$ cat /mnt/home/spot.txt
I am spot
$ rm /mnt/home/spot.txt
$


This mounts so spot can read the file system but not write to it:
Code:
ntfs-3g /dev/sda4 /mnt/home -o umask=0002,no_def_opts,noatime,rw,silent,allow_other,gid=100

umask=0002 makes it owner writable but not group or world writable.

I run in ram with no savefile (I have an adrv.sfs instead) so I can mount and unmount the hard drive myself, whenever I want to.

If you have a savefile on an ntfs partition, you would need to edit the init script in the initrd file to change the ntfs-3g lines.
Just add the allow_other option to the ntfs-3g commands.
I prefer not to have umask make it world writable.

I don't know whether spot can write to /mnt/home by default if it is an ext file system.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0699s ][ Queries: 12 (0.0172s) ][ GZIP on ]