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 Mon 01 Sep 2014, 18:23
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
script to open mozilla as user spot
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
tux_italian

Joined: 20 Jul 2006
Posts: 41

PostPosted: Fri 04 Aug 2006, 16:00    Post subject:  script to open mozilla as user spot  

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?
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 04 Aug 2006, 17:37    Post subject:  

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

Code:
#!/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
Back to top
View user's profile Send private message Visit poster's website 
tux_italian

Joined: 20 Jul 2006
Posts: 41

PostPosted: Fri 04 Aug 2006, 17:52    Post subject: 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?
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 04 Aug 2006, 18:03    Post subject:  

no, not dangerous, it is good to surf as spot.
Mark
Back to top
View user's profile Send private message Visit poster's website 
tux_italian

Joined: 20 Jul 2006
Posts: 41

PostPosted: Fri 04 Aug 2006, 18:10    Post subject: ok  

ok...
if in the internet is present a script to become root itself...i have only a pc,dont need a trustix security Cool
good night and good weekend
Back to top
View user's profile Send private message 
tux_italian

Joined: 20 Jul 2006
Posts: 41

PostPosted: Sat 05 Aug 2006, 04:16    Post subject: 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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0444s ][ Queries: 11 (0.0035s) ][ GZIP on ]