LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-08-2004, 10:23 PM   #1
dskny
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE8.0+, RedHat
Posts: 25

Rep: Reputation: 15
Question set user permissions


Need a little help setting user permissions. Basically I'm gonna have multiple users using my Fedora box. How do I give users permissions to do certain things and not other things. For example, I want some users to be able to install a program and not be able to shutdown or restart the box. Also is there a way to keep them from browsing directories they are not supposed to? I'm assuming this is with the owner and group permissions, but not too sure how to work it out. Is there documentation on this somewhere on the net? Or does someone have some advice.

thanks
 
Old 04-09-2004, 03:12 AM   #2
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
you can use chown and chrgrp to change ownership of files/directorys and use chmod to change permissions for example to stop users viewing a file/directory change group and owner to root then chmod 600 file
To allow certain users to view a file then change the group of the file to the same group that the users are in and chmod 660 file
man chmod, chgrp, chown for more detail
 
Old 04-09-2004, 06:10 AM   #3
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
In contrast to windows security you can only set permissions for a file/directory to one group and one individual in linux.
 
Old 04-09-2004, 06:30 AM   #4
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
But you can add users to multiple groups
 
Old 04-09-2004, 10:31 AM   #5
dskny
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE8.0+, RedHat
Posts: 25

Original Poster
Rep: Reputation: 15
so how would I restrict a user from say shutting down a machine or compiling?
 
Old 04-10-2004, 11:00 PM   #6
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
Compiling you could probably do by changing permissions on compiler executables, dont really know of any better way to do it. edit your /etc/inittab to stop uses from pressing ctrl alt del to restart.
 
Old 04-13-2004, 02:29 PM   #7
Gnuru
Member
 
Registered: Jan 2004
Posts: 53

Rep: Reputation: 15
For what you describe the best thing to use is sudo.

Sudo is great because it allows you to give superuser privileges to some users for some commands and not for others.

So you could allow some users to do rpm -i .... but not halt or shutdown.
 
  


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
How to set the permissions for a user Group? Akhran Linux - Newbie 6 11-14-2005 07:55 AM
How to set user permissions for USB ports at boot? drazenko Linux - Hardware 1 07-27-2004 09:13 AM
how do i set vsftpd user permissions USMC__KopfJager Linux - Security 5 12-29-2003 02:43 PM
How to set user permissions? chem1 Linux - Security 3 06-19-2003 01:12 PM
How do i set permissions for a user. edude Linux - Software 3 10-15-2002 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:34 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