LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-28-2005, 08:31 AM   #1
steve007
Member
 
Registered: Jun 2005
Distribution: Fedora Core 3
Posts: 96

Rep: Reputation: 15
File and folder permissions


I want to be able to allow all users (in the users group) to see the contents of the main directory but not delete anything or add anything. I need all users in the ICT group to view and edit all the contents in the Main dir – ICT folder, all users in the marketing group to see and edit the contents of the marketing folder. All users in the ICT group to view the contents of the management folder but not edit them but all the users in the management group to be able to view and edit the contents. All users in the administration group to edit and view contents in the administration folder, but not able to delete the ICT folder, ICT users can view data in administration folder but can edit the contents in the Main dir- administration – ICT folder.

I think I have covered every possible scenario I’m after for this. I apologise if it sounds a bit confusing the way I’ve typed it, if you need further information please ask. I am fairly comfortable with typing command lines in terminal window or using the GUI for anyone who replies in either of these methods.

Also while I’m here – I have my fedora core system as a PDC and I have joined a few clients to the domain, if I log in as anyone (even root) on a client machine, I cannot seem to edit the permissions on the folders shared on linux from the client machine (win xp and 2000) why is this? Even though I could be logged in as root on the client machine, I still cant edit the permissions? I was trying to edit the permissions in a way that I am used to – since I am new to doing it all through linux.

Thank you very much for any help you can provide me.

Steve
 
Old 06-28-2005, 07:32 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Are you talking about files and folders shared by samba? or just the Unix file system permissions?
 
Old 06-30-2005, 03:19 AM   #3
steve007
Member
 
Registered: Jun 2005
Distribution: Fedora Core 3
Posts: 96

Original Poster
Rep: Reputation: 15
I am sharing files with Samba, But I thought you also have to make the permissions on that actual folders in the Unix system? I know how to add users for accessing folders in samba, but you can't add groups as far as I can tell...
If both ways could be explained it would be extreemly helpful so I can do both of them.

Thank you.
 
Old 06-30-2005, 03:48 AM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
For the unix permissions create a group for each share. Then change the group ownership on the shared directory. Eg say we have a share called 'administration' then:
Code:
groupadd clerical
chown -R clerical:clerical /srv/clerical
chmod -R g+rwx /srv/clerical
chmod g+t /srv/clerical #sets group ID bit on clerical directory which has the effect of making all files created in that directory as having the same group permissions as the directory
Now in smb.conf have something like this:

Code:
[clerical]
        valid users = @clerical
        read only = no
        path = "/srv/clerical"
You may need to setup the clerical group as a samba group too.
 
  


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
File/folder permissions Yig Linux - Newbie 3 11-28-2005 03:44 PM
File and Folder permissions seelk SUSE / openSUSE 9 01-28-2005 06:50 PM
can we overwrite the permissions of folder/file zameer_india Linux - Networking 0 09-30-2004 01:11 AM
File/Folder Permissions with FTP scottpioso Linux - Security 8 03-12-2004 02:19 PM
File / folder Permissions bkbroil Linux - Newbie 3 10-15-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:02 AM.

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