LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount -t cifs fails, nautilus connects successfully (https://www.linuxquestions.org/questions/linux-newbie-8/mount-t-cifs-fails-nautilus-connects-successfully-848565/)

tennis_slacker 12-05-2010 10:00 PM

mount -t cifs fails, nautilus connects successfully
 
1 Attachment(s)
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!

gd2shoe 12-06-2010 04:18 AM

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.

tennis_slacker 12-06-2010 08:18 AM

Thanks! The uid,gid option fixed it. I could have swore that I tried that already. Live and learn.


All times are GMT -5. The time now is 07:09 AM.