DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th February 2015
epitaxial epitaxial is offline
New User
 
Join Date: Feb 2015
Posts: 9
Default Samba permissions

Hello all, I am having an issue with Samba (3.6.15) and OpenBSD 5.6. I can see the files from my Windows 7 box but they all appear as 0 bytes and cannot be opened. Here is my smb.conf

Code:
#============= Global Settings =======================#

[global]
   host msdfs = no
   mangled names = no
   bind interfaces only = yes
   deadtime = 15
   default case = lower
   disable netbios = yes
   dns proxy = no
   domain master = no
   encrypt passwords = true
   guest ok = yes
   guest only = no
   interfaces = em0
   invalid users = nobody root
   load printers = no
   max connections = 10
   netbios name = openbsd
   preferred master = yes
   preserve case = no
   printable = no
   security = user
   server string = Samba Share
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
   strict sync = no
   sync always = no
   syslog = 1
   syslog only = yes
   workgroup = WORKGROUP

#============ Share Definitions =======================#
[Video]
   path = /home/video
   read-only = no
   public = yes
The local OpenBSD account has no problems reading the files so that leads me to believe it is a samba issue. Any ideas?
Reply With Quote
  #2   (View Single Post)  
Old 1st March 2015
epitaxial epitaxial is offline
New User
 
Join Date: Feb 2015
Posts: 9
Default

The option "mangled names = no" causes this problem. Commenting that out gives me random gibberish in 8.3 filename format but they CAN be opened. Changing to yes fixes the filenames but they become inaccessible.

OK it has something to do with this

Code:
vfs objects = catia
catia:mappings = 0x22:0xa8,0x2a:0xa4,0x2f:0xf8,0x3a:0xf7,0x3c:0xab,0x3e:0xbb,0x3f:0xbf,0x5c:0xff,0x7c:0xa6,0x20:0xb1
My filenames have spaces and colons in them which apparently Samba can't handle anymore. I never had to deal with this in the past. Why is it an issue now?

Last edited by ocicat; 1st March 2015 at 05:06 AM. Reason: Removed profanity
Reply With Quote
  #3   (View Single Post)  
Old 1st March 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 267
Default

Quote:
Originally Posted by epitaxial View Post
The option "mangled names = no" causes this problem. Commenting that out gives me random gibberish in 8.3 filename format but they CAN be opened. Changing to yes fixes the filenames but they become inaccessible.

My filenames have spaces and colons in them which apparently Samba can't handle anymore. I never had to deal with this in the past. Why is it an issue now?
See Name Mangling and Case (about half way down the page).

Replacing the colon in the filename with an underscore might be done with something like:

mangled map = (: _)
Reply With Quote
  #4   (View Single Post)  
Old 1st March 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 267
Default

Quote:
Originally Posted by hanzer View Post
mangled map = (: _)
Wait, this approach is old and doesn't seem to exist in Samba version 3.6.15. Ignore me.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
uscanner0 permissions shep OpenBSD Installation and Upgrading 4 31st August 2010 05:27 AM
Permissions error J05HYYY NetBSD Package System (pkgsrc) 1 7th October 2009 11:05 PM
Permissions for zzz / acpiconf Mantazz FreeBSD General 0 15th September 2009 10:43 PM
permissions and FTP/HTTP Yuka FreeBSD General 0 20th October 2008 10:32 PM


All times are GMT. The time now is 04:11 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick