LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-10-2013, 04:44 PM   #1
brainard
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
Unhappy mounting samba share on ubuntu 12.10 server on to ubuntu 12.10 desktop


Hello,

This is my first post and I'm a bit of a Linux n00b. I'm having trouble auto mounting a shared file located on Ubuntu 12.10 server. I'm trying to mount the file on Ubuntu 12.10 desktop. I've been working on this off and on almost all week and have implemented every fix I could find online.

The error messages is:
If I click on the mounted shared file located on the "side bar" on the desktop nothing happens. Nothing opens and no messages are displayed. However, if I go through network browser and click on the file I can access the it without any restrictions - I can copy, paste, save, whatever. Also I have a windows xp computer on the network that can access the shared files without any problems at all.

When I run sudo mount -a I get the error message:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

If I try to click on the shared file in the network browser I get the the error:
mount: only root can mount //192.168.2.120/omgdocuments on /media/samba_share

I've checked the manual and as many websites as I could find that reference those errors. And have implemented all of the fixes I found. But I'm still getting the same two error messages.

Currently the applicable section of the fstab file looks like this:
# Samba share cifs - omgdocuments
//192.168.2.120/omgdocuments /media/samba_share cifs credentials=/home/desktop001/.smbcredentials,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

The ~/.smbcredentials file looks like this:
username=name of the user on the server
password=password of the user on the server

I have made the dir /media/samba_share and have set the permissions 0777. Also at one point this weekend I made sure the file was owned by the user and then, out of frustration, I gave the user root access.

Normally I would just access the file via network browser, but this is for work and the person using the computer isn't smart enough to click on a few files to access her work. So I really need to find a way to make it simple to access the network files. Either auto mounting the file or I'm open to any and all recommendations. (Is is possible to just put a link to the "network borwser" file on the desktop?)

I'm a little worried that I've tired to implement to many "fixes" and have messed up some other setting that's causing these errors. Sorry if my terminology is incorrect or if I didn't make the issue clear. If you have any questions please ask and I will do my best to answer. Thank you very much for your help.
 
Old 03-12-2013, 09:00 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
I have made the dir /media/samba_share and have set the permissions 0777
What user owns samba_share ? If its owned by root, that may be your problem. I usually mount samba shares in the a /home dir. You can try chown to some group, and add the user to that group.
 
1 members found this post helpful.
Old 03-14-2013, 02:04 PM   #3
brainard
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello camorri,

Thank you very much for the quick reply. I had already made sure the owner of the share was the group and user that was trying to mount the share. I even created a new group and user and gave ownership to them. That was one of the first things I tried.

Because no data was saved on the desktop (everything is on the server) I ended up just removing the current install and reinstalling everything. It's working perfect now. I used the same setup I did before so I'm not sure what the problem was, however I'm sure it was just a stupid mistake. I must have overlooked something simple.

But thank you so much for the reply. I agree with what you said and will make share folders in /home/something from here on out. That will def prevent root access errors.

I'm new to posting - is there a way I can give you a +1 or something for your reply?
 
Old 03-14-2013, 02:35 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Glad its working for you now.

Quote:
is there a way I can give you a +1 or something for your reply?
Clicking on "Did you find this post helpful?" adds to the posters reputation. I see you did, thank-you.

Since this is now resolved, we ask the original poster to mark the thread 'Solved'. You do that by using the Thread Tools at the top, there is a Solved button. Only the OP can mark a thread solved.
 
1 members found this post helpful.
  


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
LXer: How to upgrade from Ubuntu 10.04, 10.10 to Ubuntu 11.04 Natty Narwhal | Desktop & Server LXer Syndicated Linux News 0 04-01-2011 04:00 AM
How can I edit files remotely from LAMP Ubuntu Server with Ubuntu Desktop? pyrospade Linux - Server 4 11-27-2010 03:07 AM
Help Needed: Share windows partitions on Ubuntu server from Ubuntu Client? dblaisde Linux - Networking 1 07-12-2010 05:31 PM
Ubuntu Laptop not seeing Samba shares from Ubuntu Desktop semin00b Linux - Newbie 1 09-21-2009 03:52 PM
Mounting Windows share in Ubuntu 9.04 Arancaytar Linux - Networking 2 05-19-2009 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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