Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

smbclient problem

1,519 views
Skip to first unread message

Ricardo Panez Sys Adm

unread,
Jul 16, 1998, 3:00:00 AM7/16/98
to
Hello,

I have been able to successfully install SAMBA 1.9.17p2 without a
problem on my first try. My SMBD seems to be working fine. I have been
able to browse it from my win95 and NT clients without a problem.
However when I try to use the smbclient I keep getting an error message.
When I type this command :

/usr/local/samba/bin/smbclient \\servername\rpanez$ -U ctp.com\rpanez

I get an error saying:

\genesisrpanez$: Not enough '\' characters in service

I have tried doing this putting all characters in uppercase, I have
tried it with no -U but I still keep getting the same error. Is there
something wrong with the way I am typing this in ?
Any help is appreciated. Thank You.

Ricardo Panez
Cambridge Technology Partners
Miami IT


Tom Perkins

unread,
Jul 16, 1998, 3:00:00 AM7/16/98
to
\ is the unix escape char. You need two them in unix to make one
backslash.

Regards
Tom

William G. Simeon

unread,
Jul 17, 1998, 3:00:00 AM7/17/98
to
In article <35AEB00A...@ctp.com>, Ricardo Panez Sys Adm <rpa...@ctp.com> wrote:
>Hello,
>
> I have been able to successfully install SAMBA 1.9.17p2 without a
>problem on my first try. My SMBD seems to be working fine. I have been
>able to browse it from my win95 and NT clients without a problem.
>However when I try to use the smbclient I keep getting an error message.
>When I type this command :
>
>/usr/local/samba/bin/smbclient \\servername\rpanez$ -U ctp.com\rpanez
>
>I get an error saying:
>
>\genesisrpanez$: Not enough '\' characters in service
>
>I have tried doing this putting all characters in uppercase, I have
>tried it with no -U but I still keep getting the same error. Is there
>something wrong with the way I am typing this in ?
>Any help is appreciated. Thank You.
>
>Ricardo Panez
>Cambridge Technology Partners
>Miami IT
>
Unix uses the backslash character "\" as an 'escape' or 'literal' character.
Therefore, for Unix to recognize a backslash as a backslash you must either
double it, or single quote it.
Try either of the following:

/usr/local/samba/bin/smbclinet \\\\servername\\rpanez$ -U ctp.com\rpanes
-or-
/usr/local/samba/bin/smbclinet '\\servername\rpanez$ -U ctp.com\rpanes'

--
Required Disclaimer:
The opinions expressed herein are my own and are NOT those of my employer.
Remove Nospam from my address to replay
------------------------------------------------------------------------------
* when i die, i'd like to go | W. G. (Bill) Simeon MCP *
* peacefully in my sleep, | NCR *
* like my grandfather | NT Systems Support *
* | Columbia, SC *
* | *
* not screaming, like the passengers | *
* in his car... | *
* | *
------------------------------------------------------------------------------

john pokotylo

unread,
Jul 24, 1998, 3:00:00 AM7/24/98
to
put a delimiter in the line ie

./smbclient -L /\/\ftpserver\/tmp .....
works on my network

cheers and beers
john

--

-----------------------------------------------------------------------
In RUGBY there are clean minds, John Pokotylo
Healthy bodies....Pick One! Sr Unix Admin
Mosaid Technologies
(613)599.9539 local 1295 poko...@mosaid.com
------------------------------------------------------------------------

Steve Manning

unread,
Jul 27, 1998, 3:00:00 AM7/27/98
to
john pokotylo <poko...@mosaid.com> wrote:

>put a delimiter in the line ie
>
> ./smbclient -L /\/\ftpserver\/tmp .....
>works on my network
>

The reason this works is because forward-slashes ("/") are an
acceptable alternative to back-slashes ("\") in smbclient. The
back-slashes in the above example merely serve to force the unix shell
to interpret the following slash and/or "f" literally, ignoring any
special meaning of the character.

So the example above parses to:
./smbclient -L //ftpserver/tmp .....

Why mess around with back-slashes when you don't have to?

Just because DOS and Windows forces you to use 'em, don't miss out on
this chance to save yourself some headaches! Use forward-slashes with
smbclient instead.


Steve Manning
System Administrator
Mega Marts Inc.
Milwaukee, WI USA
man...@execpc.com

0 new messages