3.0a21: scripting with smbpasswd - bug or feature

2003-02-27 Thread Chere Zhou
I noticed that on samba 2.x, as root we can do smbpasswd -a -s user passwd without being prompt of anything. This is not working on 3.0a21. I will need to type in the password twice using the above command. Is this a feature to not allow passwords to be seen, or a bug that should be fixed

how to call smbpasswd from setuid program?

2003-02-16 Thread Martin Rasp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I'm developing a samba frontend which is called Take a Joint (Project page: http://www.linux-fuer-alle.de/mr/taj/). To allow users to share directories which should be protected by a password I need to call smbpasswd from my installed setuid

SMBPASSWD 2.2.7a doesnt fallback to using port 139 (Solaris)

2003-02-11 Thread Triebwasser, Mark
I'm trying to register my Samba box on the domain but smbpasswd doesn't seem to want to use port 139. It attempts a connect via port 445 but never tries on port 139. It just goes back to the command prompt: ./smbpasswd -D 9000 -r PDC -j DOMAIN Initialising global parameters params.c:pm_process

Adding a couple of simple functions to smbpasswd for Samba 2.2.8

2003-01-30 Thread Richard Sharpe
if you ever get into that problem. Now, I was thinking of doing something similar for Samba 2.2.8. This will involve modifying smbpasswd. For reasons of code simplicity, I have abandoned my earlier thoughs of using 'smbpasswd -L -S dom' to retrieve the old SID and something similar to set the SID

Re: Adding a couple of simple functions to smbpasswd for Samba 2.2.8

2003-01-30 Thread Herb Lewis
you to retrieve the old SID, which is still in the secrets.tdb file, and place the SID into the correct entry in the secrets.tdb if you ever get into that problem. Now, I was thinking of doing something similar for Samba 2.2.8. This will involve modifying smbpasswd. For reasons of code

RE: smbpasswd and euid detection

2003-01-03 Thread David Brodbeck
-Original Message- From: Steve Langasek [mailto:[EMAIL PROTECTED]] Most people who understand how to bless suid powers on an executable are familiar with the ramifications of doing so. Are you hiring? Wherever you got this idea is somewhere I think I'd like to be. ;)

smbpasswd and euid detection

2003-01-02 Thread Craig Kelley
Hello Samba folks; For some time now, I've been patching smbpasswd to get rid of the effective UID detection that it does. In 2.2.7a it simply tests if the effective UID differs from the real UID, and if the effective UID is 'root' then it bails: /* Check the effective uid - make sure we

Re: smbpasswd and euid detection

2003-01-02 Thread Steve Langasek
On Thu, Jan 02, 2003 at 10:47:32AM -0700, Craig Kelley wrote: For some time now, I've been patching smbpasswd to get rid of the effective UID detection that it does. In 2.2.7a it simply tests if the effective UID differs from the real UID, and if the effective UID is 'root' then it bails

Re: smbpasswd and euid detection

2003-01-02 Thread Steve Langasek
On Thu, Jan 02, 2003 at 01:27:01PM -0700, Craig Kelley wrote: On Thu, 2 Jan 2003, Steve Langasek wrote: On Thu, Jan 02, 2003 at 10:47:32AM -0700, Craig Kelley wrote: For some time now, I've been patching smbpasswd to get rid of the effective UID detection that it does. In 2.2.7a

Re: smbpasswd and euid detection

2003-01-02 Thread Craig Kelley
On Thu, 2 Jan 2003, Steve Langasek wrote: On Thu, Jan 02, 2003 at 01:27:01PM -0700, Craig Kelley wrote: On Thu, 2 Jan 2003, Steve Langasek wrote: On Thu, Jan 02, 2003 at 10:47:32AM -0700, Craig Kelley wrote: For some time now, I've been patching smbpasswd to get rid

Re: smbpasswd and euid detection

2003-01-02 Thread Steve Langasek
On Thu, Jan 02, 2003 at 02:23:09PM -0700, Craig Kelley wrote: I consider confusing smbpasswd with the Unix passwd command a sign that one doesn't really have that much knowledge, at least where smbpasswd itself is concerned. It's easy to jump to the conclusion that smbpasswd needs root

Re: smbpasswd and euid detection

2003-01-02 Thread Craig Kelley
On Thu, 2 Jan 2003, Steve Langasek wrote: On Thu, Jan 02, 2003 at 02:23:09PM -0700, Craig Kelley wrote: I consider confusing smbpasswd with the Unix passwd command a sign that one doesn't really have that much knowledge, at least where smbpasswd itself is concerned. It's easy to jump

Re: smbpasswd replication

2002-10-11 Thread Andrew Bartlett
richard wrote: Can't see how Steve? Unless you mean sharing usernames across multiple pcs in different offices. To clarify: our network consists of 4 offices linked by vpns through the internet. At present we auth to an Nt4 pdc in main office which works fine until telstra our isp goes

Re: smbpasswd replication

2002-10-10 Thread richard
, Andrew Morgan wrote: On 11 Oct 2002, richard wrote: is it possible to configure/modify smbpasswd to save individual user_smbpasswd files instead of one large file? Then it would be easy to use rsync to replicate changed only files through the domain. Please reply to this email as I

Re: smbpasswd replication

2002-10-10 Thread Steve Langasek
On Fri, Oct 11, 2002 at 02:18:48PM +1000, richard wrote: my first thoughts too. but to synchronise the data to and from 6 samba servers I need to real careful...example: rsync -au local_file 1.2.3.4:remote_file will sync the entire contents of the file. If another user happens to changing

Re: Importing smbpasswd with pdbedit -i

2002-08-15 Thread Simo Sorce
I do not what's wrong in pdbedit, works fine for me (I use HEAD). Simo. On Mon, 2002-07-08 at 11:58, [EMAIL PROTECTED] wrote: Hi, I used pdbedit -i to import my old /etc/smbpasswd into a NIS+ table. pdbedit generated for Workstationaccounts entries like this: degpd060w147$:1064:3128:502

Re: Importing smbpasswd with pdbedit -i

2002-08-15 Thread Jelmer Vernooij
This is probably a 2.2-problem. The 2.2 pdbedit --import option works different than the one in HEAD. The 2.2 --import is a special function that tries to read smbpasswd like files while the HEAD --import option uses the code from whatever backend you specify to it. Jelmer I do not what's

smbpasswd-passwd how to{smbpasswd database is corrupt. username not in unix passwd database}

2002-08-01 Thread san
Dear Samba Users I tried pwdump to extract username from win2k, later when i replaced it smbpasswd directly, now when i am trying to login thru windows 2000 pro workstation, i am getting the following error [2002/08/01 19:40:03, 0] smbd/reply.c:reply_sesssetup_and_X(890) restrict anonymous

Re: smbpasswd-passwd how to{smbpasswd database is corrupt. usernamenot in unix passwd database}

2002-08-01 Thread Richard Sharpe
On Thu, 1 Aug 2002, san wrote: Dear Samba Users I tried pwdump to extract username from win2k, later when i replaced it smbpasswd directly, now when i am trying to login thru windows 2000 pro workstation, i am getting the following error [2002/08/01 19:40:03, 0] smbd

rpcclient smbpasswd to test samba

2002-07-17 Thread GV
suggestions? Please ask me, if information is not enough. I will give you more. 2. Does smbpasswd -r remotemachine -U remoteuser work properly? Here is my error. machine remotemachine rejected the password change: Error was : RAP86: The specified password is invalid. Failed to modify password

Smbpasswd

2002-07-01 Thread kelvin
Hi, I am in the process of tranfering my samba users(around 150) from a Redhat6.1 server to a new Redhat7.3 server. I have successfully tranfered the smbusers file to the new 7.3 server.I have also tranfered over the passwd file,group file and shadow file over successfully.Now, my users are not

Re: Smbpasswd

2002-07-01 Thread Simo Sorce
Have you transfered also the (/etc[/samba/]/)smbpasswd file? Is it a domain? In this case have you copied over MACHINE.SID / secrets.tdb files? On Mon, 2002-07-01 at 14:04, kelvin wrote: Hi, I am in the process of tranfering my samba users(around 150) from a Redhat6.1 server to a new