Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux 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:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old August 2nd, 2002, 09:38 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

I've posted this in both the linux and the *bsd forums, cause samba should be the same on either one.

Anyway, I 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?

Reply With Quote
  #2  
Old August 2nd, 2002, 11:53 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
DONīT CROSS-POST! Itīs a very bad habit and there is no excuses for it!


maybe the "create-directory-mask" parameter? hard to tell without the complete smb.conf (dont post it, but upload it via "attach file" vv down there vv plz)
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old August 2nd, 2002, 01:06 PM
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
1) Since there's no Samba-forum, and most Linux users who use Samba doesn't read the *BSD-forum, and vice versa, one would reach more users this way.

2) There's no such parameter as "create-directory-mask".

3) I've already said that I currently use "directory mask = 0755", but have tried 0777 and evn 7777, but it didn't work.

4) Why do you need to see all of my smb.conf-file? I've already shown you the parameters associated with directory permissions.

The question is, why did you even bothered to answer my post?

Reply With Quote
  #4  
Old August 2nd, 2002, 01:20 PM
NoXcuz's Avatar
NoXcuz NoXcuz is offline
Wiking
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Sep 2000
Location: Sweden
Posts: 3,608 NoXcuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 49 m 27 sec
Reputation Power: 11
Your intention of reaching more users doesn't justify cross posting. It is a very bad habit and it rightly pisses people off seing the same topic in multiple forums. Read some guidelines for more information...

Anyway, there's a variable called create mask that you could play with...

//NoXcuz
__________________
UN*X is sexy!
who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep

Reply With Quote
  #5  
Old August 2nd, 2002, 03:11 PM
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
Then what justifies cross posting? Nothing?

Anyway, I've tried create maske, and also force create mode. But it didn't help. I'm beginning to believe that it's not Samba that's giving me headaches.

Reply With Quote
  #6  
Old August 3rd, 2002, 06:52 AM
Oraly Oraly is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Stavanger
Posts: 83 Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 20 h 13 m 24 sec
Reputation Power: 8
The way I see it you need to check that the filesystem on your linux isn't mounted as read only, and then you can set the option "security users=someuser" and se if someuser can create dirs or copy files to the share your having problems with.
If this user can't take full controll over your share, then you've done something very odd.

Good luck!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux 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 6 hosted by Hostway