Re: [Samba] vampire question

2005-03-15 Thread John H Terpstra
On Tuesday 15 March 2005 12:33, Schlomo Schapiro wrote:
> Hi John,
>
> On Mon, 14 Mar 2005, John H Terpstra wrote:
> > On Monday 14 March 2005 14:29, Schlomo Schapiro wrote:
> > > Hi,
> > >
> > > aren't posix account names supposed to be without blanks ? I would be
> > > most surprised if a machine account with a blank would work with Samba
> > > !
> >
> > Is this "no blank" specified in any standards? It seems someone has
> > decided that Linux should no longer permit blanks in user names and/or
> > group names.
>
> Just tried on my SuSE 9.0:
> # useradd "hello world"
> useradd: Invalid user name `hello world'.
>
> So I assume that usernames with blanks are not a good idea - in the way
> that most Linux tools don't cope with them, even if maybe the NSS
> library calls do cope with them.
>
> Doesn't Samba also use the platform useradd command to add accounts in
> most setups ?

Yes, for the tdbsam backend and for smbpasswd backend. This means you will 
need to implement a shell script that converts names to lower case and strips 
spaces. The allow the shell script to call 'useradd' etc. The smb.conf 
parameter 'add user script' should be set up to call your custom script.

- John T.

>
> > > > > rpc vampire -S ntserver -U Administrator%stacy182  --- everything
> > > >
> > > > seems
> > > >
> > > > > to run fine however I do get
> > > > > could not create posix account info for 'machine name$'
>
> --
> Regards,
> Schlomo

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] vampire question

2005-03-15 Thread Schlomo Schapiro
Hi John,

On Mon, 14 Mar 2005, John H Terpstra wrote:

> On Monday 14 March 2005 14:29, Schlomo Schapiro wrote:
> > Hi,
> >
> > aren't posix account names supposed to be without blanks ? I would be most
> > surprised if a machine account with a blank would work with Samba !
> 
> Is this "no blank" specified in any standards? It seems someone has decided 
> that Linux should no longer permit blanks in user names and/or group names.

Just tried on my SuSE 9.0:
# useradd "hello world"
useradd: Invalid user name `hello world'.

So I assume that usernames with blanks are not a good idea - in the way 
that most Linux tools don't cope with them, even if maybe the NSS 
library calls do cope with them.

Doesn't Samba also use the platform useradd command to add accounts in 
most setups ?


> > >
> > > > rpc vampire -S ntserver -U Administrator%stacy182  --- everything
> > >
> > > seems
> > >
> > > > to run fine however I do get
> > > > could not create posix account info for 'machine name$'
> >

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


Re: [Samba] vampire question

2005-03-14 Thread John H Terpstra
On Monday 14 March 2005 14:29, Schlomo Schapiro wrote:
> Hi,
>
> aren't posix account names supposed to be without blanks ? I would be most
> surprised if a machine account with a blank would work with Samba !

Is this "no blank" specified in any standards? It seems someone has decided 
that Linux should no longer permit blanks in user names and/or group names.

- John T.

>
> Schlomo
>
> On Mon, 14 Mar 2005, Phil Dawson wrote:
> > Hi Kurt,
> >
> > Don't know if this is any help.  We currently have a similar problem on
> > RHAS 3 & 4.
> >
> > RedHat bug report:
> >
> > https://www.redhat.com/archives/fedora-test-list/2004-November/msg01576.h
> >tml
> >
> >
> >
> > Phil
> >
> >
> >
> >
> >
> >
> >
> > "Kurt A. Brust" <[EMAIL PROTECTED]>
> > Sent by: [EMAIL PROTECTED]
> > 11/03/2005 18:34
> >
> > To
> > [EMAIL PROTECTED]
> > cc
> >
> > Subject
> > [Samba] vampire question
> >
> >
> >
> >
> >
> >
> > . when running net
> >
> > > rpc vampire -S ntserver -U Administrator%stacy182  --- everything
> >
> > seems
> >
> > > to run fine however I do get
> > > could not create posix account info for 'machine name$'
>
> --
> Regards,
> Schlomo

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] vampire question

2005-03-14 Thread Schlomo Schapiro
Hi,

aren't posix account names supposed to be without blanks ? I would be most 
surprised if a machine account with a blank would work with Samba !

Schlomo

On Mon, 14 Mar 2005, Phil Dawson wrote:

> Hi Kurt,
> 
> Don't know if this is any help.  We currently have a similar problem on 
> RHAS 3 & 4.
> 
> RedHat bug report:
> 
> https://www.redhat.com/archives/fedora-test-list/2004-November/msg01576.html
> 
> 
> 
> Phil
> 
> 
> 
> 
> 
> 
> 
> "Kurt A. Brust" <[EMAIL PROTECTED]> 
> Sent by: [EMAIL PROTECTED]
> 11/03/2005 18:34
> 
> To
> [EMAIL PROTECTED]
> cc
> 
> Subject
> [Samba] vampire question
> 
> 
> 
> 
> 
> 
> . when running net
> > rpc vampire -S ntserver -U Administrator%stacy182  --- everything
> seems
> > to run fine however I do get
> > could not create posix account info for 'machine name$'
> 
> 
> 
> 

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


Re: [Samba] vampire question

2005-03-14 Thread Phil Dawson
Hi Kurt,

Don't know if this is any help.  We currently have a similar problem on 
RHAS 3 & 4.

RedHat bug report:

https://www.redhat.com/archives/fedora-test-list/2004-November/msg01576.html



Phil







"Kurt A. Brust" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
11/03/2005 18:34

To
[EMAIL PROTECTED]
cc

Subject
[Samba] vampire question






. when running net
> rpc vampire -S ntserver -U Administrator%stacy182  --- everything
seems
> to run fine however I do get
> could not create posix account info for 'machine name$'



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

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


Re: [Samba] vampire question

2005-03-11 Thread John H Terpstra
On Friday 11 March 2005 11:26, Kurt A. Brust wrote:
> I have a quick question for you... when running net
>
> > rpc vampire -S ntserver -U Administrator%stacy182  --- everything
>
> seems
>
> > to run fine however I do get
> > could not create posix account info for 'machine name$'

I presume you are using a tdbsam backend. If so, on SLES9 you need to do the 
following:

a) mkdir /var/lib/smb-machines/
b) Set in your smb.conf the following:

add machine account = /usr/sbin/useradd -s /bin/flase 
-d /var/lib/smb-machines/"%u" "%u"

i.e.: SLES9 will not allow creation of system accounts that have a /dev/null 
home directory.

Please call me on (650) 580-8668

- John T.
-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] vampire question

2005-03-11 Thread Kurt A. Brust
. when running net
> rpc vampire -S ntserver -U Administrator%stacy182  --- everything
seems
> to run fine however I do get
> could not create posix account info for 'machine name$'



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


[Samba] vampire question

2005-03-11 Thread Kurt A. Brust
I have a quick question for you... when running net
> rpc vampire -S ntserver -U Administrator%stacy182  --- everything
seems
> to run fine however I do get
> could not create posix account info for 'machine name$'

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