Page 1 of 1

Issues with mount_shares_locally

Posted: Sat Jan 21, 2012 11:27 am
by techlife
As the title implies, I am having issues with mount_shares_locally. (I'm on f12). I was originally getting the following:

Code: Select all

$ service mount_shares_locally start Mounting Samba shares locally: /sbin/mount.cifs: permission denied: no match for Backups found in /etc/fstab /sbin/mount.cifs: permission denied: no match for Documents found in /etc/fstab /sbin/mount.cifs: permission denied: no match for Movies found in /etc/fstab /sbin/mount.cifs: permission denied: no match for Music found in /etc/fstab /sbin/mount.cifs: permission denied: no match for Pictures found in /etc/fstab /sbin/mount.cifs: permission denied: no match for Software found in /etc/fstab /sbin/mount.cifs: permission denied: no match for TV found in /etc/fstab /sbin/mount.cifs: permission denied: no match for Videos found in /etc/fstab /sbin/mount.cifs: permission denied: no match for XBMC Shared Data found in /etc/fstab touch: cannot touch `/var/lock/subsys/mount_shares_locally': Permission denied [ OK ]
After some googling, I found a possible solution by

Code: Select all

chmod u+s /sbin/mount.cifs
Which made an ever bigger mess. Now I get:

Code: Select all

$ service mount_shares_locally start Mounting Samba shares locally: This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program. This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program. This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program. This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program. This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program. This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program. This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program. This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program. This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program. touch: cannot touch `/var/lock/subsys/mount_shares_locally': Permission denied [ OK ]
So...how do I undo the chmod (if necessary) and how do I get this to work?

Thanks in advance!!

Re: Issues with mount_shares_locally

Posted: Sun Jan 22, 2012 7:24 pm
by bigfoot65
Did you follow the wiki guidance exactly? Also check the permissions on your shares. They all need to be owned by your first admin user, not root.

Re: Issues with mount_shares_locally

Posted: Sun Feb 26, 2012 8:59 pm
by techlife
Yes, I did. I figured it out though: chmod +s /sbin/mount.cifs and now it works.