script to open mozilla as user spot

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
tux_italian
Posts: 41
Joined: Thu 20 Jul 2006, 09:21

script to open mozilla as user spot

#1 Post by tux_italian »

i open the terminal,write:

su spot
mozilla

the browser mozilla is starting as user spot.
how to create a script to open directly mozilla as user spot and make icon on the desktop?
mozilla is more secure if opened as spot? the pc is more protected during the navigation?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

create a script
/usr/local/bin/spot-mozilla

Code: Select all

#!/bin/bash
su spot -c mozilla
make it executable:
chmod 755 /usr/local/bin/spot-mozilla

Drag it to your desktop from Rox-filer, and assign a nice icon with a rightclick.

Info on su:
http://noforum.de/man2html.php?page=su

The PC is protected better, as any malicious script could change only the files from spot, not the ones from root.
But only, if you login as root with a password, else a script could run "su" itself to become root!

Mark

tux_italian
Posts: 41
Joined: Thu 20 Jul 2006, 09:21

thanks for your help

#3 Post by tux_italian »

hi mark,thanks for your help.
i click on the desktop on the mozilla icon and the browser is open automatically as spot.
yes,i login to root with password (i have modify the file /etc/inittab).
is dangerous?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

no, not dangerous, it is good to surf as spot.
Mark

tux_italian
Posts: 41
Joined: Thu 20 Jul 2006, 09:21

ok

#5 Post by tux_italian »

ok...
if in the internet is present a script to become root itself...i have only a pc,dont need a trustix security 8)
good night and good weekend

tux_italian
Posts: 41
Joined: Thu 20 Jul 2006, 09:21

why only if i login ?

#6 Post by tux_italian »

why only if i login with password else a script could run "su" itself to become root! ?
if i have enabled autologin,is not possible to become root?
with mozilla,what's the other programs is just make to run as spot to increase system security?
at the moment i run as spot mozilla,mozilla mail and geany editor.

Post Reply