LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-06-2005, 01:46 PM   #1
skimmer
LQ Newbie
 
Registered: Nov 2005
Location: Carlisle
Posts: 5

Rep: Reputation: 0
mount -t smbfs error


Hi,

have samba installed on ubuntu linux. Everything is working fine from the server end. Have a shared folder on a Windows XP Professional PC, this has no passwords assigned and is viewable to all. Using Konqueror I can browse to the XP share and open the shared folder no problem, however, when I try to mount the shared folder from terminal using:

mount -t smbfs //<XP PC>/<share> /mnt/xpshare

I am prompted for a password and have to use my Win domain password to gain access. Any idea how to mount the file system manually without entering a password?

Also, is there anyway of mapping a drive permanently via Konqueror like you would in Windows?

Thanks.
 
Old 11-06-2005, 02:10 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Even in M$ land, users connecting pass credentials to shares with no passwords using their current logged in user and login password. The password option just forces one to be added to the connection transaction.

So, you need to do the same with the -o credentials=filename option.

mount -t smbfs -o credentials=/root/.ssh/cred.share //<XP PC>/<share> /mnt/xpshare
or in /etc/fstab
Code:
//<XP PC>/<share>    /mnt/xpshare      smbfs    credentials=/root/.ssh/cred.share,noauto       0 0
 
Old 11-06-2005, 02:10 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yuo can only not enter a password if xp doesn't ask for one. you can automatically provide it in a number of ways, e.g

mount blah blah -o user=bob,password=secret

or

mount blah blah -o credentials=/etc/smb/credentials

i've not used a credentials file before though, check the docs for details

and a permanent mount if done by adding a suitable entry into /etc/fstab
 
Old 11-06-2005, 02:22 PM   #4
skimmer
LQ Newbie
 
Registered: Nov 2005
Location: Carlisle
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for that. I'll try it tomorrow. One thing I'm confused by, how come in Konqueror I can access the shared folder without being prompted for a username/password?

Thanks again.
 
Old 11-06-2005, 04:37 PM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Konqueror caches passwords for forms and logins..
 
Old 11-07-2005, 02:50 AM   #6
skimmer
LQ Newbie
 
Registered: Nov 2005
Location: Carlisle
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the help, problem resolved.
 
  


Reply



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
problems with smbfs mount-point in /etc/fstab - "mount -a" works, but not at boottime MarkSide Linux - Software 4 11-20-2005 03:30 PM
cannot mount smbfs flipboi Linux - Security 2 08-12-2004 09:18 AM
Mandrake 10 "mount smbfs" the win2000 folder from vmware error wuyeguo Mandriva 1 03-19-2004 06:20 PM
mount -t smbfs loganwva Linux - Networking 1 10-21-2003 11:02 AM
mount -t smbfs / smbstatus jeffvd Linux - Networking 10 10-16-2003 03:08 AM

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

All times are GMT -5. The time now is 04:29 PM.

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