Wrong samba directory permissions

Asked by E-Jey

I have a file server running ubuntu 6.06-1 with samba. This is one of the shares:

[looklisten]
   comment = Let's Dance Samba
  create mode = 0777
  directory mode = 0777
  path = /looklisten
  read only = no
  force user = root
  force group = root
  guest ok= yes

This share is used by several windows xp machines and I use it with ubuntu. I mount this samba share on startup (needs the smbfs package) with this line in the fstab file

//10.0.0.2/looklisten /home/erik/Looklisten cifs defaults,guest 0 0

It always worked with no problems. Recently I installed gutsy and now I can't write to new directory's on the samba share. If I create a new directory with Gutsy it get these permissions: drwxr-xr-x. I used the the live cd to test and it's only a gutsy problem. On Winxp and Feisty new directory's get drwxrwxrwx.

How can I solve this problem?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
E-Jey
Solved:
Last query:
Last reply:
Revision history for this message
E-Jey (erik-kaasschaaf) said :
#1

I have found a solution: when mounting use the option "noperm". You can create files and folders without problems but the rights will still be drwxr-xr-x. Another solution is adding "unix extensions = no" to the samba config file. Both workarounds I think, but it works :)