Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-02-2003, 04:54 AM   #1
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, 07:23 AM   #2
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30

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


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

All times are GMT -5. The time now is 02:50 PM.

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