LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 12-01-2018, 08:46 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,960

Rep: Reputation: 55
Making files in vfat fs look as having an owner: name of the mask?


Hi: I have an SD card formatted in vfat and all files are owned by root (as vfat has no owners). But there is a way, by edition of fstab, of making them look as if they were owned by some regular user. It is a mask. What's the mask name and what its value?
 
Old 12-01-2018, 10:11 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 402

Rep: Reputation: Disabled
In /etc/fstab, this mounts the VFAT volume sda7 as /mnt/SD, makes the owner and group appear as "nobody", makes all directories appear as if they were mode 777 (read,write,execute for all), and makes all files appear as if they were mode 666 (read,write but not execute for all). Any user will be able to read, write, create, and delete files and directories there.
Code:
/dev/sda7 /mnt/SD  vfat  uid=nobody,gid=nobody,fmask=0111,dmask=0
 
Old 12-02-2018, 06:15 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,306

Rep: Reputation: 5465Reputation: 5465Reputation: 5465Reputation: 5465Reputation: 5465Reputation: 5465Reputation: 5465Reputation: 5465Reputation: 5465Reputation: 5465Reputation: 5465
The correct answer to this request to be spoon-fed is of course, why did you not just consult locally available information before asking a trivial question online?

Run "man mount" and search for "Mount options for vfat". That will give you several options to apply to the mount. It will also tell you that all the mount options for fat will also apply. So your second search will be for "Mount options for fat". You'll find the uid, gid, umask, fmask, dmask and many more.
 
Old 12-02-2018, 07:11 AM   #4
_peter
Member
 
Registered: Sep 2014
Distribution: slackware
Posts: 33

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
What's the mask name and what its value?
i did add the below in /etc/fstab yesterday to read write on a spare drive, this may not be fully suitable for your application as umask=000 makes the drive read write for everyone, you most likely know it already

Code:
/dev/sdb1    /BACKUP    vfat    umask=000   0   0
as mentioned
Code:
man fstab
Code:
man mount
Code:
man umask
have detailed information
 
1 members found this post helpful.
Old 12-02-2018, 07:40 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,960

Original Poster
Rep: Reputation: 55
Thanks _peter.
 
  


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
ACLs - Mask - permissions defined in the owner and owning group entries deoren Linux - Server 3 04-14-2017 02:29 AM
Force owner, owner group, permissions... leamassiot Linux - General 8 03-13-2014 05:40 AM
Owner of a directory different than file owner problems Guardian-Mage Linux - Server 4 04-24-2009 11:26 AM
copy files from vfat to vfat from linux? purpleburple Linux - General 2 12-11-2002 04:24 PM

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

All times are GMT -5. The time now is 06:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration