LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   smbmount //pc/d /mnt/windows (https://www.linuxquestions.org/questions/linux-software-2/smbmount-pc-d-mnt-windows-75023/)

arax_luminarium 07-22-2003 07:52 PM

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


:Pengy:

ppuru 07-22-2003 10:05 PM

you will need to pass the logon credentials as well

mount -t smbfs ... -o username=, password=

arax_luminarium 07-23-2003 12:23 AM

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.

ppuru 07-23-2003 12:51 AM

check with smbclient -L win98PCname

and check the results.

also, try using the ipaddress instead of the PCname.

arax_luminarium 07-23-2003 04:26 AM

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?

arax_luminarium 07-23-2003 06:16 PM

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+

fortezza 07-23-2003 07:36 PM

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>"


All times are GMT -5. The time now is 01:14 PM.