[Samba] try 2: group setting doesn't work

Rene Veerman rene7705 at gmail.com
Tue Nov 11 08:17:04 GMT 2008


Yesterday i had it working, today it breaks.. :(
But at least i've turned on logging and can pass you the relevant 
section of the log ;)

When i try to connect to the share 'web', NT throws an error 'The 
specified group does not exist' and refuses to connect.

I'm using virtually the same smb.conf file;
I've tried it without the first 3 lines in [global], same results.

[global]
security = user
interfaces = 192.168.102.1 127.0.0.1
bind interfaces only = true
directory security mask = 0775
security mask = 0775
create mask = 0775
directory mask = 0775
workgroup = nlstr
server string = %h server
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
socket options = TCP_NODELAY
writable = no
users = %S
debug level = 10

[web]
 group = www-data
 path = /data/web
 writeable = yes



Relevant section of the log, noting that it finds a user 'www-data' and 
gets confused..
Extra newlines at the hotspot;

[2008/11/11 09:07:20, 5] lib/username.c:Get_Pwnam_internals(108)
  Get_Pwnam_internals did find user [rene]!
[2008/11/11 09:07:20, 10] passdb/lookup_sid.c:lookup_name(64)
  lookup_name: EAGLE\www-data => EAGLE (domain), www-data (name)
[2008/11/11 09:07:20, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2008/11/11 09:07:20, 3] smbd/uid.c:push_conn_ctx(353)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2008/11/11 09:07:20, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2008/11/11 09:07:20, 5] auth/auth_util.c:debug_nt_user_token(448)
  NT user token: (NULL)
[2008/11/11 09:07:20, 5] auth/auth_util.c:debug_unix_user_token(474)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2008/11/11 09:07:20, 3] smbd/sec_ctx.c:pop_sec_ctx(339)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/11/11 09:07:20, 10] passdb/lookup_sid.c:lookup_name(64)
  lookup_name: Unix Group\www-data => Unix Group (domain), www-data (name)


[2008/11/11 09:07:20, 10] smbd/service.c:find_forced_group(460)
  www-data is a User, not a group
[2008/11/11 09:07:20, 3] smbd/error.c:error_packet(146)
  error packet at smbd/reply.c(676) cmd=117 (SMBtconX) 
NT_STATUS_NO_SUCH_GROUP
[2008/11/11 09:07:20, 5] lib/util.c:show_msg(485)
[2008/11/11 09:07:20, 5] lib/util.c:show_msg(495)
  size=35
  smb_com=0x75
  smb_rcls=102
  smb_reh=0
  smb_err=49152
  smb_flg=136
  smb_flg2=51201
  smb_tid=0
  smb_pid=65279
  smb_uid=101
  smb_mid=256
  smt_wct=0
  smb_bcc=0
[2008/11/11 09:07:20, 10] smbd/process.c:setup_select_timeout(1285)
  change_notify_timeout: -1



More information about the samba mailing list