couple quick networking questions....smbmount and vsftp related....
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
couple quick networking questions....smbmount and vsftp related....
Ok, first question... since I recently converted my former Windows XP machine over to a now dual boot of Slackware/XP, I am having some issues trying to get Slackware to connect to my Samba server. The Samba server is actually another Slackware box. Now before when I had Windows, I set up Samba as such and all was well, but I am having a hard time getting the Slackware desktop to connect. For sake of simplicity, I made sure and used the same IP and user/password combination on the new desktop. But I have never technically done a Linux machine connected via Samba to another Linux machine, so I am wondering if my issue is command syntax. Here is the command I entered:
Code:
mount -t smbfs //linux/share/MP3 /home/chris/Desktop/MP3
It then proceeds to prompt for a password...I enter it in....and it gives me this:
Code:
17642: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed
I can't see how the share name could be invalid though, as those are the names of the directories and all. I have also heard it suggested that NFS is better for Linux to Linux file sharing.
Now onto FTP...I was transferring some files last night from my Slack server (which runs vsftp) to my Slack desktop. It was probably a good 3-4GB worth of info. The transfer begins and all goes well...but once it reached about 90% it just quits and I have no idea why. It's not the desktop app or anything, but it's like the server just disconnects. Any ideas?
Check what the service names are with smbclient to check the service names:
Code:
smbclient --list hpm
Password:
Domain=[HPMEDIA] OS=[Unix] Server=[Samba 3.0.23d-6-1083-SUSE-SL10.2]
Sharename Type Comment
--------- ---- -------
profiles Disk Network Profiles Service
print$ Disk Printer Drivers
media Disk MediaShares
IPC$ IPC IPC Service (Samba 3.0.23d-6-1083-SUSE-SL10.2)
hplaser Printer hp_color_LaserJet_3550
Domain=[HPMEDIA] OS=[Unix] Server=[Samba 3.0.23d-6-1083-SUSE-SL10.2]
Server Comment
--------- -------
Workgroup Master
--------- -------
JESNET HPMEDIA
Create a credentials file in your home directory that only you can read:
ls -l .credentials
-rw------- 1 jschiwal jschiwal 38 2006-07-24 14:51 .credentials
jschiwal@hpamd64:~> cat .credentials
username=yourusername
password=yourpassword
Then use the option "cred=/home/<username>/.credentials" in the mount command.
Also, read through "man mount" and "man fstab". You may want to use "cifs" instead of "smbfs" as the type as well. Using a credentials file is recommended so that the mount command line that shows up in /proc/<proc#>/cmdline doesn't contain your username and password.
I gave the overall command a whirl in terminal but it still prompts for a password. Once the password is entered it works fine of course. I have not put the command in fstab yet so I am not sure if it will prompt for a password there when it loads. I am not too familiar with CIFS but I did try that type in the command and it tells me my password is too long. Is CIFS limited to so many characters in the password?
Thanks for your help so far though. Much appreciated.
I also noticed that my shares show up in Konquerer when I go to Samba shares, my Workgroup, and then the server. Is there a way I could create a shortcut/link to that possibly?
All right I have given the changes in fstab a try and for some reason it's not working. It acts like it mounts b/c immediately after I save fstab, a windows pops up asking about a new mounted network drive. I try and browse the directory but it's like it ignores the mount point I had defined...it pulls up like /media/MP3 or something (which that directory doesn't exist). I am trying to set the mount point to a directory on my Desktop. And when it does mount, no files exist which I know there are files in there. I have tried a couple various other options as well (mainly auto,rw,user....etc) but it doesn't seem to work. This is the way it sits now...
I also noticed that my shares show up in Konquerer when I go to Samba shares, my Workgroup, and then the server. Is there a way I could create a shortcut/link to that possibly?
You should be able to enter "smb://host/service" in konqueror without having to enter the workgroup. Make sure that the nmbd service is running. If you have the server configured to function as a WINS server, make sure its winbind service is running.
You can drag a share onto the desktop, but I don't know it you first need to connect normally before it will work. That is to say, I don't know if it will only work if the session is already setup, or if it will ask for a password and then open. You could experiment with it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.