[Samba] Cant create in a subdirectory...

Bill Chmura Bill at Explosivo.com
Tue Jun 15 06:31:32 GMT 2004


I've battled this one for a few days now and its costing my sanity so I am 
hoping that someone here has an answer

I am running the samba server 3.0.4 on a linux 2.4.25 server.  

I can connect to my share point and authenticate fine

I can create files or directories in the root of the sharepoint fine

I can go into subdirectories and look at all the files...

But I cannot create in any directories below the sharepoint!  If I do a touch 
filename I get a Permission Denied.  But I can do it in the root of my 
sharepoint.  I have several like this.

Here is my fstab entry on my client box:
------------------------------------
//modok/wbchmura        /home/wbchmura/mnt/wbchmura     smbfs  
rw,users,owner,noauto,username=wbchmura,password=xxxx,uid=500,gid=500       0 
0
-----------------------------------
And a chunk of my smb.conf file

[wbchmura]
comment = Bill's directory
path = /home/wbchmura
valid users = wbchmura
public = no
writable = yes
read only = no
printable = no

The uid and gif match the wbchmura uid and gid on the file server.  In the 
sharepoint all of the files and directories are set accordingly.

drwxr-xr-x    2 wbchmura wbchmura     4096 Jun 15 01:17 testdir
drwxrwxr-x    2 wbchmura wbchmura     4096 Jun 15 00:10 tmp

If I change the rights on a directory to 777 it works fine.  

Do symlinks affect anyting?  The path to my share is a symlink of
/home -> /raid1/home

I tried coding in /raid1/home and it seemed to not change anything

Here are some log files.
Let me know if I forgot anything...

Thanks

########Logon##########

[2004/06/15 01:24:17, 3] smbd/oplock.c:init_oplocks(1226)
  open_oplock_ipc: opening loopback UDP socket.
[2004/06/15 01:24:17, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(303)
  Linux kernel oplocks enabled
[2004/06/15 01:24:17, 3] smbd/oplock.c:init_oplocks(1257)
  open_oplock ipc: pid = 22982, global_oplock_port = 32907
[2004/06/15 01:24:17, 3] lib/access.c:check_access(313)
  check_access: no hostnames in host allow/deny list.
[2004/06/15 01:24:17, 2] lib/access.c:check_access(324)
  Allowed connection from  (192.168.0.99)
[2004/06/15 01:24:17, 3] smbd/process.c:process_smb(890)
  Transaction 0 of length 183
[2004/06/15 01:24:17, 3] smbd/process.c:switch_message(685)
  switch message SMBnegprot (pid 22982)
[2004/06/15 01:24:17, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/06/15 01:24:17, 3] smbd/negprot.c:reply_negprot(455)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[2004/06/15 01:24:17, 3] smbd/negprot.c:reply_negprot(455)
  Requested protocol [MICROSOFT NETWORKS 1.03]
[2004/06/15 01:24:17, 3] smbd/negprot.c:reply_negprot(455)
  Requested protocol [MICROSOFT NETWORKS 3.0]
[2004/06/15 01:24:17, 3] smbd/negprot.c:reply_negprot(455)
  Requested protocol [LANMAN1.0]
[2004/06/15 01:24:17, 3] smbd/negprot.c:reply_negprot(455)
  Requested protocol [LM1.2X002]
[2004/06/15 01:24:17, 3] smbd/negprot.c:reply_negprot(455)
  Requested protocol [DOS LANMAN2.1]
[2004/06/15 01:24:17, 3] smbd/negprot.c:reply_negprot(455)
  Requested protocol [Samba]

######## cd into sharepoint and testdir and touch "newtest"#########
[2004/06/15 01:26:29, 3] smbd/process.c:process_smb(890)
  Transaction 36 of length 80
[2004/06/15 01:26:29, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 22982)
[2004/06/15 01:26:29, 3] smbd/trans2.c:call_trans2qfilepathinfo(2331)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 512
[2004/06/15 01:26:29, 3] smbd/trans2.c:call_trans2qfilepathinfo(2362)
  call_trans2qfilepathinfo . (fnum = -1) level=512 call=5 total_data=0
[2004/06/15 01:26:31, 3] smbd/process.c:process_smb(890)
  Transaction 37 of length 80
[2004/06/15 01:26:31, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 22982)
[2004/06/15 01:26:31, 3] smbd/trans2.c:call_trans2qfilepathinfo(2331)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 512
[2004/06/15 01:26:31, 3] smbd/trans2.c:call_trans2qfilepathinfo(2362)
  call_trans2qfilepathinfo . (fnum = -1) level=512 call=5 total_data=0
[2004/06/15 01:26:31, 3] smbd/process.c:process_smb(890)
  Transaction 38 of length 87
[2004/06/15 01:26:31, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 22982)
[2004/06/15 01:26:31, 3] smbd/trans2.c:call_trans2qfilepathinfo(2331)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 512
[2004/06/15 01:26:31, 3] smbd/trans2.c:call_trans2qfilepathinfo(2362)
  call_trans2qfilepathinfo testdir (fnum = -1) level=512 call=5 total_data=0
[2004/06/15 01:26:37, 3] smbd/process.c:process_smb(890)
  Transaction 39 of length 95
[2004/06/15 01:26:37, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 22982)
[2004/06/15 01:26:37, 3] smbd/trans2.c:call_trans2qfilepathinfo(2331)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 512
[2004/06/15 01:26:37, 3] smbd/trans2.c:call_trans2qfilepathinfo(2349)
  call_trans2qfilepathinfo: SMB_VFS_LSTAT of testdir/newtest failed (No such 
file or directory)
[2004/06/15 01:26:37, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2004/06/15 01:26:37, 3] smbd/error.c:error_packet(134)
  error packet at smbd/trans2.c(2219) cmd=50 (SMBtrans2) eclass=1 ecode=2


-- 

Bill Chmura

w. http://www.fistfullofcode.com
w. http://www.explosivo.com

------------------------------------------------------
Without good motivation, science and technology, instead of helping, bring 
more fear and threaten global destruction. Compassionate thought is very 
important for humankind.
-His Holiness the Dalai Lama

Wisdom does not mean knowledge but experiential understanding. Wisdom helps 
you to change radically your habits and perceptions, as you discover the 
constantly changing, interconnected nature of the whole of existence.
-Martine Batchelor, "Meditation For Life"
-------------------------------------------------------


More information about the samba mailing list