LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-05-2010, 11:00 PM   #1
tennis_slacker
Member
 
Registered: Apr 2008
Location: Idaho
Distribution: Slackware
Posts: 92

Rep: Reputation: 17
mount -t cifs fails, nautilus connects successfully


I have a CentOS server box with a guest or public samba share:

Code:
[public]
        comment = Home Media Share
        path = /home/smbroot/public/Media
        public = no
        writable = yes
        write list = @public
        guest ok = yes
        create mask = 0660
        directory mode = 0770
        vfs objects = recycle
        recycle:exclude = *.tmp, *~, *.bak
        recycle:keeptree = yes
        recycle:repository = .trash
        recycle:directory_mode = 0770
        recycle:versions = yes
I can connect to it perfectly on Windows and I can browse and connect to the public share in Linux using Nautilus. However, trying to mount the share with cifs seems to work but when I try to view the contents of the share I get the attached error message. My fstab looks like this:

Code:
//server/public /media/public cifs guest,_netdev 0 0
I've been searching for a solution for a few hours and just don't understand what the problem is. Thanks!
Attached Thumbnails
Click image for larger version

Name:	smbError.png
Views:	11
Size:	10.9 KB
ID:	5401  
 
Old 12-06-2010, 05:18 AM   #2
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Some filesystems don't support Unix permissions. When that happens, the default owner seems to be root, and all other users get locked out. (overly strict permissions to remain on the safe side)

This can be solved in at least two ways.

(1)uid and gid options ('uid=myUsername,gid=myGroup')
All files and folders will now appear to be owned by you.

(2)Setting lenient default permissions (Something like: file_mode=0666,dir_mod=0777)
Files will still be owned by root, but all user accounts on the machine will have free reign.
 
Old 12-06-2010, 09:18 AM   #3
tennis_slacker
Member
 
Registered: Apr 2008
Location: Idaho
Distribution: Slackware
Posts: 92

Original Poster
Rep: Reputation: 17
Thanks! The uid,gid option fixed it. I could have swore that I tried that already. Live and learn.
 
  


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
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 44 02-26-2016 01:45 PM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 03:48 PM


All times are GMT -5. The time now is 09:11 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