Help Samba3 seems broke for me...

Joerg Pulz Joerg.Pulz at frm2.tum.de
Fri Mar 11 13:13:10 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 11 Mar 2005 freebsduser at comcast.net wrote:

<stripped-down>

> I am following the How To from this URL: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/FastStart.html#id2464512
> Here are some things that I've noticed:
> Group names appear all lower-case:
> getent missing, I am pretty sure that it can be found in Fedora Core 3 
> and also SuSe. The thing has always been missing in FreeBSD and the 
> Samba3 docs may need updating.
> Created a usermap file but it doesn't appear to honor it:
>  username map = /usr/local/etc/username.map
>   <FreeBSDUserName>=<WindowsUserName>
> Inside mapped username directory on FreeBSD by way of XP browsing access 
> is denied in creating anything.
> Inside mapped user's directory on FreeBSD via XP and when deleting 
> something it goes away but then a refresh on XP window and the item 
> returns. No access denied message is thrown.
> I don't know if I did it or Samba did it but in the /etc/passwd there 
> are user names within the range of idmap uid/gid (This is on Samba 
> 3.0.5) but on the Samba 3.0.11 no user names have been changed (they 
> sill have the FreeBSD assigned Ids).
>   idmap uid = 15000-20000
>   idmap gid = 15000-20000
> in passwd;
> nagios:*:15035:15030::0:0:Nagios pseudo-user:/var/spool/nagios:/nonexistent
> Separator has changed from a '+' to a '\' (Wish somebody would stop doing that, heck on a SuSe Machine, it once was an 'm' that one baffled me.) Unless of course I'm thinking of something else, but still why did it go from TEL+ to TEL\?
>  Samba 3.0.5 wbinfo -g reports:
>   TEL+Exchange Domain Servers
>  Samba 3.0.11 wbinfo -g reports:
>   TEL\exchange domain servers
> Oh, and most importantly... Thanks for helping with that CVS thing. Worked great. My working system allows me to do the things I do while the 3.0.11 just drives me nutso. I'm thinking of trying 3.0.5 on the other system to see if it is behaving. But not just yet.
> uname -a reports (holding off upgrading the world for the moment):
> FreeBSD oracle.internal.qualmax.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>
> Here's my smb.conf (System is acting as a domain member) for 3.0.11
> [global]
>   workgroup = INTERNAL
>   netbios name = ORACLE
>   server string = %h server (Samba %v)
>   security = DOMAIN
>   username map = /usr/local/etc/username.map
>   load printers = yes
>   printcap name = cups
>   printing = cups
>   show add printer wizard = No
>   idmap uid = 15000-20000
>   idmap gid = 15000-20000
>   winbind use default domain = Yes
>   use sendfile = Yes
>   log file = /var/log/samba/log.%m
>   max log size = 50
>   socket options = TCP_NODELAY
>   dns proxy = no
> #============================ Share Definitions ==============================
> [homes]
>   comment = Home Directories
>   browseable = no
>   writable = yes
> # NOTE: If you have a BSD-style print system there is no need to
> # specifically define each individual printer
> [printers]
>   comment = All Printers
>   path = /var/spool/samba
>   browseable = no
> # Set public = yes to allow user 'guest account' to print
>   guest ok = no
>   writable = no
>   printable = yes

hi,

here are some short notes for the points you mentioned.

- - getent missing
there is no Fedora or SuSE like getent in FreeBSD!
but you can use pw(8) to show all available users
- ---
prompt> pw usershow -a
- ---
if you think the samba documentation needs updating in this section, 
please report it to the samba team.

- - winbind separator change from + to \
there is an smb.conf(5) option to change it back to +
the smb.conf(5) manpage says:
- ---
Please  note  that  setting  this parameter to + causes problems
with group membership at least on glibc systems, as the  character + is 
used as a special character for NIS in /etc/group.
- ---
if it was sometimes an m on SuSE system, it was due to modifications made 
by the SuSE people. neither the samba team nor FreeBSD has anything to do 
with it.

- - username map option
you should carefully read the smb.conf(5) manpage as there where some 
changes around samba-3.0.8 in this area.
you should also read the Release Notes for samba-3.0.8 for clarification.

- - nagios account
the account with this uid comes from installing the net-mgmt/nagios port
the uid is automatically generated, but you can simply change it and 
chown(8) all files and diretories belonging to the old uid to the new one.

- - file deletion using the WinXP box
i will not try to analyze this until you have taken the above comments 
into account.

Joerg

- -- 
The beginning is the most important part of the work.
 				-Plato
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCMgnXSPOsGF+KA+MRAqCOAJ4xWHqPLcVMEyF9lAnNtAbf1PUv5gCglmoZ
JEIWU/2t3ZRJCMt67fcF/oc=
=npDI
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list