I've compiled the latest version of samba (1.9.18p4) and set up password encryption (per instructions in the ENCRYPTIONS.txt file). Setting root's smbpasswd worked with no problems. I set another user (me) with an smbpasswd. Tried "smbclient -L '\\hostname\wwinzer'". The output is the following: 68 wwinzer@Sun-E3000:~ ==> smbclient '\\champusa.com\wwinzer' Added interface ip=207.21.123.4 bcast=207.21.123.255 nmask=255.255.255.0 Server time is Fri Apr 10 00:28:40 1998 Timezone is UTC-7.0 Password: Session setup failed for username=WWINZER myname=SUN-E3000 destname=CHAMPUSA.COM ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.) You might find the -U, -W or -n options useful Sometimes you have to use `-n USERNAME' (particularly with OS/2) Some servers also insist on uppercase-only passwords I looked in the /usr/local/samba/private/smbpasswd and the 32-bit encryption is in place. This is root's output of "smbclient -L champusa.com": 112 root@Sun-E3000:/usr/local/samba/private ==> smbclient -L champusa.com. Added interface ip=207.21.123.4 bcast=207.21.123.255 nmask=255.255.255.0 Server time is Fri Apr 10 00:34:26 1998 Timezone is UTC-7.0 Password: Domain=[CHAMPION] OS=[Unix] Server=[Samba 1.9.18p4] security=user Server=[CHAMPUSA] User=[root] Workgroup=[CHAMPION] Domain=[CHAMPION] Sharename Type Comment --------- ---- ------- champusa Disk ChampUSA SysAdmin Directory IPC$ IPC IPC Service (ChampUSA.COM) okips1 Printer root Disk Root Dir staff Disk ChampUSA Employee Directory tmp Disk The Garbage Dump This machine has a browse list: Server Comment --------- ------- SUN-E3000 ChampUSA.COM This machine has a workgroup list: Workgroup Master --------- ------- CHAMPION SUN-E3000 It only works for user "root" and no other user. The goal is to have all users the ability to use SAMBA. Thanks in Advance. - Wally Winzer Jr.
Another note, I do have a [homes] section within smb.conf. It looks like the following: [homes] comment = Home Directories browseable = no guest ok = no read only = no create mask = 0700 printable = no available = yes I looked at example smb.conf files and noticed that "browseable = no" and "read only = no" is standard. This was taken from tridge's sample smb.conf file. Even though the homes section did not show up within the smbclient's output, the entry does exist. - Wally Winzer Jr. Auteria Wally Winzer Jr. wrote:> I've compiled the latest version of samba (1.9.18p4) and set up password > encryption (per instructions in the ENCRYPTIONS.txt file). Setting root's > smbpasswd worked with no problems. I set another user (me) with an > smbpasswd. Tried "smbclient -L '\\hostname\wwinzer'". The output is the > following: > > 68 wwinzer@Sun-E3000:~ ==> smbclient '\\champusa.com\wwinzer' > Added interface ip=207.21.123.4 bcast=207.21.123.255 nmask=255.255.255.0 > Server time is Fri Apr 10 00:28:40 1998 > Timezone is UTC-7.0 > Password: > Session setup failed for username=WWINZER myname=SUN-E3000 > destname=CHAMPUSA.COM ERRSRV - ERRbadpw (Bad password - name/password pair in > a Tree Connect or Session Setup are invalid.) > You might find the -U, -W or -n options useful > Sometimes you have to use `-n USERNAME' (particularly with OS/2) > Some servers also insist on uppercase-only passwords > > I looked in the /usr/local/samba/private/smbpasswd and the 32-bit > encryption is in place. > > This is root's output of "smbclient -L champusa.com": > > 112 root@Sun-E3000:/usr/local/samba/private ==> smbclient -L champusa.com. > Added interface ip=207.21.123.4 bcast=207.21.123.255 nmask=255.255.255.0 > Server time is Fri Apr 10 00:34:26 1998 > Timezone is UTC-7.0 > Password: > Domain=[CHAMPION] OS=[Unix] Server=[Samba 1.9.18p4] > security=user > > Server=[CHAMPUSA] User=[root] Workgroup=[CHAMPION] Domain=[CHAMPION] > > Sharename Type Comment > --------- ---- ------- > champusa Disk ChampUSA SysAdmin Directory > IPC$ IPC IPC Service (ChampUSA.COM) > okips1 Printer > root Disk Root Dir > staff Disk ChampUSA Employee Directory > tmp Disk The Garbage Dump > > This machine has a browse list: > > Server Comment > --------- ------- > SUN-E3000 ChampUSA.COM > > This machine has a workgroup list: > > Workgroup Master > --------- ------- > CHAMPION SUN-E3000 > > It only works for user "root" and no other user. The goal is to have > all users the ability to use SAMBA. > > Thanks in Advance. > > - Wally Winzer Jr.
Hi All! Maybe some guru can help me.... I have set up SAMBA server with encrypted passwords. After adding a new user with smbpasswd as a root, the new user can properly connect from his PC (win98) to SAMBA server, use shares and printers. BUT! When user tries to change password with smbpasswd, he gets: mark@saule:~ (258) smbpasswd Old SMB password: New SMB password: Retype new SMB password: machine 127.0.0.1 rejected the password change: Error was : The specified password is invalid. Failed to change password for mark mark@saule:~ (259) What's the problem?? Mark
I am having trouble changing passwords with smbpasswd on the Samba server while logged in as a user. I get this error message: machine 127.0.0.1 rejected the password change: Error was : The specified password is invalid. When I log in as root I can change the password. I'm also trying to use "unix password sync = yes" to change the unix password when I change the smb password. The file, /etc/samba/smbpasswd, that contains the passwords has permissions 600. I just changed the perms to 777 to test and got the same results. Anyone seen this before? Thanks, Bobby M. [global] workgroup = NIAC netbios name = ORION server string = Samba Server encrypt passwords = Yes passwd program = /usr/bin/passwd unix password sync = Yes log level = 5 log file = /var/log/samba/log.%m max log size = 50 name resolve order = wins lmhosts hosts bcast socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain admin group = ntadmin add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u logon script = startup.bat logon path = \\%N\profiles\%u logon drive = H: logon home = \\orion\%u domain logons = Yes os level = 65 preferred master = True domain master = True dns proxy = No wins support = Yes -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638
I am having problems with smbpasswd. I am getting the following error: # smbpasswd -a dfrey New SMB password: Retype new SMB password: Failed to modify entry for user dfrey. Failed to modify password entry for user dfrey dfrey is a valid system user dfrey:x:1002:1002:David Frey,,,:/home/dfrey:/bin/bash I have searched google, but I haven't found an answer yet. The /etc/samba/smbpasswd file is empty. I created the file myself with touch. Running the command with no file there makes no difference. What can I try? -- David Frey - UVic Computer Science Student GnuPG key available at http://chubby.dyndns.org/david_frey.gpg -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20030410/29cd35c0/attachment.bin
David, Find out what the correct path for your binary is by: strings /usr/bin/smbpasswd | grep smbpasswd if it is not there, then try: strings /usr/local/samba/bin/smbpasswd | grep smbpasswd It should tell you where it is trying to create the smbpasswd file. - John T. -- John H Terpstra Email: jht@samba.org -------------- next part -------------- Skipped content of type multipart/signed-------------- next part -------------- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba