USB mounting automatically : users option?
Alan E. Davis
lngndvs at gmail.com
Wed Mar 4 07:11:41 UTC 2009
These responses are very helpful. It seems I am on the right track. I did
manually assign a user a specific UID today upon creation of the user, and
that did confirm these ideas: the files are now seen as owned by any user on
the current system with that UID number.
It's a minor annoyance but it will work. The "git" group with GID 1111 is
working ok, but I am not sure how to ensure than other users are writing
files only with group write permissions set.
Is this what a sticky bit is?
On Wed, Mar 4, 2009 at 9:26 AM, Cameron Hutchison <lists at xdna.net> wrote:
> "Alan E. Davis" <lngndvs at gmail.com> writes:
>
> > 4. in fstab:
> > ####USB BLUE
> > LABEL=BLUE /media/BLUE ext2 defaults,users,rw,auto 0 0
>
I am sorry to say that this experiment failed. On this Intrepid Ibex Ubuntu
system, when I explicitly created a mount point /media/BLUE and included
this line in /etc/fstab, that partition (BLUE) ends up being mounted twice.
I am told to use "user" instead of "users". I don't know how to set that up
for automounting. WHen I include that line in /etc/fstab but /media/BLUE
isn't present, plugging in the USB drive throws an error.
> since you are using ext2, the user and group IDs are stored by
> the filesystem so there is no remapping of IDs when the volume is
> mounted.
Aha!
>
>
> The only way around this is to synchronise the IDs on the different
> machines. You can get away with using a GID in common and ensuring that
> all the files use that group ID and have group rw[x] permissions.
This is an opportunity to learn to control the permissions.
>
>
> You will probably want want to use set-gid directories and a umask of
> 00X (X is usually 2 or 7). This means the files you create are group
> writable (umask) and new files inherit the GID of the directory they are
> in (set-gid directories).
This is the big question, then: how can I set a set-gid directory? Google
time. In a couple of hours I can shuffle around users on the system.
Easier if it's automatic.
Thank you, very much.
Alan
--
Alan Davis
"An inviscid theory of flow renders the screw useless, but the need for one
non-existent." ---Lord Raleigh (John William Strutt), or
else his son, who was also a scientist.
It is undesirable to believe a proposition when
there is no ground whatsoever for supposing it is true.
---- Bertrand Russell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090304/3287df76/attachment.html>
More information about the ubuntu-users
mailing list