LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02:13 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
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, 08:56 AM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

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

Original Poster
Rep: Reputation: 75
I was thinking along the lines of
Quote:
/dev/partition none nouser,defaults
 
Old 09-08-2012, 10: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 10:56 AM. Reason: added read-only comment
 
  


Reply



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 11:18 AM
how to access fat and ntfs partition agrsen_deepak Linux - Newbie 2 01-27-2010 01:19 AM
Non-root user has read-only access to fat-c partition Ook Slackware 12 05-25-2007 08:49 AM
can't access fat partition with normal user account gilebo Linux - Newbie 4 04-27-2006 11:42 AM
How do I access a FAT partition in Linux slice4e Linux - Newbie 6 09-04-2003 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:18 PM.

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
Open Source Consulting | Domain Registration