Fedora Linux Support Community & Resources Center
  #1  
Old 11th February 2010, 01:55 PM
dkalna Offline
Registered User
 
Join Date: Aug 2007
Location: Bern, Switzerland
Age: 40
Posts: 13
linuxfedorafirefox
mount.cifs after update not working

hi there,

- my windows shares were working fine, since there was aktualization they don't any more
- i have Fedora 12
- my /sbin/mount.cifs und /sbin/umount.cifs have 777 permissions

when I execute my mount with normal user:

/sbin/mount.cifs //sdvbdta01/KADA/ /home/kada/dvb-shares/persoenlich -o user=kada,dom=dvbern,pass=$PASSWD

I get this error:

/sbin/mount.cifs: permission denied: no match for /home/kada/dvb-shares/persoenlich found in /etc/fstab

When I execute that mount with root then it works, but I can't edit documents on that share with normal user

Any ideas what am I doing wrong? Thanks a lot.
Dalibor
Reply With Quote
  #2  
Old 11th February 2010, 05:30 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,209
linuxfedorafirefox
The most recent update to samba-client, which provides the files mount.cifs and umount.cifs crippled the ability of those two commands to be run as a regular user, either by changing permissions or using set userID. Refer to this thread for a bit more information about this.

At least one user in that thread downgraded a couple of the samba packages to the previous version in order for his scripts (run as regular user) to continue to work to "mount.cifs" windows shares. I also have a script that I run as a regular user that calls "mount.cifs", which no longer worked after the update.

My solution was not to downgrade the samba packages, but to download the previous version of samba-client, extract the rpm package using rpmdev-extract into a folder in my home directory and then copy mount.cifs and umount.cifs from there into /usr/local/bin/, changing both to set userID (chmod 4755 /usr/local/bin/mount.cifs), and edit my script to call /usr/local/bin/mount.cifs instead of /sbin/mount.cifs..

Last edited by PabloTwo; 11th February 2010 at 05:33 PM.
Reply With Quote
  #3  
Old 12th February 2010, 08:27 AM
dkalna Offline
Registered User
 
Join Date: Aug 2007
Location: Bern, Switzerland
Age: 40
Posts: 13
linuxfedorafirefox
Thanks man, you are my hero, it works again!
Reply With Quote
Reply

Tags
mountcifs, update, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mount.cifs does not allow non-root users to mount jb567 Servers & Networking 7 12th June 2007 03:02 AM
trying to mount Windows share with mount -t cifs worldttle Servers & Networking 1 11th March 2007 05:22 PM
mount -t cifs not working in FC5 bobpeers Servers & Networking 17 9th August 2006 02:36 AM
non-root cannot mount user cifs mount point rgladwell Servers & Networking 2 6th August 2006 05:50 PM
user option not working with mount.cifs rgladwell Using Fedora 0 11th June 2006 12:02 PM


Current GMT-time: 09:43 (Saturday, 20-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Creek Side - Stockholm-Arlanda Airport (ARN) Travel Photos on Instagram - Marina of Koper Travel Photos - Te Whiti Park Instagram Photos - Texas State Fair Photos on Instagram