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

2008-11-11 Thread Rene Veerman

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

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: group setting doesnt work (debian)

2008-11-10 Thread Rene Veerman

k, i posted too soon ;)

fixed;

[global]
interfaces = 192.168.102.1/24 eth2
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

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


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] group setting doesnt work (debian)

2008-11-10 Thread Rene Veerman
I'm trying to connect from a vista machine to a samba share on debian 
(latest).


This is going fine with these settings:
[global]

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

[web]
path = /data/web
writeable = yes


---EOF

but as soon as i add the following line to [web], i cannot connect 
anymore; i get an error message on vista that reads 'the specified group 
does not exist.'


group = www-data

the thing is, this group DOES exist, it's in /etc/group and the username 
i'm connecting with is a member of that group.


There's an additional problem, my files are created with these permissions;
-rwxr--r--  1 rene rene 0 2008-11-10 17:16 test.txt*

but that should be
drwxrwxr-x  5 rene rene  4096 2008-11-03 14:48 work/

i'm kinda at a loss here, holding out for clues..
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba