Bug 11015 - smbget with params in rcfile doesn't work while params in cmd line works well
Summary: smbget with params in rcfile doesn't work while params in cmd line works well
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.1.12
Hardware: All All
: P5 normal (vote)
Target Milestone: 4.4
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-17 17:34 UTC by Alexander Piskarev
Modified: 2016-03-01 20:37 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Piskarev 2014-12-17 17:34:40 UTC
Executing cmd like
smbget -vRU -w xxx.yyy.zzz smb://xxx.yyy.zzz\\user:password@server/share/dir

works well

but when I try to set credentials in rcfile:
workgroup xxx.yyy.zzz
username xxx.yyy.zzz\user
password password

and run cmd as
smbget -vRU -f rcfile smb://server/share/dir

it fails with:
Can't open directory smb://server/share/dir/subdir: Access denied
You don't have enough permissions to access smb://server/share/dir/subdir/somefile

And as proposal - Is it make sense to lead smbgetrc params to smbcredentials format
username=aaa
password=xxx
domain=zzz instead of workgroup?
Comment 1 Alexander Piskarev 2014-12-17 19:35:46 UTC
And also I found out that it works nice with rcfile params for single file but fails for recursing option.
Comment 2 Christian Ambach 2016-03-01 20:37:24 UTC
I believe this should be fixed with the recent changes to smbget in 4.4.0rc3 and later.