[Samba] 2k3 DC shares mounting without permissions

David Leuser, II d_leuser at mail.plymouth.edu
Fri Sep 17 21:16:25 GMT 2004


I have samba 3.0.7 from the official RPMs working almost-perfect in our 
win2k3 domain with fedora core 2 ... except:  smb mount works from the 
box in question as excpected for all but our two win2k3 domain 
controllers, one of which is our file server.  shares mount from these 
but the permissions are as follows:

drwxr-xr-x  2 root root 4096 Aug 26 23:46 floppy
?---------  ? ?    ?       ?            ? smb

... Effectively rendering the mount useless, as not even root is allowed 
read access.  Smbclient to the same share works fine.  There are no 
erros in the logs that i can see.  Other non-DC 2k3 shares mount ok.

PLEASE HELP! I need this to work, and it was working last year with 
samba 3.0.1.


- - - -
Output from a mount command below with debug set to 10

[root at polonium mnt]# mount -t smbfs -o username=profdude 
//hobbiton/shared /mnt/smb
INFO: Current debug levels:
  all: True/10
  tdb: False/0
  printdrivers: False/0
  lanman: False/0
  smb: False/0
  rpc_parse: False/0
  rpc_srv: False/0
  rpc_cli: False/0
  passdb: False/0
  sam: False/0
  auth: False/0
  winbind: False/0
  vfs: False/0
  idmap: False/0
  quota: False/0
  acls: False/0
doing parameter syslog = 1
doing parameter log file = /var/log/samba/%m.log
doing parameter max log size = 50
doing parameter printcap name = cups
doing parameter load printers = yes
doing parameter ldap ssl = no
doing parameter idmap uid = 10000-20000
doing parameter idmap gid = 10000-20000
doing parameter template primary group = "Domain Users"
doing parameter template shell = /bin/bash
doing parameter winbind separator = +
doing parameter printing = cups
doing parameter winbind use default domain = yes
doing parameter printer admin = @"Domain Admins", at root
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_DOMAIN_MEMBER
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
opts: rw
opts: username=profdude
mount.smbfs started (version 3.0.7)
added interface ip=172.21.2.3 bcast=172.21.255.255 nmask=255.255.0.0
internal_resolve_name: looking up hobbiton#20
Opening cache file at /var/lib/samba/gencache.tdb
Returning valid cache entry: key = NBT/HOBBITON#20, value = 
172.21.2.230:0, timeout = Fri Sep 17 17:08:35 2004

name hobbiton#20 found.
Connecting to 172.21.2.230 at port 445
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 87380
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
24820: session request ok
write_socket(4,183)
write_socket(4,183) wrote 183
got smb length of 117
size=117
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=24820
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    8 (0x8)
smb_vwv[ 1]=12807 (0x3207)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   65 (0x41)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=    0 (0x0)
smb_vwv[ 8]=    0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=  499 (0x1F3)
smb_vwv[11]=26624 (0x6800)
smb_vwv[12]=51266 (0xC842)
smb_vwv[13]=64061 (0xFA3D)
smb_vwv[14]=50332 (0xC49C)
smb_vwv[15]=61441 (0xF001)
smb_vwv[16]= 2048 (0x800)
smb_bcc=48
[000] E1 0A 58 3E 79 6A 1C 24  57 00 49 00 4C 00 44 00  ..X>yj.$ W.I.L.D.
[010] 45 00 52 00 4C 00 41 00  4E 00 44 00 00 00 48 00  E.R.L.A. N.D...H.
[020] 4F 00 42 00 42 00 49 00  54 00 4F 00 4E 00 00 00  O.B.B.I. T.O.N...
size=117
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=24820
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    8 (0x8)
smb_vwv[ 1]=12807 (0x3207)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   65 (0x41)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=    0 (0x0)
smb_vwv[ 8]=    0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=  499 (0x1F3)
smb_vwv[11]=26624 (0x6800)
smb_vwv[12]=51266 (0xC842)
smb_vwv[13]=64061 (0xFA3D)
smb_vwv[14]=50332 (0xC49C)
smb_vwv[15]=61441 (0xF001)
smb_vwv[16]= 2048 (0x800)
smb_bcc=48
[000] E1 0A 58 3E 79 6A 1C 24  57 00 49 00 4C 00 44 00  ..X>yj.$ W.I.L.D.
[010] 45 00 52 00 4C 00 41 00  4E 00 44 00 00 00 48 00  E.R.L.A. N.D...H.
[020] 4F 00 42 00 42 00 49 00  54 00 4F 00 4E 00 00 00  O.B.B.I. T.O.N...
Serverzone is 14400
Password:
SMB signing enabled!
cli_simple_set_signing: user_session_key
[000] 1F C6 32 8B 0A F1 88 B6  93 E2 27 26 44 B3 E7 61  ..2..... ..'&D..a
cli_simple_set_signing: response_data
[000] 5C 31 A2 1A E5 2D D4 9B  CA 21 CF 62 EC A5 D4 A7  \1...-.. .!.b....
[010] 6D 54 5A BC DC 0A 5D AB                           mTZ...].
simple_packet_signature: sequence number 0
client_sign_outgoing_message: sent SMB signature of
[000] 79 EB 83 07 D1 EC 8C ED                           y.......
store_sequence_for_reply: stored seq = 1 mid = 2
write_socket(4,144)
write_socket(4,144) wrote 144
got smb length of 101
size=101
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=5
smb_tid=0
smb_pid=24820
smb_uid=16384
smb_mid=2
smt_wct=3
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  101 (0x65)
smb_vwv[ 2]=    0 (0x0)
smb_bcc=60
[000] 57 69 6E 64 6F 77 73 20  53 65 72 76 65 72 20 32  Windows  Server 2
[010] 30 30 33 20 33 37 39 30  00 57 69 6E 64 6F 77 73  003 3790 .Windows
[020] 20 53 65 72 76 65 72 20  32 30 30 33 20 35 2E 32   Server  2003 5.2
[030] 00 57 49 4C 44 45 52 4C  41 4E 44 00              .WILDERL AND.
get_sequence_for_reply: found seq = 1 mid = 2
simple_packet_signature: sequence number 1
client_check_incoming_message: seq 1: got good SMB signature of
[000] 14 05 40 57 5A A7 93 51                           .. at WZ..Q
24820: session setup ok
simple_packet_signature: sequence number 2
client_sign_outgoing_message: sent SMB signature of
[000] 20 0C DF C7 76 AB 6D FD                            ...v.m.
store_sequence_for_reply: stored seq = 3 mid = 3
write_socket(4,72)
write_socket(4,72) wrote 72
got smb length of 49
size=49
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=5
smb_tid=10241
smb_pid=24820
smb_uid=16384
smb_mid=3
smt_wct=3
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=   49 (0x31)
smb_vwv[ 2]=    1 (0x1)
smb_bcc=8
[000] 41 3A 00 4E 54 46 53 00                           A:.NTFS.
get_sequence_for_reply: found seq = 3 mid = 3
simple_packet_signature: sequence number 3
client_check_incoming_message: seq 3: got good SMB signature of
[000] 82 62 34 09 B1 F2 1A 86                           .b4.....
24820: tconx ok
[root at polonium mnt]# ls -l
total 24
drwxr-xr-x  2 root root 4096 Sep  3 09:29 cd1
drwxr-xr-x  2 root root 4096 Sep  3 09:29 cd2
drwxr-xr-x  2 root root 4096 Sep  3 09:29 cd3
drwxr-xr-x  2 root root 4096 Sep  3 09:29 cd4
drwxr-xr-x  2 root root 4096 Aug 26 23:46 cdrom
drwxr-xr-x  2 root root 4096 Aug 26 23:46 floppy
?---------  ? ?    ?       ?            ? smb
[root at polonium mnt]#



Thanks in advance--



___________________________________________
David M. Leuser, II * Network Systems Manager
New Hampton School * PH/Fax: (603) 677-3451
70 Main Street * New Hampton, NH 03256
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Love all, trust a few. Do wrong to none."
 -- William Shakespeare


More information about the samba mailing list