LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2003, 07:52 PM   #1
arax_luminarium
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Rep: Reputation: 0
smbmount //pc/d /mnt/windows (Red-hat 9)


Hi all

As per the topic I have been trying to samba mount a remote windows 98 pc.
I have problems.
Let me revise what configuration I have and what is working at the moment.

NOTES:
*PC no1 is running Linux red hat 9
*PC no2 is running win98
*PC running win98 can see and read/write to the samba exported filesystems on the linux box.
*PC running linux cannot mount an exported disk on the win98 box.
*PC running win98 shares the filesystem with other win98 boxes with no issues.
*PC running linux has encryption turned on (using gui)
*shared disk on the PC is drive d (full read / write)

The command used on the linux box is ==> mount -t smbfs //pc/d /mnt/windows
After I issue the commmand.. there is a pause where the linux box tries to mount..etc.
Eventually the linux box spits back an error (wish I had it.. but will try to remember some of it).

unable to mount.. blaa blaa.. IP-number. (which is the correct IP number of the pc running win98)

There is some step I am missing.. as I think this should be simple to fix. but at the moment I am stumped..

cheers



Last edited by arax_luminarium; 07-22-2003 at 09:29 PM.
 
Old 07-22-2003, 10:05 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you will need to pass the logon credentials as well

mount -t smbfs ... -o username=, password=
 
Old 07-23-2003, 12:23 AM   #3
arax_luminarium
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
ok
the problem is that the filesystem is shared fully open.
I have tried to pass a username and password.
but what do you put if it is already shared with no passowrd..

I however did try putting a password on the shared filesystem. and used -o username=me,password=xxxx
but no success.

My thoughts are perhaps there is a windows username and password that is generic to a system that does not require a login??
if this is so, can sombody tell me where to look to get it or what to do. ..

thanks.
 
Old 07-23-2003, 12:51 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
check with smbclient -L win98PCname

and check the results.

also, try using the ipaddress instead of the PCname.
 
Old 07-23-2003, 04:26 AM   #5
arax_luminarium
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
used the command .. here is the results.

[root@localhost root]# smbclient -L pc
added interface ip=10.0.0.1 bcast=10.255.255.255 nmask=255.0.0.0
timeout connecting to 10.0.0.2:139
Error connecting to 10.0.0.2 (Operation already in progress)
Connection to pc failed



what does the above mean?
 
Old 07-23-2003, 06:16 PM   #6
arax_luminarium
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
hi again.
From the previous post it gives the IP number for `pc` This number is the correct one.
But as I do not know much about windows filesharing. Anybody come across such an error?



GCM/CS/CC d++ s: a C++ US++++$UI++++$UH++++$U*++++$ P- L++ E--- W+ N++ !o K- w O- M-- V-- PS PE Y+ PGP t+ 5-- X R tv b+ DI-- D- G e++ h r-- y+

Last edited by arax_luminarium; 07-23-2003 at 07:01 PM.
 
Old 07-23-2003, 07:36 PM   #7
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Try This

"smbclient -L //computername"

you can also do "smbclient -L \\\\computername"

If you want to try it with credentials, then do
"smbclient -L \\\\computername -U <username> -W <workgroup>"
where you enter the appropriate values between the greater than and lesser than signs. That works fine from my Mandrake 9.1 worstation to my Windows 2000 computer.

Let us know how it works out.

You can use the "put" "get" commands to copy files to and from the windows computer once you connect.

To mount:
"mount -t smbfs //computername/sharename -U <username> -W <workgroupname>" and off you go. It will ask for a password, but if you don't have one set just press enter. Two more pieces of information
1) You can substitute the IP address for the computername, or just make an entry for the computer in you /etc/hosts table.
2) For hidden shares, you need to put a backslash (escape character ) before the $ sign. So for example to connect to the "c$" share on the computer, it would be "mount -t smbfs //computername/c\$ -U <username> -W <workgroupname>"
 
  


Reply


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
Authentication Error when trying to smbmount a Windows Share Therlian Linux - Newbie 1 09-22-2005 07:22 AM
Cannot successfully mount windows 2k3 share with smbmount daveTshave Linux - Networking 0 08-31-2004 02:35 PM
Smbmount hangs when mounting Windows share Sastian Linux - Networking 5 06-15-2004 04:57 PM
mount -t //192.168.0.1/mnt /mnt/windows -o password='' generates error broadsoft Linux - Networking 3 08-07-2003 04:51 AM
mount windows share smbmount dc2447 Linux - Newbie 1 09-08-2002 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:48 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