|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Can't create dirs on samba-shares
It worked on another freebsd-box i have. I just copied the smb.conf and set up samba the same way as I did before. However, now, on this new machine, I can't create dirs. Although I can read/write/create/rename/delete any file, AND read/rename/delete any dir.
Under [global] I have; security = user directory mask = 0755 # even tried 0777 (and 7777) (and some other parameters that probably has nothing to do with creating dirs) [somedir] path = /somedir public = false writeable = true printable = false /somedir has been chmoded to 777 and is owned by the same user connecting to the share. With log level = 9, the log-file says; unix_convert called on file "\folder" unix_clean_name [/folder] Checking folder for 8.3 unix_convert begin: name = folder, dirpath = , start = folder New file folder is_in_path: folder unix_clean_name [folder] stat of folder failed (No such file or directory) I don't get the "stat of folder failed (No such file or directory)" line. Any suggestions? I've posted this in both the linux and the *bsd forums. |
|
#2
|
||||
|
||||
|
For what it's worth here's my smb.conf file:
Code:
# Global parameters [global] workgroup = LAN netbios name = FBSD44_01 server string = FreeBSD 4.4 Samba Server encrypt passwords = Yes #log level = 5 log file = /var/log/log.%m preferred master = True valid users = munk admin users = munk hosts allow = 21x.1x2.x51.1x4 # to protect the innocent [homes] comment = Home Directories read only = No [all] comment = All path = / guest account = read only = No Only the user 'munk' can access the shares and only from the address specified. This works fine in a 2 box network, one box win2k. To login to the samba share on the fbsd machine I hit the 'map network drive' button, enter '\\fbsd44_01\all' and then enter the authentication details (ie munk/munkpasswd) when prompted. This exports the 'all' share to a drive mapping in explorer and I can do pretty much anything from there with the (lack of) restrictions imposed on the user 'munk'. One minor issue on win2k with service packs >2(?) is that you need to tell the Unix smb server that you're sending encrypted passwords from the windows end, and then use 'smbpasswd' to update the smb passwd db with the user/pass pairs for each user you want to allow access to shares on the Unix side. At the end of the day, keep it simple - I don't know that the log level goes up to 9 by the way, I seem to remember reading it only goes up to 5, but I might be wrong (anything over 5 I imagine would be insane anyway! ![]()
__________________
FreeBSD Admin Tips Tricks and Scripts |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Can't create dirs on samba-shares |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|