BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old August 2nd, 2002, 09:37 AM
nvrmnd nvrmnd is offline
_
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 7 nvrmnd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 20 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old August 9th, 2002, 03:24 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
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!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Can't create dirs on samba-shares


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway