LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cant create a folder inside samba share (join in AD2003) (http://www.linuxquestions.org/questions/linux-newbie-8/cant-create-a-folder-inside-samba-share-join-in-ad2003-917521/)

micro_xii 12-07-2011 02:16 AM

Cant create a folder inside samba share (join in AD2003)
 
greetings:
centos 6,samba 3.5

i have the ff:
1. chmod ugo+rw /home/testhome
2. successfully join my samba to AD2003
in my smb.conf
[test]
path=/home/testhome
read only = no
writeable = yes
create mask = 777
directory mask = 777
valid users = @"MYDOMAIN+Domain Users"

I CAN browse to this directory thru my win7 but I cant PASTE/CREATE a file. i alreay gave all the permissions.

can anyone help me on this.

ted_chou12 12-07-2011 09:47 AM

I don't see read only on my, try removing tat line and restart then test again.
Ted

Passmossis 12-07-2011 11:41 AM

Try hard setting the user to a specific user. Set your log level to 4 or so also.

When you go to create a folder, note the time and inspect the samba log /var/log/samba/ for the specific event.

What does it say?

micro_xii 12-07-2011 08:25 PM

Quote:

Originally Posted by Passmossis (Post 4544390)
Try hard setting the user to a specific user. Set your log level to 4 or so also.

When you go to create a folder, note the time and inspect the samba log /var/log/samba/ for the specific event.

What does it say?

Code:

[2011/12/08 08:36:04.475664,  3] smbd/error.c:80(error_packet_set)
  error packet at smbd/nttrans.c(73) cmd=160 (SMBnttrans) NT_STATUS_CANCELLED
[2011/12/08 08:36:04.477172,  3] smbd/nttrans.c:1263(reply_ntcancel)
  reply_ntcancel: cancel called on mid = 512.
[2011/12/08 08:36:04.478293,  3] smbd/process.c:1485(process_smb)
  Transaction 32 of length 45 (0 toread)
[2011/12/08 08:36:04.478391,  3] smbd/process.c:1294(switch_message)
  switch message SMBclose (pid 2020) conn 0x1876b98
[2011/12/08 08:36:04.478458,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (16777216, 16777221) - sec_ctx_stack_ndx = 0
[2011/12/08 08:36:04.478656,  3] smbd/reply.c:4624(reply_close)
  close directory fnum=4492
[2011/12/08 08:36:04.483784,  3] smbd/process.c:1485(process_smb)
  Transaction 33 of length 74 (0 toread)
[2011/12/08 08:36:04.483899,  3] smbd/process.c:1294(switch_message)
  switch message SMBtrans2 (pid 2020) conn 0x1876b98
[2011/12/08 08:36:04.483935,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2011/12/08 08:36:04.483972,  3] smbd/trans2.c:3463(call_trans2qfsinfo)
  call_trans2qfsinfo: level = 261
[2011/12/08 08:36:04.484172,  3] smbd/trans2.c:2906(smbd_do_qfsinfo)
  smbd_do_qfsinfo: level = 261
[2011/12/08 08:36:04.485046,  4] smbd/trans2.c:3479(call_trans2qfsinfo)
  SMBtrans2 info_level = 261
[2011/12/08 08:36:04.485881,  3] smbd/process.c:1485(process_smb)
  Transaction 34 of length 102 (0 toread)
[2011/12/08 08:36:04.486152,  3] smbd/process.c:1294(switch_message)
  switch message SMBtrans2 (pid 2020) conn 0x1876b98
[2011/12/08 08:36:04.486264,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2011/12/08 08:36:04.486314,  3] smbd/trans2.c:5099(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2011/12/08 08:36:04.486445,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.486715,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.486791,  3] smbd/trans2.c:5208(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: SMB_VFS_STAT of New folder failed (No such file or directory)
[2011/12/08 08:36:04.486904,  3] smbd/error.c:80(error_packet_set)
  error packet at smbd/trans2.c(5210) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_NAME_NOT_FOUND
[2011/12/08 08:36:04.488620,  3] smbd/process.c:1485(process_smb)
  Transaction 35 of length 112 (0 toread)
[2011/12/08 08:36:04.488733,  3] smbd/process.c:1294(switch_message)
  switch message SMBntcreateX (pid 2020) conn 0x1876b98
[2011/12/08 08:36:04.488771,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2011/12/08 08:36:04.488887,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.489015,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.489093,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.489151,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.489188,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.489233,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.489267,  3] smbd/dosmode.c:166(unix_mode)
  unix_mode(New folder) returning 0777
[2011/12/08 08:36:04.490651,  2] smbd/open.c:2502(open_directory)
  open_directory: unable to create New folder. Error was NT_STATUS_ACCESS_DENIED
[2011/12/08 08:36:04.490810,  3] smbd/error.c:80(error_packet_set)
  error packet at smbd/error.c(160) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2011/12/08 08:36:04.492142,  3] smbd/process.c:1485(process_smb)
  Transaction 36 of length 112 (0 toread)
[2011/12/08 08:36:04.492310,  3] smbd/process.c:1294(switch_message)
  switch message SMBntcreateX (pid 2020) conn 0x1876b98
[2011/12/08 08:36:04.492371,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2011/12/08 08:36:04.492582,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.492676,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.492713,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.492761,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.492796,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.492843,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.492876,  3] smbd/dosmode.c:166(unix_mode)
  unix_mode(New folder) returning 0777
[2011/12/08 08:36:04.493718,  2] smbd/open.c:2502(open_directory)
  open_directory: unable to create New folder. Error was NT_STATUS_ACCESS_DENIED
[2011/12/08 08:36:04.493884,  3] smbd/error.c:80(error_packet_set)
  error packet at smbd/error.c(160) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2011/12/08 08:36:04.495718,  3] smbd/process.c:1485(process_smb)
  Transaction 37 of length 112 (0 toread)
[2011/12/08 08:36:04.495827,  3] smbd/process.c:1294(switch_message)
  switch message SMBntcreateX (pid 2020) conn 0x1876b98
[2011/12/08 08:36:04.495864,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2011/12/08 08:36:04.495971,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.496322,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.496392,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.496442,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.496478,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.496524,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.496558,  3] smbd/dosmode.c:166(unix_mode)
  unix_mode(New folder) returning 0777
[2011/12/08 08:36:04.497745,  2] smbd/open.c:2502(open_directory)
  open_directory: unable to create New folder. Error was NT_STATUS_ACCESS_DENIED
[2011/12/08 08:36:04.497864,  3] smbd/error.c:80(error_packet_set)
  error packet at smbd/error.c(160) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2011/12/08 08:36:04.501943,  3] smbd/process.c:1485(process_smb)
  Transaction 38 of length 112 (0 toread)
[2011/12/08 08:36:04.502324,  3] smbd/process.c:1294(switch_message)
  switch message SMBntcreateX (pid 2020) conn 0x1876b98
[2011/12/08 08:36:04.502361,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2011/12/08 08:36:04.502469,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.502533,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.502566,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.502612,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.502646,  3] smbd/vfs.c:851(check_reduced_name)
  check_reduced_name [New folder] [/home/testhome]
[2011/12/08 08:36:04.502693,  3] smbd/vfs.c:1008(check_reduced_name)
  check_reduced_name: New folder reduced to /home/testhome/New folder
[2011/12/08 08:36:04.502726,  3] smbd/dosmode.c:166(unix_mode)
  unix_mode(New folder) returning 0777
[2011/12/08 08:36:04.503586,  2] smbd/open.c:2502(open_directory)
  open_directory: unable to create New folder. Error was NT_STATUS_ACCESS_DENIED
[2011/12/08 08:36:04.503702,  3] smbd/error.c:80(error_packet_set)
  error packet at smbd/error.c(160) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2011/12/08 08:36:04.505679,  3] smbd/process.c:1485(process_smb)
  FILE_NAME|DIR_NAME|ATTRIBUTES|LAST_WRITE, recursive = 0
[2011/12/08 08:38:52.226691,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0

These are what i've done:
1. from win7, i can access the samba, but when i create folder permission denied though I set all permission of directory of all ugo+rw

2. from centos, i create folder and files.
3. back in win7,i refresh but cant see the created folder in centos.
4. i check the logs.

what wrong with this...


All times are GMT -5. The time now is 01:07 PM.