LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-04-2007, 09:55 AM   #1
finsh
Member
 
Registered: Jan 2006
Posts: 162

Rep: Reputation: 16
user permissions


Hi all


How can smaller powers user.


I mean make user only used open office and Some programs.

And also could not change the browser settings.

Thanks
 
Old 11-04-2007, 10:29 AM   #2
edclancy7715
LQ Newbie
 
Registered: Nov 2007
Location: Murder mitten
Posts: 13

Rep: Reputation: 0
You will probably need to use a combonation of the chown, chgrp, chmod commands. The way I am thinking about doing it, would be to make a group for your lowusers. Then we are going to assign the user you wish to restrict permissions of, to that group we made.

sudo addgroup lowusers
sudo usermod -a lowusers <USERNAME>

Now browse to that users home directory and go to (assuming you use mozilla) /.mozilla/firefox/
From there list the directory contents (via 'ls'). You should see a strangely named folder, in blue..from there type 'cd <the blue folder name>' Okay so we are at the browser configuration area... the file that stores the actual settings is called prefs.js
type 'sudo chgrp lowusers prefs.js'
in order to change this file so the users will be able to still use it, but not change it, we are going to give it read and execute permissions only.
to do this type the following 'sudo chmod g=rx,u=rx prefs.js'
From there on anytime you want to make it so the user can only read and run files... type 'chmod g=rx,u=rx <filename>' ..that is after you've assigned it to the lowusers group.
 
Old 11-05-2007, 04:57 AM   #3
finsh
Member
 
Registered: Jan 2006
Posts: 162

Original Poster
Rep: Reputation: 16
I do not know much about Sudo

But I will apply your lessons


Thanls mr. edclancy7715
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Giving user 'www-data' same permissions as normal user MikeOfAustin Linux - Software 5 06-08-2007 02:50 AM
user permissions snutter Linux - Newbie 3 04-10-2007 02:19 AM
User permissions dmanchepalli Red Hat 2 02-14-2005 08:23 PM
User Permissions BigDDave2001 Linux - Security 4 11-17-2003 05:43 AM
user permissions Vyeperman *BSD 6 10-06-2003 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:18 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
Open Source Consulting | Domain Registration