Opened 6 years ago

Last modified 4 years ago

#11396 new defect

samba36-server and windows 7 client permissions issue

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:


I'm running samba36-server in the security = share mode with guest_ok enabled in each shared directory with write access. Option guest account is set to nobody, and shared directories are owned by nobody:nogroup with 700 permission mask.

With such a configuration I can't even enter any shared directory with windows 7 explorer as samba client. To enter any shared directory I have to change its permissions to 755 as least, although it's completely unclean why I should do so, as the directory already owned by user nobody with full access rights for its owner.

Moreover, if I change directory permissions to 755, I can enter it from windows 7 and successfully upload and download files, but then I can't rename or delete them! Uploaded files are created with default mask 700 and belong to nobody:nowhere as expected - and I can read from and write to them. But cannot rename or delete. Even if I manually change individual file permission to 777 from ssh console, I still can't delete or rename it from windows' explorer - it says I don't have enough permissions to perform this action.

After some investigation I found that in order to be able to rename and delete files I must change permissions of the directory, where those files are located, to 777. So in order to make working guest shares we need to make all shared directories masked with 777 and also change create_dir option from 700 to 777 in samba config, otherwise we won't be able to enter our own newly created folders.

Obviously this is not intented behavior, and with the samba3 package (which support was dropped recently) everything worked ok with default 700 permissions on directories.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.