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 Thu 27 Nov 2014, 06:48
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 Posts_count  
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: 13644
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_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: 13644
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_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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
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.0033s) ][ GZIP on ]