LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2007, 11:03 AM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
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?
 
Old 01-04-2007, 11:44 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 01-04-2007 at 12:37 PM.
 
Old 01-04-2007, 12:06 PM   #3
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
It's telling me my connection to hpm failed.
 
Old 01-04-2007, 12:32 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
"hpm" is the hostname on my LAN that I used as an example. Use the name of the other Linux host on your network.
 
Old 01-05-2007, 01:59 PM   #5
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
Doh!! Had a brain fart then.

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?
 
Old 01-05-2007, 04:00 PM   #6
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
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...

Code:
//linux/MP3   /home/chris/Desktop/MP3   smbfs   cred=/home/chris/.credentials  0 0

Do I need to specify the workgroup as well? Or is there something else I am missing? Any ideas?
 
Old 01-05-2007, 11:45 PM   #7
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
I got it working now, thanks again.

Last edited by Basslord1124; 01-06-2007 at 09:25 AM.
 
Old 01-06-2007, 03:43 PM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I'm glad you have got it running.

Quote:
Originally Posted by Basslord1124
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.

Last edited by jschiwal; 01-06-2007 at 03:47 PM.
 
  


Reply



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
couple X and Gnome related questions uzairkhan Linux - Newbie 2 04-07-2005 04:34 AM
a couple of email related questions dschobel Linux - Software 2 03-16-2004 04:28 PM
A couple of driver related questions defubar Slackware 4 02-03-2004 11:31 PM
couple of questions (sound and x windows related) mastershake Linux - Newbie 3 12-12-2003 04:55 PM
A couple of smbmount questions dbaker Linux - Networking 3 06-22-2003 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:39 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
Open Source Consulting | Domain Registration