LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to connect to a Windows share? (https://www.linuxquestions.org/questions/slackware-14/how-to-connect-to-a-windows-share-310170/)

Ook 04-05-2005 09:12 PM

How to connect to a Windows share?
 
I have a Win2000 box at 10.0.0.12 with a share at \\10.0.0.10\c\. How, from my slackware 10.0 box, can I map/mount this share? Ideally, I'd like to see it at /mnt/winbloze/fat-c .

killerbob 04-05-2005 09:17 PM

First, make sure you've got Samba installed, and your kernel sees the smb filesystem. If you're using an install kernel, you don't have to worry about the latter part, and Samba is in the N set of packages for Slackware.


That done, make sure that you have the directory /mnt/winbloze/fat-c existing and empty. Then, as root, type:
smbmount //10.0.0.12/c /mnt/winbloze/fat-c -o guest

When that works, edit your /etc/fstab to include the line:
Code:

//10.0.0.12/c    /mnt/winbloze/fat-c    smbfs    noauto,users,rw    1    0
so that you can mount/unmount it as a regular user, and you're up and running.

gbonvehi 04-05-2005 09:19 PM

smbmount \\10.0.0.10\c /mnt/winbloze/fat-c

Edit: Late.. :)

bejiita 04-06-2005 08:02 PM

hmm
 
ok Ive done that, and I get a response in the terminal of anonymous login success

then the mount point disappears

my line in fstab is as follows

\\192.168.1.107\mp3 /mnt/xp1 smbfs noauto,users,rw 1 0

what did I do wrong ?

Ook 04-06-2005 08:30 PM

This was my final command line that did exactly what I wanted:

mount -t smbfs -o guest //10.0.0.12/c /mnt/zootal/fat-c

I stuck this in my rc.local instead of smb.conf

Thanks :)

killerbob 04-06-2005 09:26 PM

Probably not a good idea to have it in your rc.local. It'll work, but meh.


Bejiita, your problem is the backslashes, and the lack of the "guest" option. I misspoke earlier, when I posted mine. I was reconstructing it from memory....

For you, it looks like it should be:
//192.168.1.107/mp3 /mnt/xp1 smbfs noauto,users,rw,guest 1 0

With the noauto, it will not mount at bootup. You need to type "mount /mnt/xp1" as a user. I've found that's necessary if I'm going to be able to upload as well as download, but YMMV.

subekk0 04-06-2005 09:30 PM

a command that might work a little better for you and be a little more secure would be:
mount -t smbfs -o username=name,password=password,workgroup=workgroup //machine/share /mnt/mntpoint

Add this to a script that is only executable by you and then add that to /usr/local/bin and when you want to connect to the drive just type in the name of the script at the # and then voilla!

Ook 04-06-2005 10:41 PM

Quote:

Originally posted by killerbob
Probably not a good idea to have it in your rc.local. It'll work, but meh.
Yeah, I agree, but I didn't know how to translate it to an fstab entry, and I was rushed for time :(

bejiita 04-07-2005 04:17 PM

it would seem that its all working. my only concern is after it is mounted /mnt/xp1 disappears from the /mnt directory

maybe its a permissions issue on the directory ??

subekk0 04-08-2005 12:24 PM

Quote:

Originally posted by bejiita
it would seem that its all working. my only concern is after it is mounted /mnt/xp1 disappears from the /mnt directory

maybe its a permissions issue on the directory ??

yep. check your permissions on the Windows share. If you add whatever user you are on Slackware to the users on Windows it should resolve the issue. However, you should also check the permissions on /mnt/xp1 directory and make sure that the owner and group are correct.


All times are GMT -5. The time now is 01:25 AM.