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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-07-2011, 02:16 AM
|
#1
|
|
Member
Registered: Sep 2006
Posts: 140
Rep:
|
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.
|
|
|
|
12-07-2011, 09:47 AM
|
#2
|
|
Member
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 402
Rep:
|
I don't see read only on my, try removing tat line and restart then test again.
Ted
|
|
|
|
12-07-2011, 11:41 AM
|
#3
|
|
LQ Newbie
Registered: Jul 2011
Location: USA
Distribution: RHEL 5.7
Posts: 27
Rep:
|
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?
|
|
|
|
12-07-2011, 08:25 PM
|
#4
|
|
Member
Registered: Sep 2006
Posts: 140
Original Poster
Rep:
|
Quote:
Originally Posted by Passmossis
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...
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|