LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2003, 06:27 AM   #1
Gattancha
LQ Newbie
 
Registered: Jul 2003
Location: UK
Distribution: Centos 6.3
Posts: 11

Rep: Reputation: 0
Question Samba Permission problems...


I've got an odd problem with Samba..

Im trying to set permission levels on one of my shares to RWX for User & Group, and RX for Others, which i understand to be 0775

But whenever i create a file over the share (on winxp -sp1), the permissions are being set as RWX for users, and R for Group/Others...

Here's my code...

Quote:
[Apache]
path = /srv/www/htdocs
comment = Apache Server
writeable = yes
force create mask = 775
force directory mask = 775
force user = root
force group = root
public = yes
guest ok = yes
wide links = no
Anyone got any ideas?
 
Old 07-07-2003, 12:43 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try:
force create mask = 0775
force directory mask = 0775
 
Old 07-07-2003, 01:35 PM   #3
Gattancha
LQ Newbie
 
Registered: Jul 2003
Location: UK
Distribution: Centos 6.3
Posts: 11

Original Poster
Rep: Reputation: 0
Tried that too, unfortunatly it doent work
 
Old 07-07-2003, 01:46 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What about:
create mask = 0775
directory mask = 0775

Have you restarted samba since the config change?
 
Old 07-07-2003, 03:27 PM   #5
Gattancha
LQ Newbie
 
Registered: Jul 2003
Location: UK
Distribution: Centos 6.3
Posts: 11

Original Poster
Rep: Reputation: 0
Yep

Tried stop/start & restart too

The rest of the config works fine, just these damn file permissions...

The Samba config works fine, but when ever i create/copy a file into the shared folder from WinXP, I have to goto my linux box and reset the permissions so that folk can see it when the browse my site
 
Old 07-07-2003, 03:29 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try using the sticky bit on the htdocs directory.
man chmod
 
Old 07-07-2003, 11:49 PM   #7
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
No, that's not the problem. The problem ist that the samba protocol cannot map the WIn-based permissions accurately to Unix ones. When you samba-mount the share, you can add any missing info ( e.g. uid, gid, etc) at this point, and "fake" the permissions with the fmask and dmask options. man smbmount will tell you more. It'll take some try and error.

See another post
[URL=http://www.linuxquestions.org/questions/showthread.php?s=&threadid=70838[/URL]

with some similar stuff.

Hope it helps,

mlp
 
  


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
Samba permission problem (probably) pingu Linux - Software 3 01-26-2010 01:23 AM
Samba permission hampeh Linux - Software 5 06-15-2005 09:41 AM
Samba permission problems anti_trend Linux - Software 11 04-22-2004 08:50 AM
samba permission problems Jestrik Linux - Software 1 03-27-2004 11:34 AM
SAMBA File Permission vcheah Linux - Software 1 11-27-2002 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:33 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
Open Source Consulting | Domain Registration