smbclient authfile format

Arne Henningsen arnehe at gmx.de
Tue Feb 8 12:42:47 GMT 2005


Hi Uriel,

I use smbclient version "2.2.8a-SuSE" on SuSE 9.0. 
Mounting SMB shares on a win 2000 server works with
smbmount //<server>/<share> <mountpoint> -o credentials=<path to my authfile>

and accessing the shares also works with the same authfile:
smbclient //<server>/<share> -A <path to my authfile>

My authfile is
username = <myusername>
password = <mypassword>

Do the file permissions matter? (I have "600")

Maybe this helps,
Arne

On Tuesday 08 February 2005 11:40, uriel.auerbach at libertysurf.fr wrote:
> Hi,
>
> I'm using samba Version 2.2.8a on Solaris 2.8 system.
> I'm having trouble using an authfile to define my username,
> password and domain.
>
> This command is working fine:
> smbclient <server> -U <username%password> -W <domain> -c
> 'put foobar'
> However when I change it to use an authfile (login.cfg) it
> fails with:
>
> session setup failed: NT_STATUS_LOGON_FAILURE
>
> Where login.cfg contains the following text
> username=myuser
> password=mypass
> domain=mydomain
>
> I've tried spaces before and after the '=' sign and upper
> and lowercase passwords but with no joy.
>
> Should the authfile be in a special format rather than a
> flat file?
> Thanks
>
> Uriel AUERBACH
> uriel.auerbach at libertysurf.fr
>
> ************************ ADSL JUSQU'A 16 MEGA + TELEPHONE GRATUIT
> ************************ L'ultra haut débit à 30EUR/mois seulement ! Et
> vous téléphonez gratuitement en France vers les postes fixes, hors numéros
> spéciaux. Pour profiter de cette offre exceptionnelle, cliquez ici :
> http://register.tiscali.fr/adsl/  (voir conditions sur le site)


More information about the smb-clients mailing list