Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-19566

smbget shows wrong invitation message when prompted for a password

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-9.4
    • samba
    • None
    • samba-4.19.4-100.el9
    • None
    • None
    • rhel-sst-idm-sssd
    • ssg_idm
    • 0
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?

      Password for [MYGROUP\root]:
      message shows instead of 
      Password for [MYGROUP\sambatester]:
       when prompted for a password for samba user for smbget. File actually downloads successfully.

      Please provide the package NVR for which bug is seen:

      samba-4.19.3-100.el9

      How reproducible:

      always

      Steps to reproduce

      1. Create samba user sambatester, create samba share testshare, update smb.conf respectively: 
        [testshare]
        valid users = sambatester
        read only  = no
        path = /home/sambatester/folder/testsharedir
      1. Run smbget with SMB URL and w/o password (interactive mode)
        [root@ip-10-0-190-243 folder]# smbget smb://sambatester@localhost/testshare/testfile
        Password for [MYGROUP\{+}root{+}]:
        Using domain: MYGROUP, user: root
        smb://sambatester@localhost/testshare/testfile                                                                                     
        Downloaded 6b in 5 seconds

      Expected results

      1. Password for [MYGROUP\{+}sambatester{+}]:
        Using domain: MYGROUP, user: sambatester

      Actual results

      1. Password for [MYGROUP\{+}root{+}]:
        Using domain: MYGROUP, user: root

              anschnei@redhat.com Andreas Schneider
              dkarpele@redhat.com Denis Karpelevich
              Andreas Schneider Andreas Schneider
              Denis Karpelevich Denis Karpelevich
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: