Can root mount a partition and allow users to write to it?

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Thu May 17 14:16:26 UTC 2012


man mount
Look up "user" "users" "owner" option.  Though, that says who
can mount and umount.  Not sure, what happens after mount.
-- 
William



----- Original Message -----
> From: Walter Dnes <waltdnes at waltdnes.org>
> To: Toronto Linux Users Group <tlug-lxSQFCZeNF4 at public.gmane.org>
> Cc: 
> Sent: Thursday, May 17, 2012 4:03:26 AM
> Subject: [TLUG]: Can root mount a partition and allow users to write to it?
> 
>   I've managed to get automount under mdev sort of working, but it's not
> quite ready for primetime yet.  E.g. when I insert a USB stick, a
> hotplug event triggers a script, which creates a new device (/dev/sdb1,
> etc). I've modified the script to also mount the new device when it's
> created.  So far so good.  Unfortunately, since it's mounted by root, my
> regular user account can't write to it... oops.
> 
>   I also need to unmount it as aregular user, before yanking it out.  An
> idea might be a script with sudoers access that lets me unmount anything
> on the /media directory.  Manual mounting/unmounting on fstab-listed
> devices works as per normal, but some people prefer automounting.  Any
> ideas on mounting?
> 
> -- 
> Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
> 
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list