Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-06-2005, 02:46 PM
|
#1
|
LQ Newbie
Registered: Nov 2005
Location: Carlisle
Posts: 5
Rep:
|
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.
|
|
|
11-06-2005, 03:10 PM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
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
|
|
|
11-06-2005, 03:10 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
|
|
|
11-06-2005, 03:22 PM
|
#4
|
LQ Newbie
Registered: Nov 2005
Location: Carlisle
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
11-06-2005, 05:37 PM
|
#5
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Konqueror caches passwords for forms and logins..
|
|
|
11-07-2005, 03:50 AM
|
#6
|
LQ Newbie
Registered: Nov 2005
Location: Carlisle
Posts: 5
Original Poster
Rep:
|
Thanks for the help, problem resolved.
|
|
|
All times are GMT -5. The time now is 08:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|