> --- Spikes <[EMAIL PROTECTED]> wrote:
> > include the user that will access the partition in
> > your mount command.
On Monday 29 September 2003 15:35, Carlos wrote:
> ?? what? i dont know what you mean
ok. first of all, you are probably a newbie. i strongly suggest
joining the newbie mailing list and posting future questions there.
escalate to this list if no one can answer you there (no real
reason for that, a lot of the gurus on this list monitor the
newbie list too).
second, if you're going to ask a question like the above,
it's useful if the question is just below what you're asking
about. it makes it easier for others to figure out what you mean.
i moved what you were asking about above your question
so that your question would be in context and make
sense. pushing everything down and then replying in the
empty space above what you're replying to is often a
newbie failing. you see it all the time with outlook users.
help us know what you mean by typing under what you're
replying to.
it's also a good idea to snip (delete) excess quoted text from
earlier in the thread. this helps those of us who have limited
bandwidth.
> what's a good line to add in /etc/fstab?
/usr/bin/man is your friend.
"man 5 fstab" will tell you what the fields in fstab are.
in there you will find that the fourth field is for mount
options (options specific to the filesystem). as to why
this is relevant, read on.
"man mount" will show you what options you can give. among
them, you will notice "user" and "users". those are the ones you
need. please see those man pages and try to figure it out for
yourself. if you remember, the fourth field in /etc/fstab is for
the mount options. so you would put either user or users there.
which one you use depends on how you want it to behave,
see the man page for how they differ. if you don't understand
how they differ, try them out. you will want to test with two
non-root users, see what happens when you create with
one and unmount with the other, and when you create
with one and unmount with the same one.
sorry for not giving you the exact fstab line. i prefer to point you
in the right direction rather than spoonfeed (although, ahh, the
above is pretty close to spoonfeeding, really :).
note: there are some concepts you might find useful.
1. usually, the user who mounts a filesystem owns that filesystem.
since vfat doesn't have the concept of a file owner and only
the crudest possible concept of read/write access, there is
no way to let different users own different files on a vfat
filesystem. so usually the user who mounts the partition
owns the partition, unless there is no user/users mount
parameter, in which case root is the only one who can mount
the partition and owns all files on that partition.
on vfat partitions you cannot set ownership of files or permissions.
everything is owned by whoever mounted the partition, you can't
change any of that unless you unmount and then mount again as
the other user you want to own the partition.
2. ntfs *does* have file ownership and permissions, but i don't know
how well that maps to linux ownership and permissions. i've just
not written to ntfs partitions since it's considered dangerous and
experimental and may trash your partition. and i'm really not sure
how users map (e.g., if i am user tiger in linux, and i chown a file
on the ntfs partition, when i boot in win2k or whatever, who will
own that file? what if there's a tiger user in windows, will he
own the file [unlikely, i think, but untested :], what if there's no
tiger user? what if there's no user with that UID in ntfs, will
the OS reclaim that file since it belongs to no valid user?).
tiger
--
Gerald Timothy Quimpo gquimpo*hotmail.com tiger*sni*ph
http://bopolissimus.sni.ph
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"
A good plan today is better than a perfect plan tomorrow.
Gen. George Patton
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie