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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-07-2003, 06:27 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: UK
Distribution: Centos 6.3
Posts: 11
Rep:
|
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?
|
|
|
07-07-2003, 12:43 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Try:
force create mask = 0775
force directory mask = 0775
|
|
|
07-07-2003, 01:35 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: UK
Distribution: Centos 6.3
Posts: 11
Original Poster
Rep:
|
Tried that too, unfortunatly it doent work 
|
|
|
07-07-2003, 01:46 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
What about:
create mask = 0775
directory mask = 0775
Have you restarted samba since the config change?
|
|
|
07-07-2003, 03:27 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Location: UK
Distribution: Centos 6.3
Posts: 11
Original Poster
Rep:
|
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 
|
|
|
07-07-2003, 03:29 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Try using the sticky bit on the htdocs directory.
man chmod
|
|
|
07-07-2003, 11:49 PM
|
#7
|
Member
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 10:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|