Browse as user "Spot"

Browsers, email, chat, etc.
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

Browse as user "Spot"

#1 Post by 01micko »

Ok, forget the poll, that's ancient, but I have a new package for browsing as Spot
(that is, not the "root" user). It has the option of installing an icon to the desktop.

It's still ONLY compatible with mozilla browsers, that is, Firefox, Seamonkey (and if you still use them Netscape and Mozilla,
but if you are worried about security then these old beings would be long dead).

________________________________________________________________________
Attachments
brssafe.png
(95.39 KiB) Downloaded 2341 times
browsesafe-0.5.pet
(7.65 KiB) Downloaded 900 times
Last edited by 01micko on Fri 22 Apr 2011, 12:54, edited 3 times in total.
Puppy Linux Blog - contact me for access

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#2 Post by DaveS »

I never use Spot, but would vote 'yes' to keeping it simply because I hate to lose any facility.
Spup Frugal HD and USB
Root forever!

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#3 Post by 01micko »

Ahhggghhh! stoopid polls! (yeah I'll blame them, or bugman or cthisbear, not my fault)

This the second one I've managed to foobar, actually it's my second one :oops:

I'm not editing again! Any new stuff goes here!
Puppy Linux Blog - contact me for access

User avatar
James C
Posts: 6618
Joined: Thu 26 Mar 2009, 05:12
Location: Kentucky

#4 Post by James C »

DaveS wrote:I never use Spot, but would vote 'yes' to keeping it simply because I hate to lose any facility.
I agree. :)

I prefer being root and I'm comfortable being root............................but for those who aren't it probably would be useful.

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

Re: Browsing as user "Spot"

#5 Post by Iguleder »

01micko wrote: 1) I'll splash a message that Spot can only download to /root/spot and that Spot can't really download much at all.
An average user doesn't know what spot is. Ahem, user friendliness? Better do it silently and make sure the user doesn't even notice he's running the browser as spot. Make it transparent to the user.

Also, let's say you want to start the browser through the console. You type "firefox" or whatever and your browser opens, but without your settings and under root's GTK theme. That's bad. If you intend to create a wrapper for each browser that does "su -c $browser" that's a different story, but face it, some people download their browser from its website, they won't have your spot thing.

Another thing to consider is the mess in /root/spot. /root/spot/Downloads and /root/my-documents ... I think it's quite confusing to have two locations for personal files.

Moreover, let's say you want to download stuff to somewhere in the file system ... or let's say you want to download a PET. Normally, you'd open it with PPM and install it right away instead of downloading it ... but with spot you just can't. Now you need to modify PPM to alert you're not root. But hey, the user doesn't know what spot is ... so that's an epic fail. But that's just my opinion, do whatever you want.
01micko wrote: 2) I think the gtk theme not being present is kinda cool It certainly lets you know that you are browsing differently. Perhaps a special gtk colour them could be made just for spot. That would be even cooler 8) .
It's just one application that runs with a different theme. That's weird. Also, you'll need to write some wrapper for gtk-chtheme that generates color schemes for each theme you pick. You'll have to take all colors from a theme in hex, then perform some math on each hex and save them. BUT, some themes don't have the colors, because they use the engine's default, so you can't do that with some themes.

I think that if you can't do that with all themes perfectly, you shouldn't bother. I want my system easy to use and working. 100% working. If it doesn't work under all cases, better leave it. Again, that's my opinion.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#6 Post by 01micko »

Hi Iguleder

I like your comments. Not that I agree with all of them but I like them :wink:

Here's the deal. If spot didn't exist I would not care. I'm not the one who wants to browse as spot, it's others.

As for user friendliness, which I agree totally with you on that one, if this thread takes off then that will evolve. If it dies then so be it!

But the fact that some users want to browse as user "spot" isn't going away. I answered a post about this today. A fellow reckons he couldn't browse as "spot" in Puppy 5. He didn't read the manual too well and posted a bug report!

Of course browsing as "spot" does work in Puppy 5/501. It's actually really useless to me and I might drop it completely. Anyone can post whatever solution to whatever problem (re topic) they want right here.

The discussion has started now and we'll let it roll along.

Cheers
Puppy Linux Blog - contact me for access

ajlec2000
Posts: 51
Joined: Sat 27 Jan 2007, 20:25

#7 Post by ajlec2000 »

I don't use spot but it might come in handy someday. So I have to go with DaveS on this one.

User avatar
Varmint
Posts: 73
Joined: Fri 27 Apr 2007, 02:40
Location: Ohio, USA
Contact:

browsing as "spot"

#8 Post by Varmint »

I actually had a copy of Multi-User Puppy here on my machine once for just such purposes. I can't recall who created that version, but I recall he did it mostly to show others how it could be done for those that don't want to run as root. While running as root is condemned by The Ten Commandments For Linux Users, it is still a whole lot safer than using Win, where everyone is root also.

At least now there's another choice for folks that don't want to run as root. By the way....the multi-user version should be in the archives under 4.x series, and I found it to be somewhat touchy....or is that buggy? It may need some tweaking, so if anyone tries that, be sure to read the docs. It may save you some grief.

73
In all of human history, not one single society has ever been taxed into prosperity.
~Varmint

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#9 Post by dejan555 »

If browser can run as spot, so can gtk theme changer

Code: Select all

su spot -c gtk-chtheme

will setup spot's gtk theme.
;)
As for downloads problem maybe a symlink in /root to spot's Downloads dir?
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#10 Post by Iguleder »

That solves the problem with Firefox ... well, sort of. But what if it's another program that uses .config or something? What if a user wants to create backups of all configuration files?

The average user is used to a single-user system as in Windows. A "user" is a person who uses the computer for the average user. He or she has no idea what a system user is or what "spot" is.

Now go and tell people there are different users in Puppy, but they're not users, they're users :wink:

You can't tell people they have to choose 2 GTK themes.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#11 Post by dejan555 »

Different browsers don't use different gtk configs, it's always the same one ~/.gtkrc :P
plus copy of gtkrc can be in spot's dir by default or it could be symlink to root's gtkrc

Code: Select all

ln -s /root/.gtkrc /root/spot/.gtkrc

When root changes theme from main menu in gtk theme changer, spots gtk will read same file.

For browser config files every browser creates own .dot config automatically, users that don't know about spot user will likely not be at that level of manually editing config it's done thru browser preferences settings.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#12 Post by dejan555 »

BTW Mick, why it works only for mozilla based browsers, can't you do su spot -c defaultbrowser ?
Not sure why it wouldn't for others, any of them have permission to make own config dir in spot's home dir, if permissions are bad then

Code: Select all

chown -R spot /root/spot
I saw many applications complaining for running as root, but not for running as restricted user :P
Anyway, I think browsing as spot IS more secure, does user know or not know how is different story.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#13 Post by 01micko »

New version uploaded, takes care of gtk theme and also adds a desktop icon (optional :wink: )

Only supports mozilla browsers


See main post
Puppy Linux Blog - contact me for access

Jasper

#14 Post by Jasper »

Hi,

I have installed the pet and opted for the desktop icon.

Firefox 3.6.16 is set as my Lupu 5.25 default browser.

If I click on my original browse icon Firefox loads with my installed add-ons and bookmarks, but

if I click on my new browsesafe icon I see a pristine Firefox without add-ons or bookmarks.

Would someone please be so kind as to advise how I can load the add-ons and bookmarks using browsesafe?

My regards

Addendum:

I apologize as I forgot to say my .mozilla folder is in /mnt/home and my .mozilla folder in root is an absolute link,
Last edited by Jasper on Fri 22 Apr 2011, 16:02, edited 1 time in total.

User avatar
Luluc
Posts: 200
Joined: Wed 16 Mar 2011, 07:10

#15 Post by Luluc »

Jasper wrote:Hi,

I have installed the pet and opted for the desktop icon.

Firefox 3.6.16 is set as my Lupu 5.25 default browser.

If I click on my original browse icon Firefox loads with my installed add-ons and bookmarks, but

if I click on my new browsesafe icon I see a pristine Firefox without add-ons or bookmarks.

Would someone please be so kind as to advise how I can load the add-ons and bookmarks using browsesafe?

My regards
I am not sure since I can't run anything as spot so I can't test it, but I suppose you can fix it like this:

Code: Select all

# cp -ax /root/.Mozilla /home/spot/
# chown -R spot /home/spot/.Mozilla
Run the browser again and see if you got all your preferences back. If that doesn't work, try again like this:

Code: Select all

# cp -ax /root/.Mozilla /root/spot/
# chown -R spot /root/spot/.Mozilla
Or perhaps you could symlink one to another, so both are always "in sync."

Good luck.

Jasper

#16 Post by Jasper »

Hi Luluc,

Thank you for your input. However, I apologize as my .mozilla folder is in /mnt/home and my .mozilla folder in root is an absolute link,

I have played with my absolute links without any success and I will amend your code for the different location and try it later today unless, meantime, anyone else has a definite solution.

My regards

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#17 Post by nooby »

Yes I need such too. I have the .mozilla on mnt/home and an absolute link to it. Does one need a relative link then?

How does one change the password for spot and what does it have now?

Thanks to L18L
Last edited by nooby on Fri 22 Apr 2011, 18:12, edited 1 time in total.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#18 Post by L18L »

nooby wrote:How does one change the password for spot and what does it have now?

Code: Select all

# passwd spot
Changing password for spot
New password: 
Retype password: 
Password for spot changed by root
#

Code: Select all

# cat /etc/passwd | grep spot
Cheers
spot since 10 minutes :D

Edited: but more important is to change root's password :!:
by simply typing in a console

Code: Select all

passwd

User avatar
Bernie_by_the_Sea
Posts: 328
Joined: Wed 09 Feb 2011, 18:14

#19 Post by Bernie_by_the_Sea »

Dillo works under spot in Wary 500.

Code: Select all

# su spot
# whoami
spot
# dillo
Dillo is relatively secure as root but Spot digs the hole deeper to bury his paranoid bones.
[color=green]Frugal[/color]: Knoppix 6.4.4 DVD
[color=blue]USB[/color]: DSL 4.4.10
[color=red]Full[/color]: WinXP Pro
Puppy (Feb. 4 - May 12, 2011) led me back to Linux.

User avatar
Luluc
Posts: 200
Joined: Wed 16 Mar 2011, 07:10

#20 Post by Luluc »

Dillo is secure to the extreme. No Flash. No Javascript. It can't be hacked.

But it's too much of a sacrifice IMO. It's ugly, renders badly, has no features... :?

Post Reply