LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2005, 02:47 PM   #1
kriidler
Member
 
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85

Rep: Reputation: 15
Unhappy SMB4K won't mount WinXP's shared folders


Hi all.

I've got a question to do with smb4k. We've got 2 pcs that's connected on a LAN, mine with Mandrake/Slackware and the other with WinXP. I can see the other pc in /mnt but I can't copy/move etc. files that are shared on the WinXP pc. Smb4k worked fine until we got our internet access. I access the internet thruogh the internal mode on the WinXP pc. If I run Smb4k, it sees the other pc but wont mount any of the shared folders.

I'm using Mandrake 10.0 and Slackware (on which I can't even get Samba to work! )

What's wrong and how do I fix it?
K
 
Old 05-27-2005, 02:04 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
what error do u get on mounting them??
 
Old 05-27-2005, 02:33 PM   #3
kriidler
Member
 
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by masand
what error do u get on mounting them??
Hi.
Well I'll tell it to you this way:
1) I open smb4k (kmenu>Internet>File Transfer>Smb4k)
2) I navigate in smb4k to the other pc's name (eg. MSHOME>PC2), and expanding the folders in the left-hand pane.
3) I then right-click on the appropriate folder (C) and on mount
4) It briefly displays the folder in the right-hand pane and thats all I get.

When I look for it in /home/user/smb4k/, there's nothing.
It's supposed to mount the network drive on ~/smb4k/.

K
 
Old 05-27-2005, 10:52 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
does that win machine require some username/password
or does it allow anonymous sharing
 
Old 05-27-2005, 11:15 PM   #5
kriidler
Member
 
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85

Original Poster
Rep: Reputation: 15
Hi,
The shared folders is set up to allow for a remote user to be able to modify/delete and create. Before we got our internet access, I didn't need a username and password, if that answers your question?

K
 
Old 05-28-2005, 12:21 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi

can u mount that from the shell

regards
 
Old 05-28-2005, 12:58 AM   #7
kriidler
Member
 
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
can u mount that from the shell
how would I do that?
 
Old 05-28-2005, 01:05 AM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
u can see the shares by

smbclient -L <ip addressm>

mount that by

smbmount '//<ipadress>/sharename' <mount path>

regards
 
Old 05-28-2005, 01:31 AM   #9
kriidler
Member
 
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by masand
u can see the shares by

smbclient -L <ip addressm>

mount that by

smbmount '//<ipadress>/sharename' <mount path>

regards
Hi.
This is what I got:
[user@MyPC user]$ smbclient -L 999.888.000.001
Password:
Domain=[PC2] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
SharedDocs Disk
hpoffice Printer hp officejet 4200 series
C Disk
hpoffice.2 Printer hp officejet 4200 series (Copy 1)
temp Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
Printer Printer Microsoft Office Document Image Writer
hpfax Printer hp officejet 4200 series fax
session request to 999.888.000.001 failed (Called name not present)
session request to 999 failed (Called name not present)
Domain=[PC2] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------
Workgroup Master
--------- -------

[user@MyPC user]$ smbmount '//999.888.000.001/C' /home/user/smb4k/PC2/C
Password:
 
Old 05-28-2005, 02:30 AM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
C$ is a default share u need to have adminstartaive password for that

smbmount '//999.888.000.001/C' /home/user/smb4k/PC2/C -U<username of windows machine>

regards
 
Old 05-28-2005, 07:47 AM   #11
kriidler
Member
 
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by masand
C$ is a default share u need to have adminstartaive password for that

smbmount '//999.888.000.001/C' /home/user/smb4k/PC2/C -U<username of windows machine>

regards
Hi again.

I tried that and now I have access to the shared folders on the other pc , 2 more questions though.

1) Do I have to mount the shared folders this way every time (in a console with the commandline)?
2) How do I unmount the shared drives? I opened smb4k and tha shared folders were indicated in the left pane, but when I clicked on unmount I got the error that "the device or resource is busy "
 
Old 05-28-2005, 09:25 AM   #12
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
close all open works on that shared folder

unmount <mount path>

also u need to configure ur smb4k for this,if u want to go through the GUI mode

regards
 
Old 05-28-2005, 10:05 AM   #13
kriidler
Member
 
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by masand
[B]close all open works on that shared folder
- did that


Quote:
unmount <mount path>
- told me it "is not in the fstab (and you are not root)"

Quote:
also u need to configure ur smb4k for this,if u want to go through the GUI mode
- would prefer that, how would I go about it?

K
 
Old 05-28-2005, 12:48 PM   #14
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
i do not have much exp. on smb4k i prefer cmd. mode
look for puting some username/password

regards
 
Old 05-28-2005, 01:55 PM   #15
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Hi kriidler,

I used smb4k when I first came back to Linux - I looked for an SMB utility that worked because at the time KDE's SMB browser/mounting mechanism was very flaky.

What I found was that smb4k does work, but it is very buggy, has memory leaks, high CPU utilization, and will sometimes hang during the unmounting process. KDE has since been fixed and it works very, very well, but when working in development environments on shares it's far easier to have the share bound to a mount point (e.g,, have it mounted) so I went back to old school shell prompt even for daily tasks.

With that said, smb4k is nothing more than a front end to smbmount and smbumount. However I use mount/umount since it allows me to provide additional options to the mount in addition to smbfs'

How to mount from a shell prompt using mount:

In this example: \\winserver\public used to be P: on Windows
\\winserver is the server hostname, \public is the sharename
active directory username = kim@domain.local
active directory password = foo
/mnt/public will be the mount point, with attributes drwxrwxrwx (777)

1. First create or choose your mount point, for example, I created /mnt/public with permissions of 777 for what USED to be my P: drive in Windows nomenclature

2. type the following (as root or su to root):
Code:
mkdir /mnt/public
chmod -R 777 /mnt/public
mount //winserver/public /mnt/public -t smbfs -o username=kim,password=foo -o gid=users,dmask=777,fmask=777,rw

This mounts the \\winserver\public share on /meow using the smbfs filesystem, using the Active Directory (Windows) username kim, password foo, making all newly created files under the users group, and applying permissions of 777 (world, group, and user-writable, readable, executable, etc).

Naturally once you get the knack of mounting the share, you will want to knock the permissions down only to what you need, but for the short time you are staging (testing) this process you can use the open permissions to test creation/deletion of directories and files as a normal user.

Last edited by KimVette; 05-28-2005 at 01:59 PM.
 
  


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
Can't mount windows shares with smb4k Stevetgn Linux - Newbie 3 10-14-2005 12:51 AM
Shared Folders dudeman41465 Linux - Security 1 06-28-2005 06:38 PM
Shared Folders dudeman41465 Linux - Networking 2 06-27-2005 02:29 PM
Is auto-mount is possibble with smb4k? hope_tr Linux - Networking 1 12-01-2004 01:10 PM
Can Linux access WinXP's shared folder? davidas Linux - Newbie 5 04-17-2004 04:48 AM


All times are GMT -5. The time now is 04:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration