LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-05-2008, 05:43 AM   #1
NjoY
LQ Newbie
 
Registered: Oct 2004
Distribution: BackTrack
Posts: 10

Rep: Reputation: 0
Question Firefox ONLY user


Hiya all.

I want to create a user account with only firefox access.
I think i do this by pointing the users bash to firefox location (is that right??)

I also want to disable downloads of any kind. Not sure how to do this.
Anyone see any problems i'm going to have doing this??

Thanx in advance.
Garth.
 
Old 10-05-2008, 06:42 AM   #2
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Rep: Reputation: 41
I would do this...

1st install the restricted bash shell.

2nd make a user and create a home directory. set there bash to rbash or bash-r

3rd make a link to FF in the home directory
(ls -s /somewhere/firefox firefox)
ls -s /location/program somename

4th deny them write access to everything in thier home folder (to prevent downloading)
chmod 755 (assuming root is the owner)
if not then chmod 555


give that a try and let me know if it works
 
Old 10-05-2008, 07:40 AM   #3
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
You might also want to add firefox to .bash_profile so it automatically runs when the user logs in. You might also want to look at starting Firefox in full-screen mode, so the Close button is not visible.

Last edited by Total-MAdMaN; 10-05-2008 at 07:48 AM.
 
Old 10-06-2008, 01:55 PM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Well the other suggestions may work I guess. Well except for the part about denying the user write access to their home directory - how's the Firefox profile going to get created huh? Also if a user owns the folder they can do whatever they like with the files contained in it, regardless of who owns those files.

This is the way I do it. (Note _do_ it, not would do it, I have created such a user.)

Log in as the user. Install the r-kiosk plugin. You may also want to consider tab killer and noscript.

In the user's home directory create a file called .xinitrc and in the file put one line

firefox

create a symbolic link to .xinitrc called .xsession. This fixes an issue where the user may be able to get a full desktop environment by specifying it a particular session at the login screen.

Log out as that user.

Set the user's shell to /bin/false to prevent logins on a text console.

That will give you essentially what you want to do though you may need to tinker a bit. If you want to be more paranoid you can get in to ripping stuff out of Firefox that you don't want people to be able to access, like remove the file picker and print dialogues and stuff. In my set up the user has no password and KDM is rigged to allow password-less login. The idea is that people can login with a specific username without a password and they get a Firefox only session that opens at the page where they can activate their own user account. Firefox is locked to to the extent that they cannot access sites outside of our domain. I use a separate copy of Firefox from the one people run when they usually log in due to the extent of the customisation. Also the account is rigged such that all the settings are deleted when the user logs out and the permissions are set up such that the user does not own the .xinitrc and .xsession files (or their own home directory - there's some trickery here with groups) so even if someone does manage to get a shell they cannot delete them. Also I have an init script which deletes the home directory at boot and recreates it just for good measure. I have some notes on all this if you're interested but they're a bit rough.
 
Old 10-08-2008, 02:49 PM   #5
NjoY
LQ Newbie
 
Registered: Oct 2004
Distribution: BackTrack
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry for the delay, having a busy week!!

Thanx for your ideas.

@arizonagroovejet you've done something close to what i want to achieve. I'm not sure how i create a symbolic link to .xinitrc called .xsession.
Also i'd like to see the notes you have.
Many thanx.
Garth
 
Old 10-08-2008, 02:53 PM   #6
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Quote:
Originally Posted by NjoY View Post
I'm not sure how i create a symbolic link to .xinitrc called .xsession.
ln -s .xinitrc .xsession
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't run Firefox from my single user(only from a super user) nightrider Linux - Newbie 14 10-24-2006 08:35 PM
Firefox as a user mngmd Linux - Software 4 09-18-2005 07:28 AM
New User with Java and Firefox dreyes81 Linux - Newbie 5 07-14-2005 05:04 PM
Using Firefox by user other than root losmescaleros Linux - Software 2 08-20-2004 04:04 PM
firefox will not open with new user mikeybsae Linux - Software 4 03-21-2004 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration