FS#27948 - [cifs-utils] Update to mtab in 'filesystem' breaks mounting/unmounting of SMB shares
Attached to Project:
Arch Linux
Opened by Curtis (foxcm2000) - Sunday, 15 January 2012, 17:26 GMT
Last edited by Tom Gundersen (tomegun) - Tuesday, 13 November 2012, 17:54 GMT
Opened by Curtis (foxcm2000) - Sunday, 15 January 2012, 17:26 GMT
Last edited by Tom Gundersen (tomegun) - Tuesday, 13 November 2012, 17:54 GMT
|
Details
Description:
For a long time I've been using openVPN and SAMBA to mount shares from a SAMBA server for work. I went through the process of putting entries into fstab so that I could just mount/unmount as a regular user dynamically, since I only wanted to mount the shares for short periods of time. This setup worked fine for over a year up until the newest round of updates to the filesystem package that nuked /etc/mtab and replaced it with a symlink to /proc/self/mounts. Now, I am able to mount the directory as a regular user just fine, but if I try to unmount the share, I get this error: umount /mnt/public umount: only root can unmount //192.168.XXX.XXX/public from /mnt/public I've read of multiple people online who have had similar issues. I've tried adding/removing trailing '/' characters from the directory paths, but nothing seems to help. Then I ran across some posts stating that if the '/etc/mtab' file is a symlink and not an actual file, the mount program will get confused and think there is an error in the entries and refuse to unmount the share. I have to unmount as the superuser, which is not a very good solution. So my question is, now that mtab is not supposed to be a real file, how do we fix this problem? Not being able to mount/unmount shares that are clearly part of the fstab is a real bug that should be addressed. Is there a better command to use than mount/unmount that knows how to use the new /proc/self/shares configuration? Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
umount: only root can unmount //192.168.XXX.XXX/public from /mnt/public
Notes:
1. I have the 'user' option specified in fstab, and the mount command still works fine, just the unmount fails.
2. I have tried adding/removing a trailing '/' from the network path in fstab, but the results are the same either way.
I just noticed that if I mount the share manually from the command line with the uid=<username> option, then it does set the ownership correctly. However, the exact same arguments in fstab get ignored and it doesn't work when I just mount the share directly.