Samba 2.2.2 on FreeBSD 4.5 with Windows 2000 / XP Clients - Add user script problem.

Samba 2.2.2 on FreeBSD 4.5 with Windows 2000 / XP Clients - Add user script problem.

Post by Patrick Simo » Thu, 11 Jul 2002 07:44:25



Hi,
i have got a problem with creating a machine account on a FreeBSD box. I
used the /sbin/adduser script but it just doesn't seem to work ... instead
i'll get a usage dialog.

Windows XP Client (NetBIOS name): MEMPHIS

/etc/master.passwd::
memphis$:x:1002:1002:memphis:/nonexistant:/sbin/nologin
-> Is this correct?

smbpasswd -a -m memphis
-> Doesn't work either. No such user "memphis" ....

that's how it works on a linux box: add user script = /usr/sbin/useradd -d
/dev/null -g 100 -s /bin/false -M %u ... but i would like to do the same on
FreeBSD. Thanks for your help!

P.Simon

 
 
 

Samba 2.2.2 on FreeBSD 4.5 with Windows 2000 / XP Clients - Add user script problem.

Post by Patrick Simo » Thu, 11 Jul 2002 07:51:57


Okay .... once again ... i am working on this problem for hours ... then i
post it ... and 1 minute later i solved it by myself .. - its always the
same :)
Anyway i'll share my solution to newbie users like i am ...

I used vipw instead of editing the file with vi. That's how it finally looks
like in my /etc/master.passwd:

memphis$:*:1002:1002::0:0:memphis:/nonexistent:/sbin/nologin

then i executed smbpasswd -a -m memphis and the user was successfully
added - but i still don't know if my login attempts will work. :)


Quote:> Hi,
> i have got a problem with creating a machine account on a FreeBSD box. I
> used the /sbin/adduser script but it just doesn't seem to work ... instead
> i'll get a usage dialog.

> Windows XP Client (NetBIOS name): MEMPHIS

> /etc/master.passwd::
> memphis$:x:1002:1002:memphis:/nonexistant:/sbin/nologin
> -> Is this correct?

> smbpasswd -a -m memphis
> -> Doesn't work either. No such user "memphis" ....

> that's how it works on a linux box: add user script = /usr/sbin/useradd -d
> /dev/null -g 100 -s /bin/false -M %u ... but i would like to do the same
on
> FreeBSD. Thanks for your help!

> P.Simon


 
 
 

Samba 2.2.2 on FreeBSD 4.5 with Windows 2000 / XP Clients - Add user script problem.

Post by Dave Uhrin » Thu, 11 Jul 2002 07:41:53



> Hi,
> i have got a problem with creating a machine account on a FreeBSD box.
> I used the /sbin/adduser script but it just doesn't seem to work ...
> instead i'll get a usage dialog.

Try using /stand/sysinstall.
 
 
 

Samba 2.2.2 on FreeBSD 4.5 with Windows 2000 / XP Clients - Add user script problem.

Post by magnu » Thu, 11 Jul 2002 07:48:30




Quote:> Okay .... once again ... i am working on this problem for hours ... then i
> post it ... and 1 minute later i solved it by myself .. - its always the
> same :)
> Anyway i'll share my solution to newbie users like i am ...

> I used vipw instead of editing the file with vi. That's how it finally
looks
> like in my /etc/master.passwd:

> memphis$:*:1002:1002::0:0:memphis:/nonexistent:/sbin/nologin

> then i executed smbpasswd -a -m memphis and the user was successfully
> added - but i still don't know if my login attempts will work. :)

This issue is described in the samba howto if you had read it thoroughly.
Anyway, remember not to let the windows system map any drives or in any
other way interact with the samba server, or you might experience problems
when trying to add the windows client to the domain, as I experienced.

Magnus

 
 
 

Samba 2.2.2 on FreeBSD 4.5 with Windows 2000 / XP Clients - Add user script problem.

Post by Jean-Yves Avenar » Thu, 11 Jul 2002 17:44:25


Hello


Quote:> Hi,
> i have got a problem with creating a machine account on a FreeBSD box. I
> used the /sbin/adduser script but it just doesn't seem to work ... instead
> i'll get a usage dialog.

> Windows XP Client (NetBIOS name): MEMPHIS

> /etc/master.passwd::
> memphis$:x:1002:1002:memphis:/nonexistant:/sbin/nologin
> -> Is this correct?

> smbpasswd -a -m memphis
> -> Doesn't work either. No such user "memphis" ....

Once you've added your account by hand in /etc/master.passwd (if you're not
using adduser), you must update the different database with something like:
pwd_mkdb -p /etc/master.passwd

Jean-Yves

 
 
 

1. Problem with the add user script for Windows 2000

Hi,

I 've problem with with my "add user script" for Windows 2000.
I'm running a Samba PDC (Samba 3.0.0, RedHat 9.0) and if I'm creating
the accounts manually, everything works perfectly!!

my script:
usr/sbin/useradd -d /dev/null -g machine -s /bin/false -M %u$

I also tried it with %U an without $

Does someone have an idea?

2. problems with NFSv3 kernel 2.5.52 server, 2.4.20 client. (server x86 linux, clientsparclinux)

3. Windows XP + FreeBSD 4.5

4. Sun Volume Manager and Storage Array

5. Dualboot FreeBSD 4.5 and Windows XP

6. Shell Script

7. Mounting a (XP) NTFS drive on FreeBSD 4.5

8. Uploading files to server from frontpage

9. What version os Samba should I use for Windows 2000 Professional clients?

10. Windows 2000 Pro and Windows XP Home Networking

11. freeBSD 4.5 and Samba

12. FreeBSD 4.5 + Samba + Winbind?

13. Windows XP and Samba - whats the maximum size of a XP Share folder?