Mount -o users doesn't work as intended, why not?

I'm trying to modify some of the udev rules in the Arch wiki to work better for my setup. So I have this as /etc/udev/rules.d/11-media-by-label-auto-mount.rules:
BUS!=usb, KERNEL!="sd[a-z]*", GOTO="media_by_label_auto_mount_end"
# Import FS infos
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# Global mount options
ACTION=="add", ENV{mount_options}="noatime,users"
# Filesystem-specific mount options
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
# Mount the device
ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
# Exit
LABEL="media_by_label_auto_mount_end"
And it mounts usb sticks just fine. Problem is, I still get a permission denied error when trying to unmount them, despite using the "users" mount option, which is supposed to let *any* user unmount the device.
So I tried mounting the stick manually with the users option...
# mount -o users /dev/sdb /mnt
And still got the error on trying to unmount it:
$ umount /dev/sdb
umount: /dev/sdb is not in the fstab (and you are not root)
So it looks like the users option is not working the way the fstab man page says it should. What am I doing wrong here?
Edit: the users mount option works fine for CDs. Is there a way to make it work for USB sticks, or am I just stuck?
Last edited by Gullible Jones (2011-01-07 23:37:01)

Thanks... Kind of strange, that. Is there a way to use pmount and give unmount permissions for all users, so that I don't have to do the silly mount-as-a-specific-user thing?
Edit: Oh N/M, just unmounting with pumount works great. Thanks!
Last edited by Gullible Jones (2011-01-08 00:24:58)

Similar Messages

  • I have updated to Mac X 10.6.8, now You Tube doesn't work in Firefox; why not?

    Firefox told me for safety reasons I needed to update the OS on my Mac which I did.
    Now You Tube doesn't work in Firefox (though it does in other browsers)
    On line I have have found an add-on which claims to fix the problem, but it comes with warnings that there might be safety issues. (Author not verified)
    My OS system is up to date, as is Firefox.
    Shall I just use another browser?

    Try to update the Flash player.
    *https://support.mozilla.org/kb/Managing+the+Flash+plugin
    *http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/
    *http://helpx.adobe.com/flash-player.html

  • My iPhone 4 camera doesn't work the shutter is not opening. How to fix it?

    My iPhone 4 camera doesn't work the shutter is not opening. How to fix it?

    iPhone User Guide
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these Steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • VMWare Fusion partition software doesn't work in Yosemite, why?

    VMWare Fusion partition software doesn't work in Yosemite, why?

    Very outdated. You need V7
    And FYI, this software has nothing to do with partitioning, it neither creates nor needs one.

  • Purchased tab in "App Store" app doesn't work when AppleID is not an email address.

    After updated my iPhone and iPad to iOS 6 (both 6.0&6.0.1), Purchased tab in "App Store" app doesn't work when AppleID is not an email address. This happened since 6.0 and I hope that it will be fixed in6.0.1 but it doesn't.
    When I tap at Purchased tab in iPad App Store or Purchased bar in Updates tab in iPhone App Store, it just hang on "Loading...", but when I changed to other AppleID, it works. Apparently, my AppleID is not an email address but the other AppleID is an email address.
    Not sure where to send my feedback to Apple about this issue.

    http://www.apple.com/contact/feedback.html

  • If your top bottom on the iPhone doesn't work and it's not insured can Apple do anything?

    If your top bottom on the iPhone doesn't work and it's not insured can Apple do anything?

    If you are talking about the sleep/wake button then the answer is yes. You will have to pay the out of warranty fee for replacement
    $149+tax

  • With previous editions of iTunes for Windows, I could play a CD at the same time as it was being imported. That does not work anymore. Why not, and is there a way to do both with the most current version?

    With previous editions of iTunes for Windows, I could play a CD at the same time as it was being imported. That does not seem to work anymore. Why not, and is there a way to do both with the most current version? I am running a Surface Pro 2 with Windows 8.1 and the most recent vesion of iTunes, which, in all other respects, works well. I just can't listen to an album for the 1/2 to 1 hour that it takes to import it into my library.

    Two JVM's ? I thought that J2EE worked within a single JVM and run everything in containers. Can you see the two processes?

  • POST built in - Umm, this is the worst and doesn't work as intended..

    Win XP, oracle 10gR2
    POST really likes to save my changes.
    I post a block, and then goto my next form.. and I use another session with another login to view the data and it has already been comitted.
    This may have worked back in Client Server as intended , but it is surely lacking on the web forms.
    My form forms coworker said I'll just go busting my brains out trying to get it work, and he never got it work either, and said post doesn't do what you think it is supposed to do.
    He thinks we had problems with it even back on Client Server.
    Can anyone else confirm?

    Hello,
    Very easy to test.
    Create a basic form on the emp table, do some changes
    then post.
    Open another session with Sql*Plus or Sql Developer,
    then check if you see the changes or not.
    FrancoisI'll change my story to posting with "multiple forms" doesn't work.
    Form A - I make changes and POST.
    I call form B (the select form)
    I then call form C (edit screen) and make a change.
    I exit_form C, and say "NO" to forms asking me if I want to save changes.
    I exit_form B (no prompt, no base table block).
    In form A, I exit_form, and say "NO" to forms asking me if I want to save changes.
    I reenter the form A, and the value is changed to the new value.
    I just watched the column, and when I called form C - that's when the commit was performed. I see no commit's that were executed when calling for C.
    I am trying to avoid a frm-40403 (calling form has unapplied changes).
    Post isn't cutting it, so I plan to check the form_status and prompt the user if they want to commit (yes/no/cancel).."No" will cause an frm-40403 if they try to save in the form C. Of course if they say "yes" to commit, it will not have the problem in form C.
    I just checked, and I don't think I have any commits in Form C - if I did - I wouldn't get an FRM-40403 when I try to save in Form C.

  • Windows users doesn't work after migrating from old to new server!

    We have done a complete re-install on our XServe with OD. We have about 10 Windows users, and after the installation all their settings and mail are gone. All the "normal" files are there though.
    I'm not sure we have done it the right way though: We did a backup from the old server (a bootable copy with Super Duper), then we formatted and installed everything. We made new accounts (with different names if that's good to know) and copied the users home folders to the new location. The Mac clients seem to work good, but all the settings on the Windows clients are gone...
    Is there an easier way to this? We still have the workable copy from the old installation. There seems to be some kind of export/import way to do this, but I haven't got a clue how to do that...
    Please help!

    davidh,
    We didn't reintegrate smb.conf, but set the new server up just like the old one. We did however compare these files to see that the vital parts (netlogon, shares and so on, and of course basic settings) were correct.
    We also copied the user files and profiles and made them identical on the new server, except for placing them under the new usernames.
    Regarding the Local Settings folder, it doesn't exist on the old server, that's one of the weird things. We've checked the profile for a user on the client machine, and it is a roaming profile. That's why we're a bit puzzled as to why the login works and all files are there, but the user preferences and Outlook doesn't work.
    I know I've read somewhere that the Local Settings aren't replicated like the other files in a roaming profile, but I haven't finished checking up on that. I wouldn't expect anything else than that Windows takes care of Outlook e-mail for a roaming profile as well though; I mean, the user must be able to read his/her mail from any computer in the domain, what else would the purpose of a roaming profile be?
    Except for the weird thing about us not being able to find the user preferences or Outlook files for the client amongst the files on the server, I feel we're missing something; Apparently Windows isn't as straight forward as one would expect (not sure why I did expect anything, come to think of it).
    We're going to give it a new go next weekend. Except for doing further research we're thinking of copying /etc/smb.conf and the files in /var/samba and /var/db/samba to the new server, along with exporting and importing the old user accounts to the new server, and then see if everything works as expected.
    If so, we'll see if we can change the account names in a nice way, it's really desired to do so.
    If not, we really need to do some more research, but if I'm not mistaking, the Samba-related files I just mentioned are the ones that pretty much make up the Windows Services in OS X, isn't that so?
    Thanks!

  • Mount volume script doesn't work after upgrading to Yoesmite

    I just upgrade my Mac OS to Yosemite and the boot up mount script doesn't work again.
    try
    mount volume "afp://admin:[email protected]/Multimedia/Music"
    mount volume "afp://admin:[email protected]/workspace"
    end try
    Should I modify the mount script and how to do that?
    Thank you so much.
    Matthew Ho

    I am having the exact same problem. I just did a complete re-install of max os x and did all of the updates..my hard drive had crashed so i had to replace it. lot's of fun.. and after the last upgrade i can't use my sound at all.. the sound shows that it's all the way up but it has the "no Smoking" sign as well..
    i have tried to restart.. change options and whatever else i could .. i did notice that when i enable the option to show the sound icon on the main bar that there is just a blank spot where it should be.. and i can't change it form there either because it just doesn't show..
    any one seen this before.. ?
    all my other Mac's work fine..
    please help..

  • "Print page" doesn't work as intended when using lengthy tables. (Brother MFC 6490CW, possibly others)

    I had originally thought this was a printing driver problem, but further testing indicated that this was not a problem in Internet Explorer and it was a problem in Firefox.
    When printing some web pages using Mozilla Firefox, particularly those having sizable tables which would extend beyond the length of a single printed page, the remainder of the table is not printed even though the remainder of the web page itself is printed. The behavior is also noted when using Print Preview. See, for example, this web page which I created: http://alltherightwaystowrite.blogspot.com/2013/08/the-basics-capitalization.html
    I inquired of other bloggers to see if they were also experiencing this issue. See, for example, the discussion I began here: https://productforums.google.com/forum/#!msg/blogger/EpD6K2ezIZE/a5mPu8CV0HwJ
    As you can see, the only response I received indicated it was not an issue for that person with a different printer. This leads me to believe the problem is with either the MFC6490CW printer (unlikely) or the MFC6490CW printer driver (more likely) or perhaps with Firefox, or some combination of those three. This problem is duplicatable by me on successive attempts to print with any web page with a table extending beyond the length of a single page of printed paper. The output error occurs whether printing in portrait or landscape mode.
    Saving a web page as "Web Page Complete" and opening up the web page in Microsoft Word created a variety of formatting errors, but otherwise, the entire contents of the page would have printed. Of course, this is not an ideal solution in any event. The entire document should print seamlessly across multiple pages without losing any data or content in the process.
    As indicated above, as an additional test, I attempted to print the same web page in Internet Explorer and did not note the output errors described here. The web page printed correctly under those conditions. As a result, I believe that the most likely culprit is Firefox since Internet Explorer was also a good test case for my printer and printer driver, and it passed that test case.

    https://bugzilla.mozilla.org/show_bug.cgi?id=521204 - this is a META Bug which is tracking all the Bugs which are related to '''Wrong page splitting / Missing page content when printing''' - 34 different Bugs, 14 of which are marked as solved.
    IMO, that page would be better served with a print css script ''(as jscher2000 mentioned earlier)'' to make that a "printer ready" page, if wanting that page to be "printable" is your intention. As it now is that page is shrunk by about 50% with the "Shrink to Fit" feature engaged. Look at that page in Print Preview when the Scale is set to 100% instead of Shrink to Fit, and see that the page is so large that it shows that about 1/2 the width. Then decrease the zoom level in Print Preview to 50 or 60% to get that page to fit horizontally with the "Shrink to Fit" feature disabled. Looks like a case of "garbage in - garbage out".
    I think the css used for that page uses too large a font which ''(IMO)'' forces Firefox to shrink the font too much to make that page fit to a letter size sheet of paper. And relying first upon the Print to Fit feature in the four different major browser engines ''(Gecko, Trident, WebKit, and Presto)'' and then the hundreds of print drivers out there is just looking for failures such as you are seeing; it works for some viewers and doesn't work for other viewers. What appears on the '''"screen"''' doesn't always translate to the '''"printed page'''" too well without proper instructions via style sheets, especially since "screens" are oriented horizontally and most "printed" pages are vertically oriented unless the user shifts to the Portrait view.
    http://www.w3.org/TR/CSS2/media.html#media-types <br />
    http://www.w3.org/TR/CSS2/page.html

  • [iPhone] Calc.app builds fine, but doesn't work as intended

    Hi,
    Trying the Calc example in "Xcode Quick Tour for iPhone OS", I end up with an application that builds and launches fine in the iPhone Simulator, but that doesn't work.
    Did anyone try this example and did it work for you ?
    Here is what I observed :
    When I press a digit, the displayField's value isn't changed.
    Going in debug, I can see that the instance of the Calculator class does receive a message with the "input" selector and with the parameter "character" worth the digit that I pressed. The [_diplay appendString:character], but _display seems to keep being "nil".
    Any idea ?
    Many thanks in advance for your help,
    J.

    The Calc example worked well for me. The only bugginess I found was that if the text field is forced to reduce it's font size it never gets reset to the original size.
    Assuming you didn't touch the Calculator class files it's probably something simple. Check the IB connections, especially the connection between the displayField outlet and the UITextField. Maybe put a NSLog in the press method to check \[_calculator display\]. Of course if your Calculator class files are different from mine all bets are off, so if you don't have any luck we'll need to compare those.

  • Party Shuffle doesn't work as intended

    Hi,
    my brother's iTunes does not work as intended. His Party Shuffle lists songs in order of artists and their albums = it does not shuffle! Pressing the 'Shuffle' button does not change the order at all. Changing the shuffle logic slider in preferences does not affect at all. Rebooting or repairing permissions does not work.
    I have 2 iMacs with iTunes working great so I think I've tried everything. Is this a MacBook bug? Any suggestions?
    Thanks!
    -MacBook Intel (summer 2006)
    -Latest iTunes
    -repaired permissions

    I would suggest taking the Shuffle back to where you bought it from, if it is within the time frame given for exchanges. If you bought it at the Apple Store online, schedule a repair for the iPod at http://depot.info.Apple.com then choose the iPod service.

  • Sending in Mail doesn't work, Entourage does, Why?

    Sending emails in Apple's Mail doesn't work, yet Microsoft Entourage does, Why?
    This is the conversation I've been having with my server tech, and they can't find the reason why I can send mail in Microsoft Entourage no problem, yet Apple Mail receives but not able to send any email what so ever..
    Very frustrating.
    Carl Pepper said:
    2008-05-09 13:16:39 (UTC-7)
    I'm having a heck of a time trying to SEND emails on the SilverSpiritHomeServices.com system.
    I'm using a Mac.
    I can do it in Microsoft Entourage, yet I can't do it in Mac Mail (this is the program I need to be able to use).
    Receiving email it works fine, just sending it only works in Entourage.
    Rackspace said:
    2008-05-09 13:16:39 (UTC-7)
    Thank you for choosing Rackspace!
    This is just a quick note to notify you that we have received your support request. A member of your Fanatical(TM) support team will address your request as soon as possible. Should you need to update this ticket, please log into your myrackspace.com account and click on the Support tab or you may call us anytime at one of the below numbers. We're glad to do what we can to help in any way possible!
    Best Regards,
    Your Fanatical™ Support Team
    Rackspace ™
    Toll Free 800.961.4454
    International 1.210.447.4000
    UK Office +44 (0)20 8734 2700
    Rackspace said:
    2008-05-09 13:38:27 (UTC-7)
    Hello,
    That definitely seems odd. Since it works fine with Entourage, that would indicate the server is working properly. Additionally, I've tested the SMTP server from here (on a Mac) and am able to connect. I do not have a valid user to send email with, but I can try it if you want to provide me with the one you are trying, temporarily.
    As always, if you have any other questions or concerns, please do not hesitate to contact us. Have a great day, and thanks for choosing Rackspace Managed Hosting!
    Scott Wade
    Linux Systems Administrator III
    Rackspace Hosting ™
    Toll Free 800.961.4454
    International 1.210.447.4000
    Carl Pepper said:
    2008-05-09 14:35:36 (UTC-7)
    The settings I have are:
    [email protected]
    mail.SilverSpiritHomeServices.com
    User Name:[email protected]
    Password: XXXXXX
    (SMTP): pop.SilverSpiritHomeServices.com
    Authentication: None
    Use Secure Sockets Layer (SSL) unchecked
    Carl Pepper said:
    2008-05-09 15:00:15 (UTC-7)
    Here is the "cheat sheet" from APPLE.COM:
    "Outgoing mail server settings
    Outgoing server hostname: __________________________
    Such as smtp.sampleserver.com
    Outgoing server port:
    25 [ ] 465 [ ] 587 [ ] Other: ____
    The outgoing mail server supports Secure Sockets Layer (SSL): Yes [ ] No [ ]
    Outgoing server authentication type:
    Password [ ] MD5 [ ] NTLM [ ] Kerberos [ ]
    Outgoing server requires a username and password: Yes [ ] No [ ]
    If yes, username: ___________________ password: _______________________
    Can these settings be used from any Internet connection?: Yes [ ] No [ ]
    If you use your ISP’s own email service (instead of a third-party such as Gmail), sometimes it may not work if you roam to another Internet access point, such as a cafe with wireless Internet. Check with your email provider that the settings they give you will work if you plan to roam."
    Rackspace said:
    2008-05-09 19:26:43 (UTC-7)
    Hello Carl,
    In your report, I notice this:
    Authentication: None
    You need to authenticate before you can send mail so, authentication is a must. To be thorough, I tested both SMTP and POP authentication with the credentials you specified:
    $ perl -MMIME::Base64 -e 'print encode_base64("\000info\@SilverSpiritHomeServices.com\000XXXXXX")'
    AGluZm9AU2lsdmVyU3Bpcml0SG9tZVNlcnZpY2VzLmNvbQBzaWx2ZXIwMA==
    $ telnet mail.SilverSpiritHomeServices.com 25
    Trying 72.3.249.33...
    Connected to SilverSpiritHomeServices.com.
    Escape character is '^]'.
    220 thepepper.com ESMTP
    EHLO RACKSPACE
    250-thepepper.com
    250-AUTH=LOGIN CRAM-MD5 PLAIN
    250-AUTH LOGIN CRAM-MD5 PLAIN
    250-STARTTLS
    250-PIPELINING
    250 8BITMIME
    AUTH PLAIN AGluZm9AU2lsdmVyU3Bpcml0SG9tZVNlcnZpY2VzLmNvbQBzaWx2ZXIwMA==
    235 go ahead
    MAIL FROM [email protected]
    250 ok
    RCPT TO [email protected]
    250 ok
    DATA
    354 go ahead
    Subject: test
    test 123
    250 ok 1210386097 qp 32576
    Now for pop:
    $ nc mail.SilverSpiritHomeServices.com 110
    +OK Hello there. <[email protected]>
    USER [email protected]
    +OK Password required.
    PASS XXXXXX
    +OK logged in.
    All worked in both tests. Please enable authentication and get back to us.
    Best Regards,
    Jared Rodriguez
    Rackspace Support
    Carl Pepper said:
    2008-05-10 15:40:13 (UTC-7)
    What kind of authentication?
    MD5
    NTLM
    GASSPI
    PASSWORD
    Rackspace said:
    2008-05-10 18:02:07 (UTC-7)
    Hello Carl,
    Your server only supports CRAM-MD5 and PLAIN authentication. You will need to use plain text authentication. I have never configured mac mail so I do not know how to configure this, you may want to speak with someone a apple support if you have trouble.
    Best Regards,
    Jared Rodriguez
    Rackspace Support
    Carl Pepper said:
    2008-05-10 18:46:15 (UTC-7)
    Which one is plain text?
    Rackspace said:
    2008-05-10 20:23:43 (UTC-7)
    Hello Carl,
    While I am not sure, you may want to try 'PASSWORD'.
    Best Regards,
    Jared Rodriguez
    Rackspace Support

    I've tried mirroring the settings from Entourage. I will take another look:
    ENTOURAGE
    *Personal Information:*
    Name: Mitch Kring
    Email Address: [email protected]
    *Receiving Mail:*
    Account ID: [email protected]
    POP Server:
    Password: XXXXXX
    [checked] Save password in my Mac OS keychain
    (nothing in the advanced receiving options is checked)
    *Sending Mail:*
    SMTP Server: pop.SilverSpiritHomeServices.com
    (nothing in the advanced receiving options is checked)
    APPLE MAIL
    Incoming Mail Server: mail.SilverSpiritHomeServices.com
    User Name: [email protected]
    Password: XXXXXX
    Outgoing Mail Server (SMTP): pop.SilverSpiritHomeServices.com
    Server Port: 465
    Authentication: Password
    User Name: [email protected]
    Password: XXXXXX
    This is all the info I can find right now..

  • Auto-scrolling doesn't work when JFrame is not visible

    Hi, I have auto-scrolling implemented for my JTextPane that sits in JScrollPane - which lives in JInternalFrame. It works as excepted - as long as my application's JFrame is visible. When the JFrame becomes invisible, auto-scrolling simply doesn't work anymore.
    I've overcame this by scrolling down in "windowShown", but it's ugly because the user can visually see the scroll down when using this workaround (it jumps).
    I guess this is Swing's optimization, but I would really like to overcome it in someway. But it seems I'm not enough a swing hacker to do it.
    One thing to note is thtat, the auto-scrolling works fine when the JInternalFrame is NOT visible, but frame is.
    I've tried to override the isShowing-method of JInternalFrame, with no luck.
    Here's my scrolling method:
    public static void scrollDown(JScrollPane scroll) {
              JViewport port = scroll.getViewport();
              Rectangle rect = new Rectangle(0, port.getViewSize().height, 1, 1);
              port.scrollRectToVisible(rect);
              JScrollBar bar = scroll.getVerticalScrollBar();
              bar.setValue(bar.getMaximum() - bar.getModel().getExtent());
         }Anyone have ideas?

    At some point I had really hard time getting the auto-scrolling to work, as I got these weird little bumps after scrolling down.
    Adding scrollBar.setValue() seemed to 'just fix it'. It actually seems to be superfluous now.
    The scrolling is already wrapped in SwingUtilities.invokeLater() - in conjuction with printing text into the JTextPane and it works OK.
    I had some wrong info in the first post, the viewport actually does get scrolled down even when the JFrame is not visible. And by visible I mean JFrame.setVisible(false) - my application has a minimize-to-tray feature, which hides the JFrame.
    So I think the problem is 'just' a repainting problem. When the frame is shown, the previous scroll location is first displayed, and then a repaint is triggered that causes the 'jump down'.
    I'm not still sure how to fix it though.

Maybe you are looking for

  • How can I forbid use of EchoSign in a pdf file?

    We need a wet signature on a form. We want to avoid situations where users turn in the form with an electronic signature and we have to get back to them to do it properly.

  • MiniDVI to HDMI adapter FOUND

    all, I found this adapter so that i can enjoy my mac book movies on my plasma. However before I buy, i want to know anyone has experienced in using this product or any other similar product. *Product Name* - Kanex™ Mini DisplayPort to HDMI Adapter ht

  • Enter number of copies to print of a form as a variable

    I would like to be able to print a variable number of copies of a form by using a data field to hold the number of copies for each form such as an invoice.  In other words, I'd like to print 3 copies of some invoices, 4 copies of some invoices, 2 cop

  • Fail to Meet Timing Constraint with Xilinx 9.2i Suite

    Hi, I've been trying to p&r the OpenSPARC T1 v1.6 with either 1core/1thread or 1core/4threads using the Xilinx 9.2i EDK with the latest updates to no avail. It looks like the design just refuses to meet a timing constraint. I have no problem doing th

  • No flash videos playing in any browser

    I am having this issue for over a month or two now, i can't play any videos on any browser, i tried firefox, then IE , then chrome, i re-installed all of them, updated flash, updated real player, downgraded flash , cleared browsing history,disable ha