[Samba] can mount share, cannot join domain
Adrian Hicks
Adrian.H at auston.edu.sg
Fri Oct 15 02:23:48 GMT 2004
Firstly, the man page says to use "add machine script"... AND
Can someone tell me why my thinking is wrong. Isn't %u the username of the
current service, if any, as described in the smb.conf man page?
If so, why do the doc's (including the man page) put %u in the command for
adding a machine account to the UNIX side?
Doesn't the machine account need the NetBIOS name of the client, and isn't
this represented in Samba by %m?
Wouldn't the command for adding a machine be something more like (3.0.x):
add machine script = /usr/sbin/useradd -c Machine -d /dev/null -g 100 \
-s /bin/false %m
Can't test right now as our only 2000 machine is busy. Can anyone else
confirm?
Adrian Hicks
--
MIS & Facilities Manager
Auston Int'l Group Ltd
45 Middle Rd, #01-00 Auston Unicentre
Singapore 188954
Tel: (65) 6334 5900 ext. 229
Fax: (65) 6339 7600
On 14 October 2004 pm 20:43, Anton K. wrote:
> jason kawaja wrote:
> >On Tue, 12 Oct 2004, jason kawaja wrote:
> >>i am not using ldap. samba 3.0.7 on sparc solaris. winxp pro client.
> >>
> >>[global]
> >>
> >> netbios name = bunny
> >> workgroup = ecel
> >> time server = yes
> >> security = user
> >> encrypt passwords = yes
> >> wins support = yes
> >> domain master = yes
> >> local master = yes
> >> os level = 65
> >> domain logons = yes
> >> logon path = \\%L\%u\.win_profile
> >> logon script = logon.bat
> >> logon drive = D:
> >> logon home = \\%L\%u\.win_home
> >> add user script = useradd -d /dev/null -g 100 -s
> >> /usr/bin/false %u
> >>
> >>[netlogon]
> >>
> >> path = /usr/local/samba/lib/netlogon
> >> writable = no
> >> browsable = no
> >>
> >>[homes]
> >>
> >> comment = Home Directories
> >> browsable = no
> >> writable = yes
> >> valid users = @student @despot
> >> invalid users = @other @sys @adm @uucp @mail @tty @lp @nuucp
> >> @staff \ @daemon @sysadmin @bobody @noaccess @nogroup @nofiles @qmail
> >> max connections = 80
> >>
> >>drwxrwxr-x 2 root other 512 Oct 8 13:21 netlogon/
> >>
> >>when attempting to set/join domain from My Computer -> Properties, a
> >>window pops up asking for username password and i enter root along
> >> with the smbpassword for the root (uid=0) account.
> >>
> >>then an error box saying "The user name could not be found." is
> >>displayed.
> >>
> >>i can mount a share using a non uid=0 samba account to this client.
> >>
> >>ideas?
> >
> >how about a nudge in the right direction?
> >
> >--
> >Jason Kawaja
> >http://www.ietf.org/rfc/rfc1855.txt
>
> Maybe you forgot to add root in samba
> like smbpasswd -a root
More information about the samba
mailing list