Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8999983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:15:08+00:00 2026-06-16T00:15:08+00:00

How might it be possible to rig a system such that some removable media,

  • 0

How might it be possible to rig a system such that some removable media, like a USB stick, can be mounted by a user without any need for root privileges, and yet be made private for that user? I’m thinking of some multiuser situation, like a school or library, where there are many terminals. I sit down at a terminal, plug in my USB stick, mount it, without needing any privileges, have full access to it, and yet it is completely private to me. I know I can gain privacy my mounting the stick in my home directory, but I’d need root privileges to make the mount. In fstab I can use the ‘user,noauto’ option, which lets me, or anyone else, mount, OTOH, then, once mounted, the sick is visible to anyone. Is there some way of making the device itself private? chmod’ing the contents is not sufficient since other users can still do things like write new files. I think this should be doable but I’m damned if I can figure it out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:15:09+00:00Added an answer on June 16, 2026 at 12:15 am

    This issue does not lie in the removable media, but rather in the filesystem. The FAT filesystem does not support individual access control.

    You can solve your problem by defining default access rights in your fstab. From the manpage:

       umask=value
              Set the umask (the bitmask of  the  permissions  that  are  not
              present). The default is the umask of the current process.  The
              value is given in octal.
    
       dmask=value
              Set the umask applied to directories only.  The default is  the
              umask of the current process.  The value is given in octal.
    
       fmask=value
              Set  the  umask  applied to regular files only.  The default is
              the umask of the current process.  The value is given in octal.
    

    So, e.g. “user,noauto,umask=077” should take all rights away from anybody else then the user performing the mount. Note that this is already the default dmask on most systems! Maybe something is wrong with your setup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been exploring ways that it might be possible to promote the business of
Can anybody put lime light on what possible problems might emerge if an application
Reading the documentation it seems this might not be possible, but it seems that
Possible Duplicate: How is std::iostream buffered? This might sound ridiculous, but how can I
In iphone application, we can set handlers for system events like call status change
It looks to me like it might be possible to, in many cases, automatically
This blog post suggests that it might be possible to play YouTube videos with
Some people here told it's not possible and some people here told it might
I'm not sure if this is possible but I would like to retrieve some
How might it be possible to activate one of PowerPoint's ribbon buttons from C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.