LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2006, 08:20 AM   #1
Hans Vanpee
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
Samba permissions problem


I am trying to setup a Samba server in a Win2K network.
The server is running and I can see the shares from my Win XP workstation. I can navigate through the directories on the server but when I open a file it always uses Read-only mode.

I used chmod to change the permissions for all files and directories to 'rwxrwxrwx' but I still can't write to the files.

When I check the permissions using the XP station I see write access enabled for all files but not for the directories.

When using ls -l on the server the directory permissions are 'drwxrwxrwx'! How is this possible?
 
Old 01-26-2006, 09:27 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Samba permissions is a kind of "composite" thing. First, you must have the right permission from the Samba's point of view. After that the permissions on filesystem take place.
You are trying to debug just looking at filesystem permissions, and you missed the Samba's permissions.

A samba share on my server looks like:
[sharedFolder]
comment = A shared Folder
path = /export/samba/shared
force group = users
read only = No
create mask = 0660
directory mask = 0770
inherit acls = Yes

In that way, all users that belongs to group users have rw permission on that folder. Of course, the file system permission for this "root" folder (/export/samba/shared) must be 0770 and owned by root:users.

I hope this works for you,
 
Old 01-27-2006, 09:43 AM   #3
Hans Vanpee
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by marozsas
Samba permissions is a kind of "composite" thing. First, you must have the right permission from the Samba's point of view. After that the permissions on filesystem take place.
You are trying to debug just looking at filesystem permissions, and you missed the Samba's permissions.

A samba share on my server looks like:
[sharedFolder]
comment = A shared Folder
path = /export/samba/shared
force group = users
read only = No
create mask = 0660
directory mask = 0770
inherit acls = Yes

In that way, all users that belongs to group users have rw permission on that folder. Of course, the file system permission for this "root" folder (/export/samba/shared) must be 0770 and owned by root:users.

I hope this works for you,
Thanks for your reply. We didn't have the root:group ownership correct. I also adapted the smb.conf file according to your suggestions. Everything works fine now. Thanks again!

Hans
 
  


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 Printer Permissions Problem cmfarley19 Linux - Networking 2 07-14-2011 03:59 AM
Samba permissions problem mago Slackware 7 12-24-2005 12:18 PM
Samba problem - no permissions Seventh Linux - Software 5 11-08-2005 05:05 AM
Samba Permissions Problem Stormblade Linux - Software 1 11-12-2004 07:09 AM
Samba Permissions Problem gigglesnorter Linux - Software 0 05-24-2004 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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