Re: [Samba] winbind: BUILTIN\users group gid 1001 conflict

2007-03-24 Thread Don Piven

Sez Christoph Peus:

Hi everybody,

I've joined a fileserver running samba 3.0.24 to an AD domain using 
winbind and noticed that samba maps the users group SID (5-1-5-32-545) 
 to gid 1001 automatically. This seems to conflict with one of ~2000 
mappings I had to inject in winbinds winbindd_idmap.tdb by use of net 
idmap dump/restore, because the fileserver had millions of files with 
certain uid/gid ownership from a local passwd/group before I did the 
net ads join. The gid 1001 was allocated to the group nawi in 
/etc/group before.

I'm unsure now which problems could be caused by this regarding security.
Is it possible - and usefull - to change this mapping to get a 
BUILTIN\users group as expected?

Thanks!


Have you checked the idmap settings in your smb.conf?  In particular, 
idmap uid and idmap gid specify the range of uid/gid values used to 
map to SIDs.

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


Re: [Samba] fstab based shared user mounts not possible

2006-12-18 Thread Don Piven

Martin von Gagern wrote:

I have this entry in my /etc/fstab:

//workstation/share /mnt/mountpoint smbfs \
user,noauto,username=un,password=pwd,uid=un,gid=users,\
fmask=660,dmask=770,codepage=850   0 0


Have you tried users instead of user in your options list?  Using 
that option allows any user to umount that device.


(And you do realize that /etc/fstab is world-readable, right?)

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


Re: [Samba] Couldn't find service home

2006-09-08 Thread Don Piven

Dan Baker wrote:

Greetings,
I'm having a problem with configuring Samba.  I am trying to connect to 
a linux box running Ubuntu with my os x laptop.  When I try and connect 
I get prompted for a username/password.  When I enter them apple gives 
me a weird error and it doesn't work.  I'm pretty the problem is with my 
config on the linux side.  The error log has this printed every time I 
tried to connect:


[2006/09/07 13:09:24, 0] smbd/service.c:make_connection(851)
  daniel-bakers-c (192.168.1.3) couldn't find service home

Here is all the things I could thing to test and include:



[EMAIL PROTECTED]:/etc/samba$ smbclient //Newton/home/dan
Password:
Domain=[NEWTON] OS=[Unix] Server=[Samba 3.0.22]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME


[much deletia from smb.conf]


[global]
workgroup = LINUX_SERVER
server string = %h server (Samba, Ubuntu)

[...]

[Newton]
path = /home/dan
read only = No
guest ok = Yes


You are getting some things mixed up.  Since your smb.conf (I am 
assuming that you posted it in its entirety) doesn't have a netbios 
name setting, Samba will use the hostname portion of your machine's DNS 
domain name, which I gather is Newton.something.or.other.  I would 
rather specify an explicit netbios name (e.g., netbios name = newton) 
in smb.conf to make things clear -- and also to avoid any problems with 
accessing Samba should you rename your machine for any reason.


When you do this:
 [EMAIL PROTECTED]:/etc/samba$ smbclient //Newton/home/dan

... the UNC you are providing specifies a server name of Newton, which 
is good, and a share name of home, which is ungood because Newton 
doesn't have a share by that name (due to not having a [home] section in 
smb.conf).  However, there IS a [Newton] section (which points toward 
your /home/dan directory and gives it a share name of Newton), so the 
UNC //Newton/Newton *should* do what I think you're trying to do 
(namely, connect to your home directory).  But there are better ways of 
doing that.


Look at the [homes] section in the smb.conf manpage to see how Samba can 
handle users' home directories... or at the very least rename that 
Newton share to dan and use a UNC of //Newton/dan to get to your 
home directory.


Hope this helps!

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