Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-22-2009, 02:40 PM   #1
LQ Newbie
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Angry backslash in username not passing to windows machine

Backslash not passing username to windows machine

Hi Linux Gurus,
Ok I am a newbee to Linux so please don’t mind if the question is too simple for you.

I want to mount a windows file system on Redhat enterprise

Linux 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Linux

I am using the following commands

mount -t smbfs -o username=[Domain]/[],password=[passwordwith$andnumber] //XX.XXX.XXX.XX/Changes /mnt/xpfolder
mount -t cifs -o username=[Domain]/[],password=[passwordwith$andnumber] //XX.XXX.XXX.XX/Changes /mnt/xpfolder
mount.cifs //XX.XXX.XXX.XX/Changes /mnt/saiffold credentials=/home/XXXXXXh/.xpmachine

and I am getting the error;

mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page ( mount.cifs)

I looked into the Windows event manage to get the following error

Event Type: Failure Audit
Event Source: Security
Event Category: Account Logon
Event ID: 680
Date: 22/01/2009
Time: 18:46:06
Computer: [from Machine name]
Logon account: [Domain][] comment {------here it should be [Domain]\[]}
Source Workstation: \\{From IP address}
Error Code: 0xC0000064
For more information, see Help and Support Center at

What this is telling me is that I cannot pass the backslash \ to Windows from Linux, On a side not I can connect using smb://…… to the same machine with out a problem so the problem is with Linux not able to pass the \ (backslash to windows) or windows not recognizing it.

Any help will be greatly appreciated thanks for reading

Last edited by sshaikh; 01-22-2009 at 03:14 PM.
Old 01-22-2009, 05:03 PM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,057

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Too many colours and fonts and italics and underlines and XXXX and xxxx and copy&paste from random places for me to be able to make any sense of your post at all.
You are making me feel SICK.
Please try again, but welcome to LQ!
Old 01-22-2009, 05:15 PM   #3
LQ Newbie
Registered: Nov 2008
Location: USA
Distribution: rhell 4/5
Posts: 18

Rep: Reputation: 1
Try this (notice the bolded text) - it works for me in my environment:

mount -t smbfs -o username=[Domain]\\[],password=[passwordwith$andnumber] //XX.XXX.XXX.XX/Changes /mnt/xpfolder

or for cifs mount:

mount -t cifs -o username=[Domain]\\[],password=[passwordwith$andnumber] //XX.XXX.XXX.XX/Changes /mnt/xpfolder
Old 01-22-2009, 07:37 PM   #4
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,170

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
And, to expand slightly on web_janitor's point, the backslash is, in most Linux contexts, an escape character telling the program reading the line to take the character following the backslash without using that character's "special" meaning. So, since backslash has a "special" meaning, you have to escape it.

You could probably also do it by placing single quotes around the string:

mount -t cifs -o username='[Domain]\[],password=[passwordwith$andnumber]' //XX.XXX.XXX.XX/Changes /mnt/xpfolder

I also recommend that you use the cifs type. I believe that smbfs is depreciated and may soon be unsupported.


linux, mounting, winxp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing viruses on to Windows mandrakethepenguin Linux - General 8 03-20-2008 07:32 AM
talk <username> always goes to the answering machine. Why? srampally Linux - Software 4 06-05-2007 12:05 PM
how to shutdown,restart and log off windows machine remotely through a linux machine deepak rawat Fedora 1 05-23-2006 01:25 AM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM

All times are GMT -5. The time now is 09:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration