LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-11-2008, 08:37 AM   #1
shishirkotkar
Member
 
Registered: Sep 2007
Posts: 83

Rep: Reputation: 15
profiles for users


hi friends...

suppose i have 2 users on my linux machine

supppose i want one of them to always use firefox only and no other application...

is it possible to that??
 
Old 05-11-2008, 09:06 AM   #2
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: MX
Posts: 5,132

Rep: Reputation: Disabled
no they can always install software in their home folder and use that software.

if you mean that you have system wide browsers....you can change the permissions of the relevant one to disable their rwx permission to that browser
 
Old 05-11-2008, 09:09 AM   #3
shishirkotkar
Member
 
Registered: Sep 2007
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
no they can always install software in their home folder and use that software.

if you mean that you have system wide browsers....you can change the permissions of the relevant one to disable their rwx permission to that browser
thing is that..
i have an ltsp network set up...

and i have 10 users...but out of those 10, 5users should only be able to use vi editor and nothin else...

how do i do that??
 
Old 05-11-2008, 09:11 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

If you change the shell entry in the /etc/passwd file to point to firefox (full path and executable), firefox should be started when that user logs in (instead of giving him/her a shell) and after closing Firefox the user should be logged out. So change /bin/bash to /usr/bin/firefox.

I say 'should' cause I haven't tried this with a gui based program. It does work with non-gui based scripts/executables.

Hope this helps.
 
Old 05-11-2008, 09:41 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by shishirkotkar View Post
5users should only be able to use vi editor and nothin else...
Beware of the fact they can access the shell from within vi. If they type the vi commands
Code:
:set shell=/bin/bash
:shell
they will start a shell session and will have full access to the shell commands.
 
Old 05-11-2008, 09:57 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

If access to a shell is not wanted you can use rvim instead of vim.
It is a restricted version of vim that does not allow starting a shell, using shell commands and suspending.

Hope this helps.
 
Old 05-11-2008, 10:37 AM   #7
shishirkotkar
Member
 
Registered: Sep 2007
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

If access to a shell is not wanted you can use rvim instead of vim.
It is a restricted version of vim that does not allow starting a shell, using shell commands and suspending.

Hope this helps.
hi friends
i tried changin /etc/passwd file for tat user as /usr/bin/firefox

user fails to login....m usin fedora core 6(k12ltsp)

plz suggest me some other way to do that
 
Old 05-12-2008, 10:48 PM   #8
imadoofus
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
You can try editing the users .xsession file to only run firefox.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Users, Profiles and Connections in Elgg LXer Syndicated Linux News 0 04-10-2008 09:30 AM
roaming profiles pcuzican Ubuntu 0 11-15-2007 03:55 PM
kde profiles ferreter Linux - Software 3 03-14-2006 01:35 PM
Manage profiles Haiyadragon Linux - Software 0 09-27-2004 04:07 PM
Profiles jeucken Linux - Software 2 11-06-2002 09:04 AM


All times are GMT -5. The time now is 08:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration