Linux - NewbieThis 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
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.
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.
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! )
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/.
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?
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
--------- -------
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 "
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.