LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-07-2011, 02:16 AM   #1
micro_xii
Member
 
Registered: Sep 2006
Posts: 140

Rep: Reputation: 15
Question 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.
 
Old 12-07-2011, 09:47 AM   #2
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 421
Blog Entries: 28

Rep: Reputation: 2
I don't see read only on my, try removing tat line and restart then test again.
Ted
 
Old 12-07-2011, 11:41 AM   #3
Passmossis
LQ Newbie
 
Registered: Jul 2011
Location: USA
Distribution: RHEL 5.7
Posts: 27

Rep: Reputation: 2
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?
 
Old 12-07-2011, 08:25 PM   #4
micro_xii
Member
 
Registered: Sep 2006
Posts: 140

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by Passmossis View Post
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...
 
  


Reply

Tags
samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create share folder password sanastar Linux - General 2 07-01-2010 02:45 PM
How to create a "fixed-space"-a folder that is EXT2 inside and whatever size-50MB? linus72 Linux - Newbie 3 04-08-2009 08:47 AM
[samba] one share inside of another (force group) Kacper86 Linux - Server 2 05-16-2008 01:53 PM
how to create a share folder kumary Linux - Networking 2 01-29-2006 04:27 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM


All times are GMT -5. The time now is 10:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration