LinuxQuestions.org
Review your favorite Linux distribution.
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 09-02-2003, 05:54 AM   #1
dtournas
Member
 
Registered: Aug 2003
Location: Charlotte, North Carolina
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148

Rep: Reputation: 16
Question Directory rights


Hello to all!

I want to do something that sounds very easy, but I really need the touch of a professional… To know me better, I should tell you that I have a Samba Server on a PC (named: ‘fileserver’) and some workstations running WinY2K (named: ‘winuser1’, ‘winuser2’ etc…) I also know that I posted sth similar a few days ago but I still have the same problem…

I am trying to give the appropriate rights to the folders so the users, according to who they are, can rwx or r-x etc…

So let’s say that I have this folder shared named: FINANCE and to this folder, I want to give full access (read, write, execute) to a group named: FINANCE_PU (‘pu’ from power users) and some access (read and execute) to a group named: FINANCE_USR (‘usr’ from users). So far, so good: I will make the owner of the folder the FINANCE_PU group and give the access I want to the FINANCE_USR group. Yes, but how? What should the output of the ls –laF be? (drwxr-x---) or sth similar…?

Let’s assume that this is working by making the FINANCE_PU the owner of the folder and the FINANCE_USR the ‘other’ group and I want to have a group that can have access to the FINANCE folder and to all other (imagine that we have a ROOT group) Is this possible? What is this group (wheel or sth?) and who do I put users in it?

That’s all. Thank you for any help!
 
Old 09-02-2003, 08:23 AM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Hi

Well I hope I understood your quetion properly and if so then do the following.

First create group FINANCE_PU and place all users into correct groups.

The files in the folder FINANCE should be owned buy the user and group FINANCE_PU. If files have been created already like this then gr8 if not then use this cmd chgrp FINANCE_PU *, this will change group name to FINANCE_PU .

cd to FINANCE folder
type chmod -R 775 *

this will give FINANCE_PU group rwx perms and all other users only r_x perms to that folder

Hope this is what u looking for
Cheers
 
  


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
Rights to create Directory MahsanS Linux - Security 1 09-28-2005 07:44 AM
Home Directory Rights Cottsay Fedora 2 09-06-2005 11:35 PM
Home Directory Default Rights Cottsay Linux - General 2 08-29-2005 02:44 PM
Multiple Group Rights to One Directory JWatson Linux - Security 4 12-31-2004 02:13 PM
Assign rights to directory robertmarkbram Linux - Newbie 4 08-15-2003 08:58 AM

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

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