Page 1 of 1

script to open mozilla as user spot

Posted: Fri 04 Aug 2006, 20:00
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?

Posted: Fri 04 Aug 2006, 21:37
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

thanks for your help

Posted: Fri 04 Aug 2006, 21:52
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?

Posted: Fri 04 Aug 2006, 22:03
by MU
no, not dangerous, it is good to surf as spot.
Mark

ok

Posted: Fri 04 Aug 2006, 22:10
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

why only if i login ?

Posted: Sat 05 Aug 2006, 08:16
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.