LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-22-2009, 02:40 PM   #1
sshaikh
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 xxxxx.xxxxxx.xxx 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]/[user.name],password=[passwordwith$andnumber] //XX.XXX.XXX.XX/Changes /mnt/xpfolder
mount -t cifs -o username=[Domain]/[user.name],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 (e.g.man 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
User: NT AUTHORITY\SYSTEM
Computer: [from Machine name]
Description:
Logon attempt by: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0
Logon account: [Domain][user.name] comment {------here it should be [Domain]\[user.name]}
Source Workstation: \\{From IP address}
Error Code: 0xC0000064
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

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
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
web_janitor
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]\\[user.name],password=[passwordwith$andnumber] //XX.XXX.XXX.XX/Changes /mnt/xpfolder

or for cifs mount:

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

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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]\[user.name],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.
 
  


Reply

Tags
linux, mounting, winxp



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:53 AM.

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