[Swlug] Automounting problem
Colin Law
clanlaw at gmail.com
Sat May 28 08:18:37 UTC 2016
On 28 May 2016 at 07:49, Mark Summerfield via Swlug
<swlug at mailman.lug.org.uk> wrote:
> Hi,
>
> I have a strange automounting problem.
>
> I have a machine with two user accounts: mark & andreas (the second
> created by mistake - should have been andrea).
>
> I have no USB devices in /etc/fstab
>
> When I insert an ext4-formatted USB memory stick it is mounted in
> /media/mark/VolumeNameOfMemoryStick
>
> But ls -lh on it reveals it its owner and group are andreas andreas. So
> although I can read it, the only way to write is to sudo -u andreas -i
> and then do it from that account.
I assume the files on the stick were initially created by andreas. If
you run something like
sudo chown -R mark:mark /media/mark/VolumeNameOfMemoryStick
then it will change them all to you.
Colin
More information about the Swlug
mailing list