LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-07-2012, 03:13 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Rep: Reputation: 55
Preventing access to FAT partition


I have just set up dual booting to my new UEFI/GPT.

I have a concern that it seems that any user can mount and potentially modify files in the small boot partition used by UEFI/GPT at sdb1. The partition comes up on the list on the left in Dolphin

How do I set things so that this partition is hidden and users do not have access?

TIA
 
Old 09-07-2012, 09:56 AM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 147Reputation: 147
What about adding a line to "/etc/fstab"
Code:
/dev/your_partition  /some_mount_point  vfat   defaults,noauto 1 2
 
Old 09-07-2012, 12:18 PM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Original Poster
Rep: Reputation: 55
I was thinking along the lines of
Quote:
/dev/partition none nouser,defaults
 
Old 09-08-2012, 11:49 AM   #4
tc_
LQ Newbie
 
Registered: Sep 2010
Location: Germany
Distribution: Slackware
Posts: 28

Rep: Reputation: 30
"defaults" includes "nouser"

According to the manpage of "mount" and "fstab", "defaults" includes "nouser", so "nouser" is superfluous. However, "defaults" also includes "auto", which will mount the partition at boot time. Guanx solution prevents this behaviour. You might also want this partition to be mounted read-only via
Code:
/dev/partition /mountpoint vfat defaults,noauto,ro 1 2
so that mounting the partition in rw-mode requires explicit specification. This will force the superuser (i.e. you) to think twice before doing any modifications to this partition.

For more information, see
Code:
$ man fstab 
$ man mount

Last edited by tc_; 09-08-2012 at 11:56 AM. Reason: added read-only comment
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access windows partition (NTFS/FAT ) from linux ? vishwajeet Linux - Newbie 5 03-03-2011 12:18 PM
how to access fat and ntfs partition agrsen_deepak Linux - Newbie 2 01-27-2010 02:19 AM
Non-root user has read-only access to fat-c partition Ook Slackware 12 05-25-2007 09:49 AM
can't access fat partition with normal user account gilebo Linux - Newbie 4 04-27-2006 12:42 PM
How do I access a FAT partition in Linux slice4e Linux - Newbie 6 09-04-2003 07:40 AM


All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration