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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-19-2009, 02:18 PM
|
#1
|
LQ Newbie
Registered: Jun 2009
Location: Kitchener, Ontario
Distribution: Ubuntu Server Edition 8.04
Posts: 5
Rep:
|
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.
|
|
|
11-19-2009, 03:20 PM
|
#2
|
Member
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400
Rep:
|
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?
|
|
|
11-20-2009, 08:44 AM
|
#3
|
LQ Newbie
Registered: Jun 2009
Location: Kitchener, Ontario
Distribution: Ubuntu Server Edition 8.04
Posts: 5
Original Poster
Rep:
|
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!
|
|
|
11-23-2009, 03:47 PM
|
#4
|
LQ Newbie
Registered: Jun 2009
Location: Kitchener, Ontario
Distribution: Ubuntu Server Edition 8.04
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|