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?
script to open mozilla as user spot
create a script
/usr/local/bin/spot-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
/usr/local/bin/spot-mozilla
Code: Select all
#!/bin/bash
su spot -c mozilla
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
-
- Posts: 41
- Joined: Thu 20 Jul 2006, 09:21
thanks for your help
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?
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?
-
- Posts: 41
- Joined: Thu 20 Jul 2006, 09:21
ok
ok...
if in the internet is present a script to become root itself...i have only a pc,dont need a trustix security
good night and good weekend
if in the internet is present a script to become root itself...i have only a pc,dont need a trustix security
good night and good weekend
-
- Posts: 41
- Joined: Thu 20 Jul 2006, 09:21
why only if i login ?
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.
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.