Issues with mount_shares_locally

techlife
Posts: 63
Joined: Sat Dec 18, 2010 3:26 pm

Issues with mount_shares_locally

Postby techlife » Sat Jan 21, 2012 11:27 am

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!!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Issues with mount_shares_locally

Postby bigfoot65 » Sun Jan 22, 2012 7:24 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

techlife
Posts: 63
Joined: Sat Dec 18, 2010 3:26 pm

Re: Issues with mount_shares_locally

Postby techlife » Sun Feb 26, 2012 8:59 pm

Yes, I did. I figured it out though: chmod +s /sbin/mount.cifs and now it works.

Who is online

Users browsing this forum: No registered users and 18 guests