permissions on samba share
Todd Brunhoff
todd.brunhoff at gmail.com
Thu Jul 19 14:58:25 MDT 2012
I'm hoping one of you has an answer.
After reinstalling fedora 16 from scratch, I cannot get samba to work
correctly. I can log in successfully with smbclient and I can map a
network drive, but then I cannot get access to my login directory. I
believe I have narrowed this down to some permission oddity. In
particular, if I create a share for /tmp...
[global]
security = user
domain master = no
local master = no
dns proxy = no
guest ok = yes
guest account = smbguest
[tmp]
path = /tmp
read only = no
; browseable = yes
valid users = build, tbrunhoff, toddb
I can add the share and get in with both windows and smbclient and list
the directory, which of course is mode 777. However, if I create a share
for my login directory...
[toddb]
path = /home/toddb
read only = no
; browseable = yes
valid users = tbrunhoff, toddb
I can map the network drive in windows and login with 'smbclient
//denzy/toddb' but neither access method will allow me to see the files.
I have even tried changing the mode of the directory from 700 to 770 and
then to 777 and still cannot get access. After turning on
debug uid = yes
log level = 3
and loggin in with 'smbclient //denzy/toddb' and then typing 'ls' the
log shows the following:
[2012/07/19 13:03:16.160823, 3, effective(0, 0), real(0, 0)]
smbd/process.c:1662(process_smb)
Transaction 7 of length 92 (0 toread)
[2012/07/19 13:03:16.160947, 3, effective(0, 0), real(0, 0)]
smbd/process.c:1467(switch_message)
switch message SMBtrans2 (pid 6964) conn 0x7f9598144780
[2012/07/19 13:03:16.161035, 3, effective(531, 501), real(0, 0)]
smbd/trans2.c:2292(call_trans2findfirst)
call_trans2findfirst: dirtype = 16, maxentries = 1366,
close_after_first=0, close_if_end = 1 requires_resume_key = 1 level =
0x104, max_data_bytes = 16644
[2012/07/19 13:03:16.161123, 3, effective(531, 501), real(0, 0)]
smbd/vfs.c:905(check_reduced_name)
check_reduced_name [*] [/home/toddb]
[2012/07/19 13:03:16.161182, 3, effective(531, 501), real(0, 0)]
smbd/vfs.c:1039(check_reduced_name)
check_reduced_name: * reduced to /home/toddb/*
[2012/07/19 13:03:16.161235, 3, effective(531, 501), real(0, 0)]
smbd/vfs.c:905(check_reduced_name)
check_reduced_name [.] [/home/toddb]
[2012/07/19 13:03:16.161283, 3, effective(531, 501), real(0, 0)]
smbd/vfs.c:1039(check_reduced_name)
check_reduced_name: . reduced to /home/toddb
[2012/07/19 13:03:16.161358, 3, effective(531, 501), real(0, 0)]
smbd/error.c:81(error_packet_set)
error packet at smbd/trans2.c(2440) cmd=50 (SMBtrans2)
NT_STATUS_ACCESS_DENIED
And indeed, my uid/gid is 531/501. This makes no sense.
Somebody say something helpful.... please.
Todd
More information about the samba-technical
mailing list