Re: [Samba] change machine password

2005-07-04 Thread Tilo Lutz
Hi

 Tilo Lutz schrieb:
  I use some programs to clone a windows workstation and
  duplicate it's image on other workstations.
  After cloning I change the workstation name and add a
  machine account on the samba pdc.
  Now I want to create a new password for the workstation
  account and store it.
 
  I use Suse Linux 9.3 as samba pdc. samba version is 3.0.13.
  How can I set the password for a workstation?

Am Sonntag, 3. Juli 2005 17:24 schrieben Sie:
 It is set automatically when you join the domain.
 Just leave the domain and join it again, your problem will be solved.
I don't want to rejoin the domain. This would require interaction from
the administrator after cloning.
I want a solution which works fully without interaction.

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


[Samba] change machine password

2005-07-03 Thread Tilo Lutz
Hi

I use some programs to clone a windows workstation and
duplicate it's image on other workstations.
After cloning I change the workstation name and add a
machine account on the samba pdc.
Now I want to create a new password for the workstation
account and store it.

I use Suse Linux 9.3 as samba pdc. samba version is 3.0.13.
How can I set the password for a workstation?
 Notebook:/etc/samba # smbpasswd -m test
 Failed to set password for user test$.
 Failed to modify password entry for user test$
I tried smbpasswd to change the password but this doesn't
seem to work.
Is there any other way to change the password?

I know I can modify the file smbpasswd directly or change
the password in ldap. But I want a clean solution working with
every password backend.

Best regards,

Tilo Lutz

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


Re: [Samba] change machine password

2005-07-03 Thread Martin Petersen

Tilo Lutz schrieb:

Hi

I use some programs to clone a windows workstation and
duplicate it's image on other workstations.
After cloning I change the workstation name and add a
machine account on the samba pdc.
Now I want to create a new password for the workstation
account and store it.

I use Suse Linux 9.3 as samba pdc. samba version is 3.0.13.
How can I set the password for a workstation?


Notebook:/etc/samba # smbpasswd -m test
Failed to set password for user test$.
Failed to modify password entry for user test$


I tried smbpasswd to change the password but this doesn't
seem to work.
Is there any other way to change the password?

I know I can modify the file smbpasswd directly or change
the password in ldap. But I want a clean solution working with
every password backend.

Best regards,

Tilo Lutz


As far as I know You need to set a system account. smbpasswd gives this
error because of the missing user entry for test$ in /etc/passwd.

Just add the user without shell and homedir and try smbpasswd again.

Hope this helps, please let me know I've You have another kind of setup
and You are sure that You don't need a plain system account for Your
machine accounts.

Martin

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


Re: [Samba] change machine password

2005-07-03 Thread Tilo Lutz
 Tilo Lutz schrieb:
  I use some programs to clone a windows workstation and
  duplicate it's image on other workstations.
  After cloning I change the workstation name and add a
  machine account on the samba pdc.
  Now I want to create a new password for the workstation
  account and store it.
 
 Notebook:/etc/samba # smbpasswd -m test
 Failed to set password for user test$.
 Failed to modify password entry for user test$

Am Sonntag, 3. Juli 2005 14:55 schrieb Martin Petersen:
 As far as I know You need to set a system account. smbpasswd gives this
 error because of the missing user entry for test$ in /etc/passwd.

No. The account exists:
 Notebook:/home/tilo # smbpasswd -a -m test
 Added user test$.
 Notebook:/home/tilo #

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


Re: [Samba] change machine password

2005-07-03 Thread Martin Petersen

Tilo Lutz schrieb:

Tilo Lutz schrieb:


I use some programs to clone a windows workstation and
duplicate it's image on other workstations.
After cloning I change the workstation name and add a
machine account on the samba pdc.
Now I want to create a new password for the workstation
account and store it.



Notebook:/etc/samba # smbpasswd -m test
Failed to set password for user test$.
Failed to modify password entry for user test$



Am Sonntag, 3. Juli 2005 14:55 schrieb Martin Petersen:


As far as I know You need to set a system account. smbpasswd gives this
error because of the missing user entry for test$ in /etc/passwd.



No. The account exists:


Notebook:/home/tilo # smbpasswd -a -m test
Added user test$.
Notebook:/home/tilo #



Cheers, Tilo


So the system machine account exits but smbpasswd will not allow to 
create the samba user account for this machine?


After I've read Your first post again: Maybe the machine account doesn't 
even need a password but You only need to to add the account with 
smbpasswd -a -m test$?


I've set up a couple of Win32 domain members with cloning and my 
problems only occured with the clients and not the backend (e.g. get 
machine out of domain and bring in again).



Martin

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


Re: [Samba] change machine password

2005-07-03 Thread Tilo Lutz
Am Sonntag, 3. Juli 2005 15:07 schrieb Tilo Lutz:
  Tilo Lutz schrieb:
   I use some programs to clone a windows workstation and
   duplicate it's image on other workstations.
   After cloning I change the workstation name and add a
   machine account on the samba pdc.
   Now I want to create a new password for the workstation
   account and store it.
  
  Notebook:/etc/samba # smbpasswd -m test
  Failed to set password for user test$.
  Failed to modify password entry for user test$

 Am Sonntag, 3. Juli 2005 14:55 schrieb Martin Petersen:
  As far as I know You need to set a system account. smbpasswd gives this
  error because of the missing user entry for test$ in /etc/passwd.

 No. The account exists:
  Notebook:/home/tilo # smbpasswd -a -m test
  Added user test$.
  Notebook:/home/tilo #

I forgot: Of course I've called smbpasswd -x test first
before smbpasswd -a -m test,

smbpasswd -a -s -m test doesn't work too.

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


Re: [Samba] change machine password

2005-07-03 Thread Tilo Lutz
Tilo Lutz schrieb:
I use some programs to clone a windows workstation and
duplicate it's image on other workstations.
After cloning I change the workstation name and add a
machine account on the samba pdc.
Now I want to create a new password for the workstation
account and store it.

Notebook:/etc/samba # smbpasswd -m test
Failed to set password for user test$.
Failed to modify password entry for user test$

 Am Sonntag, 3. Juli 2005 14:55 schrieb Martin Petersen:
 
As far as I know You need to set a system account. smbpasswd gives this
error because of the missing user entry for test$ in /etc/passwd.

 So the system machine account exits but smbpasswd will not allow to 
 create the samba user account for this machine?

 After I've read Your first post again: Maybe the machine account doesn't 
 even need a password but You only need to to add the account with 
 smbpasswd -a -m test$?

No, everything is fine. I can add and remove workstations without problems.
But as soon as I try to change the workstations password with
smbpasswd -m -w workstation or
(echo pass;echo pass) | smbpasswd -s -m -e workstation
I get the above error.

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


Re: [Samba] change machine password

2005-07-03 Thread Martin Petersen

Tilo Lutz schrieb:

Tilo Lutz schrieb:


I use some programs to clone a windows workstation and
duplicate it's image on other workstations.
After cloning I change the workstation name and add a
machine account on the samba pdc.
Now I want to create a new password for the workstation
account and store it.




Notebook:/etc/samba # smbpasswd -m test
Failed to set password for user test$.
Failed to modify password entry for user test$




Am Sonntag, 3. Juli 2005 14:55 schrieb Martin Petersen:



As far as I know You need to set a system account. smbpasswd gives this
error because of the missing user entry for test$ in /etc/passwd.



So the system machine account exits but smbpasswd will not allow to 
create the samba user account for this machine?



After I've read Your first post again: Maybe the machine account doesn't 
even need a password but You only need to to add the account with 
smbpasswd -a -m test$?



No, everything is fine. I can add and remove workstations without problems.
But as soon as I try to change the workstations password with
smbpasswd -m -w workstation or
(echo pass;echo pass) | smbpasswd -s -m -e workstation
I get the above error.

Cheers, Tilo



So I am sorry to say that I am not of any help here. Good luck.

Martin

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


Re: [Samba] change machine password

2005-07-03 Thread Tomasz Chmielewski

Tilo Lutz schrieb:

Hi

I use some programs to clone a windows workstation and
duplicate it's image on other workstations.
After cloning I change the workstation name and add a
machine account on the samba pdc.
Now I want to create a new password for the workstation
account and store it.

I use Suse Linux 9.3 as samba pdc. samba version is 3.0.13.
How can I set the password for a workstation?


It is set automatically when you join the domain.
Just leave the domain and join it again, your problem will be solved.

Yet another method is not using cloning, but a real Unattended 
installation - similar to cloning, but doesn't have the drawbacks of 
cloning (which are: problems with machine names/passwords, cloning will 
work only on the same/very similar hardware, hard to change etc.).


You may check it on http://unattended.sf.net


Tomek
WPKG - automated software deployment with Samba
http://wpkg.org
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba