Author Topic: Problems with Samba shares with 2.0.16  (Read 2827 times)

flycast

  • Zen Apprentice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Problems with Samba shares with 2.0.16
« on: March 22, 2011, 08:28:59 pm »
I am having issues with Samba shares.

1) If I create a user and give the user administrative rights and then log in as that user from an XP machine I can browse and see shares but if I try to open the users home directory (automatically shared) then I get a message telling me I don't have permission to use this network resource.

2) I set up a share in the Zentyal directory and gave a user full administrative rights I can browse and open files read only but I cannot make changes. If I create a brand new text document in that shared folder as that user then I can open the file and make change the first time but after that If I try to open the document again I get a Access is denied message.

Looks like permission issues to me.

I did a bit of research in the ticket area and found the following links about acl's:

http://trac.zentyal.org/ticket/2656
http://trac.zentyal.org/ticket/2129

This may be where I want to look but I am not up to speed with acl's. I changed a share's default folder/file permissions using chmod -R to 755 and 777 and this seems to resolve the read only issue but I suspect that this is not the correct way to solve this with samba/zentyal.

I hesitate to ask for help here because it seems that so many posts just die a slow death with no replies from any support.

Is there anybody out there who might have some light to shine on this? I just want to be able to add a user and grant them permissions to a folder and have it work properly.

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: Problems with Samba shares with 2.0.16
« Reply #1 on: April 08, 2011, 04:48:30 am »
Is the server an slave? Can you post screenshots of your shares configuration?

batonac

  • Zen Apprentice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Problems with Samba shares with 2.0.16
« Reply #2 on: December 02, 2011, 06:46:08 pm »
2) I set up a share in the Zentyal directory and gave a user full administrative rights I can browse and open files read only but I cannot make changes. If I create a brand new text document in that shared folder as that user then I can open the file and make change the first time but after that If I try to open the document again I get a Access is denied message.

Ugh.  Exact same symptoms here, except I'm using 2.2.  Any hope with this yet?

expertgeeks

  • Forum Moderator
  • Zen Warrior
  • *****
  • Posts: 124
  • Karma: +11/-0
    • View Profile
Re: Problems with Samba shares with 2.0.16
« Reply #3 on: December 02, 2011, 09:47:56 pm »
Have you upgraded samba but not rebooted recently? I had the http://forum.zentyal.org/index.php/topic,8867.0.html same problem. Samba permissions were fixed after rebooting, re-editing & saving the troublesome share permissions. You should then find that they work again :)

batonac

  • Zen Apprentice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Problems with Samba shares with 2.0.16
« Reply #4 on: December 05, 2011, 05:05:26 pm »
Have you upgraded samba but not rebooted recently? I had the http://forum.zentyal.org/index.php/topic,8867.0.html same problem. Samba permissions were fixed after rebooting, re-editing & saving the troublesome share permissions. You should then find that they work again :)

Well, I did restart several times... but in the end it seems that my problem wasn't with permissions after all.  Instead, I seem to have been plagued with lingering settings from the uninstalled antivirus module.  Even after I reinstalled the module, it still didn't work, but when as soon as I added a share to the antivirus exceptions list (File Sharing > Exceptions), it became fully functional.