Why Do Normal Cannot Use Fat32 Volumn - please, here is my fstab file

free web hosting
Free Web Hosting > Computers & Tech > Operating Systems > Linux

Why Do Normal Cannot Use Fat32 Volumn - please, here is my fstab file

jedipi
The following is my fstab.

/dev/hda1 and /dev/hda5 is fat32 format.
root can use after login, but nor the normal users.

why?
and how can I allow normal users to read the files inside fat32??


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda6 / reiserfs notail 0 1
/dev/hda7 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/hda1 /mnt/winc vfat rw,user,auto 0 0
/dev/hda5 /mnt/wind vfat rw,user,auto 0 0
/dev/sda1 /mnt/usb auto rw,user,auto 0 0

Reply

Giniu
Hi...

You can allow access to all by adding:
CODE
/dev/hda1 /mnt/winc vfat rw,user,auto,umask=000 0 0
but your security would be weak, since all would have access to this drive...

so better is to make a group that would have access to it, and lock access to all others:

1) create new group, called for example vfatusers:
CODE
groupadd vfatusers
2) add your users to this group, edit file /etc/group under vfatusers so it would have users divided by "," at endo of it, note that number 104 can (and probably would) be different:
CODE
vfatusers:x:104:user1,user2,user3
3) change group of your vfat directories to vfatuser, also make sure that root is owner of those files:
CODE
chown root:vfatusers /mnt/winc /mnt/wind
4) in fstab allow group to access it, edit it to look like this:
CODE
/dev/hda1 /mnt/winc vfat rw,user,auto,umask=007 0 0

I think that this would be enough, same way you can use to allow some users to access some directories, and other not... remember to give access to fstab and group only to root, so users wouldn't be able to change what you set...

Probably there is other way, but I always do it like that... hope this helped...

 

 

 


Reply

jedipi
Thank you, mate..
you are very helpful..

Just want to know,
what is the different between umask=000 and umask=007

Reply

Giniu
so let me explain smile.gif

rights to files are writen in three octagonal numbers (from 0 to 7):

first one, gives info about owner,
second about group
and third about all others.

Also every number is taken from three other walues that you sum up - it is:

1=executable,
2=writable and
4=readable,

when you sum them up, you can get for example:

6=write+execute.

So permision to file that looks like this:

711 would mean: owner can do anything wile group and others can only execute.

It is usefull for scripts that cannot harm system, and are usualy called by normal users. So when you want to change permision, just

chmod permision file

and everything would work... but when you are using fstab all file permisions are masked with umask, so:

umask=000 would mean give all to everybody
umask=007 would mean give all to owner (root) and group (vfatusers), but don't give it to any others

this is some basics from security in Linux. It is hard for fist few days/weeks/months, but you would get used to it. I would mention also command

umask permision

that would umask all new files created by user that called it with specific permision.

Hope that answer suits you, and everything is clear now, if not, just ask smile.gif

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : normal fat32 volumn fstab file

  1. How To Copy File & Folders From Linux To Windows?. - (12)
    Many face problem while transfering file from Linux to windows and Vise versa. My solution for
    this is "winscp405". Winscp is a windows freeware tool used to copy file from & to Linux machine.
    To get this tool just google for " winscp405" tool and download this small package and install.
    Enjoy working with Linux and windows /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />...
  2. Linux Basic Command - For Storing Compilation Error To File - (1)
  3. Simple Ubuntu Based Home File Server | For Newbies - (1)
    This tutorial explains how to turn an old PC with additional hard disks into a simple home file
    server. The file server is intended for home use. The home file server is accessible by Windows and
    Linux computers in the home network. http://www.howtoforge.com/ubuntu-home-fileserver
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ...
  4. File Rename Script, Sentence - Large collection of files to rename! (7)
    Hello there, Today I've encoded lots of mp3's for my portable mp3 player (which only has
    128mb ... /blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" />),
    Anyway I encoded them with Lame using mlame script (for those don't know it handles more files
    then one). Now mlame appends "-new-converted-file" to the filename. And renaming every individual
    file with the hand is A LOT of work /mellow.gif" style="vertical-align:middle" emoid=":mellow:"
    border="0" alt="mellow.gif" />. I tried to write a script to remove that "-new-conv...
  5. Complie Mplayer With Gcc4.0 - Patch file is provided (1)
    GCC 4.0 comes with the new Fedora core 4. MPlayer cannot be compiled in this new environment. If you
    have Fedora core 4 or upgraded to GCC4 and have problems on compiling MPlayer, now worry, follow the
    steps: 1. Download all neccessry files. They are: * the source code of mplayer, I prefer
    the latest release: MPlayer-1.0pre7.tar.bz2 * mplayer-1.0_pre7-gcc4.patch . As you can see, this is
    a patch file for MPlayer 1.0pre7, In order the compile mplayer under gcc-4.0 environment, this
    patch must be applied This patch file can be download here: http://www.mag...
  6. Running Shell Script And Redirect To Log File? - (4)
    I have a shell script like this: while true do sh a.sh sh b.sh done now I want the script not just
    call and run a.sh and b.sh, but also output some log files. here is what I did: while true do sh
    a.sh sh a.sh >>log sh b.sh sh b.sh >>log done I know this is not a good way.... is there any better
    way to do it?? Thank you...
  7. No Such File Or Directory While Trying To Open Abl - (5)
    dear all, Yesterday, I modified the /etc/fstab file in order to mount my usb thumb driver
    atomaticly. dev is sba1 and the mount point is /mnt/usb. I cannot remember what other parameters
    had been used, as I got something emegene to do. I just use "halt -n" comman to shutdown the PC.
    Today, I found that it cannot boot into the system. when it checking root filesystem:
    fsck.ext3:ABEL=/: The superblock could not be read or does not describled a coorect ext2 file
    system. If the device is valid and it realy contains an ext2 filesystem (and not swap or ufs or
    something else)...
  8. Help ! Can't Install Rpm File - (2)
    I just installed redhat 9. and try to install some software. I use the following comman to do so:
    rpm -ivh file.rpm After I press Enter key, error message was shown: "can't create transaction
    lock" what should i do?...



Looking for normal, fat32, volumn, fstab, file






*SIMILAR VIDEOS*
Searching Video's for normal, fat32, volumn, fstab, file
advertisement




Why Do Normal Cannot Use Fat32 Volumn - please, here is my fstab file



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE