It seems like when using smbget, the server name is being incorrectly
parsed with an extra space, causing it to fail. This could be a
formatting issue in the command or a configuration error. To fix it,
ensure that there are no leading or trailing spaces in the server name
and double-check the syntax. If you’re still having trouble, you can
find more troubleshooting resources at https://flipperzerounleashed.com/
to help resolve this issue.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2092836

Title:
  smbget adds a space to the server name, fails to get

Status in samba package in Ubuntu:
  Invalid
Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  This worked in Ubuntu 20.04. It fails after upgrading to Ubuntu 22.04.

  /usr/bin/smbget -n -a -O "smb://humax/Recordings/The Girl In The
  Spider's Web (2018)_20241228_2200.ts"

  I added -v and -d8 flags to get this.

  ```
  link@woody:~> /usr/bin/smbget -v -d8 -n -a -O "smb://humax/Recordings/The 
Girl In The Spider's Web (2018)_20241228_2200.ts"
  INFO: Current debug levels:
    all: 8
    tdb: 8
    printdrivers: 8
    lanman: 8
    smb: 8
    rpc_parse: 8
    rpc_srv: 8
    rpc_cli: 8
    passdb: 8
    sam: 8
    auth: 8
    winbind: 8
    vfs: 8
    idmap: 8
    quota: 8
    acls: 8
    locking: 8
    msdfs: 8
    dmapi: 8
    registry: 8
    scavenger: 8
    dns: 8
    ldb: 8
    tevent: 8
    auth_audit: 8
    auth_json_audit: 8
    kerberos: 8
    drs_repl: 8
    smb2: 8
    smb2_credits: 8
    dsdb_audit: 8
    dsdb_json_audit: 8
    dsdb_password_audit: 8
    dsdb_password_json_audit: 8
    dsdb_transaction_audit: 8
    dsdb_transaction_json_audit: 8
    dsdb_group_audit: 8
    dsdb_group_json_audit: 8
  Using netbios name WOODY.
  Using workgroup WORKGROUP.
  Using workgroup WORKGROUP, guest user
  SMBC_server: server_n=[humax] server=[humax]
   -> server_n=[humax] server=[humax]
  Opening cache file at /run/samba/gencache.tdb
  tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file 
/run/samba/gencache.tdb: Permission denied
  gencache_init: Opening user cache file /home/link/.cache/samba/gencache.tdb.
  sitename_fetch: No stored sitename for realm ''
  namecache_fetch: no entry for humax#20 found.
  resolve_lmhosts: Attempting lmhosts lookup for name humax<0x20>
  startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No such 
file or directory
  resolve_wins: WINS server resolution selected and no WINS servers listed.
  resolve_hosts: Attempting host lookup for name humax<0x20>
  resolve_hosts: getaddrinfo failed for name humax [Temporary failure in name 
resolution]
  name_resolve_bcast: Attempting broadcast lookup for name humax<0x20>
  smbc_open: Invalid argument
  ```

  There is a random space (ASCII 0x20) in the hostname? "humax " instead
  of "humax". Of course it's not going to work!

  This problem also persists in Ubuntu 24.04.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: smbclient 2:4.15.13+dfsg-0ubuntu1.6
  ProcVersionSignature: Ubuntu 5.15.0-130.140-generic 5.15.168
  Uname: Linux 5.15.0-130-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.20.11-0ubuntu82.6
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Thu Jan  2 14:09:32 2025
  InstallationDate: Installed on 2015-12-31 (3289 days ago)
  InstallationMedia: Ubuntu-Server 14.04.3 LTS "Trusty Tahr" - Beta amd64 
(20150805)
  SambaClientRegression: Yes
  SourcePackage: samba
  UpgradeStatus: Upgraded to jammy on 2025-01-02 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2092836/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to