LinuxQuestions.org
Review your favorite Linux distribution.
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 12-24-2004, 06:28 AM   #1
cbekannan
LQ Newbie
 
Registered: Dec 2004
Location: Coimbatore
Posts: 23

Rep: Reputation: 15
Rights problem in Linux Samba network


I have set up an environment for file sharing with Linux as server and Samba as a PDC for winXP Client Workstations on it. I have shared a folder called CT for edt group to access and store and write or modify files in that. Earlier the same folder was in Windows 2K3 server and I copied all files to linux samba share (CT) and change the group to edt using the command chgrp, also changed the permission to write and read for both owner and group. All are going fine except the problem of permission, whenever the group member add files or folders under the folder CT, the folder can only be writable for owner and groups and others are only having read access. Everytime after adding a file or folder by the edt group member, I have to change the permission to 770 manually. In a live environment I'm not able to proceed with kind of follow ups, I want to set 770 as permission for CT folder permanently.
 
Old 12-25-2004, 12:09 PM   #2
brettcave
LQ Newbie
 
Registered: Aug 2004
Location: Johannesburg, South Africa
Distribution: Mandrake, RH, Fedora
Posts: 22

Rep: Reputation: 15
Try setting the following 2 parameters under your share definition:

[CT]
create mode = 0660
directory mode = 0770

That will make all folders created by users have rwxrwx--- and files will have rw-rw----

Owner and group will be user and user's pirmary group. If you are running version 3 of samba, you can also use the "net groupmap" command to map standard windows groups to your Linux groups, which can cause errors when changing permissions on files on the shares from a Windows box.
 
  


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
Samba domain: admin rights problem on XP hitotito Linux - Networking 2 04-26-2005 04:27 PM
Rights problem in Linux Samba network cbekannan Linux - Security 1 12-31-2004 11:51 PM
Samba Rights Problem paul.nel Linux - Networking 1 12-18-2004 04:40 AM
Samba Rights problem SSENT12 Linux - Networking 3 04-23-2004 12:20 AM
Linux PDC - How Do I give the Samba User Local Admin Rights on XP machine? Vince0000 Linux - Networking 4 12-18-2003 02:54 AM

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

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