Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I think you're looking for the "user" option, which will allow your FAT partition to be user-mountable (perms default to whatever user mounted the partition). You might also try out "users", although it's not as secure. If you have your partition setup to be mounted at boot, it should end up being mounted by root. Without using the "users" option, you can use "rw" to allow the partition to be mounted with read/write perms for everyone.
Here's an example fstab entry:
/dev/hda1 /fat vfat user,rw,exec 0 0
I'd suggest checking out "man fstab" (or "man:/fstab" if you have Konqueror), as well as "man mount". If you have a user-friendly distro (i.e Mandrake), I'd also recommend configuring your partitions through its configuration utility. A great distro-independent config util is "linuxconf". It configures /etc/fstab among other things.
chown mememe:msdos /mnt/msdos
chmod 1770 /mnt/msdos
chmod 770 /mnt/msdos
(the 1 only tell it to set the archive bit, something i like to do just for fun, 0770 is normally what most distros would take)
the chown changes the user and group to some other user (make it whatever you want) and the group to msdos (like you said to do)
also you can try
chown :msdos /mnt/msdos
instead, this doesn't change the user, but changes the group owner, try whatever you want
ill assume you know what the chmod command does if not:
770 = the owner of the file gets full access, the group gets full access, and everyone else gets nothing!
OK guys, you're going to have to go easy on me because I am still a little wet behind the ears when it comes to Linux...
I tried umount and then changing the permissions and it worked!
The trouble is, as soon as I reboot it all gets set back to how it was.
I tried changing the entry in /etc/fstab in a variety of different ways but it always seems to end up as owner=root, group=root when I do ls -l.
Essentially what I want to achieve is this:
The MSDOS drive is mounted at boot-up;
Anyone can have read access to anything in that drive;
Anyone in group "super" can have rwx access;
I have root + my user account in group "super".
What exactly to I have to put into /etc/fstab to achieve this - or is what I am trying to do not possible?
ok, it looks like your distro has some weird startup procedure that resets everything then (or did you do a proper shutdown?..lol), so look at the boot scripts in /etc/rc.d (or wherever your distro puts them), and search thru all the files files for the use the "chmod" command