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 11-19-2009, 02:18 PM   #1
JAgla
LQ Newbie
 
Registered: Jun 2009
Location: Kitchener, Ontario
Distribution: Ubuntu Server Edition 8.04
Posts: 5

Rep: Reputation: 0
Help to mount remote samba share in fstab.


Server: Ubuntu Server Edition 8.04
/currently firewalled to only allow client ip

Client: Ubuntu Desktop 8.04
/currently firewalled to only allow server ip

Same userid and groups set up on on both.

I have taken two linux courses and can maneuver around fairly well, but am still pretty newbie at all this. We have loaded Samba on a server and created a Samba share. I AM able to access that share via Windows Vista, but have not been able to successfully mount the share on the Ubuntu desktop via the fstab file. I have tried the following ways:


serverip:/path/shareddirectory /net ext3 user,sync 0 0

and the samba way..

//serverip/sharename /net smbfs username=x,password=x


After modifying fstab, I reboot. No luck since that either way.
Only ONCE after modifying it samba way, I was prompted to enter credentials, but after login I was unable to view the files on the server. From this point on either way, if I run commmand 'mount -a' the response is "Special device serverip:/path/sharedirectory does not exist"

Also! I am able to ping client-to-server, but not server-to-client. Is there something obvious I'm missing??

Last edited by JAgla; 11-19-2009 at 02:19 PM.
 
Old 11-19-2009, 03:20 PM   #2
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
serverip:/path/shareddirectory /net ext3 user,sync 0 0 is for NFS, so lets get ride of that.

Then I would say,

1. Try it with smbclient. smbclient --help or man smbclient to see how to use it, pretty straight forward.
2. Check your log files. /var/log/samba/ or something like that, just look for the samba log files to see why it can't mount it when booting.

//serverip/sharename /net smbfs username=x,password=x < Do you have ,auto, in the line of options for that?
 
Old 11-20-2009, 08:44 AM   #3
JAgla
LQ Newbie
 
Registered: Jun 2009
Location: Kitchener, Ontario
Distribution: Ubuntu Server Edition 8.04
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for responding Dave, I'll try these steps as soon as I get a window of opportunity at work today and give you an update. Appreciated!
 
Old 11-23-2009, 03:47 PM   #4
JAgla
LQ Newbie
 
Registered: Jun 2009
Location: Kitchener, Ontario
Distribution: Ubuntu Server Edition 8.04
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry for delay, only small amount of time scheduled at work for this project. You are right, I didn't have the auto option - it's auto-mounting perfectly for me now. Thank you! I finally solved the server-to-client ping problem by correcting a typo in my client interfaces file.

I have read somewhere that you can add a 'credentials=[filename]' in the options area in fstab that would have reference to the username and password so it's not visible in fstab. When setting the security on that credentials file, what username gets the rights to the file so fstab can read it? Only the username that would need the mount rights?

Appreciate your support - helps us newbies to overcome our fear of the linux.
 
  


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
mount samba share at boot with fstab keyboard1973 Linux - Server 2 09-04-2008 03:27 PM
Remote Mount a Samba Share vcatalano Linux - Security 3 08-16-2008 07:40 PM
Can't mount nfs share from fstab but can mount it manually - help Mountain Linux - Networking 1 03-30-2008 09:34 PM
shell script to mount samba share with " " in the remote path dohpaz Programming 2 10-20-2006 03:18 PM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 09:00 AM


All times are GMT -5. The time now is 08:41 PM.

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