[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Only root can write on USB disk



On Thursday 04 May 2017 16:22:46 Mostafa Shahverdy wrote:
> > In my /etc/fstab, I add lines for the drives and put 'user' in the
> > options:
> >
> > LABEL=<filesystem-label> <mount point> auto  noauto,user,rw,exec   0  0
>
> I played with fstab as far as I could, and still no luck. It is still
> owned by root. I also found that there are some errors in my dmesg:
[snip]
> this is my fstab line:
>
>
> /dev/sdh1 /media/mostafa/flash_h1 auto user,rw,nosuid,nodev,relatime 0 0

it doesn't include what Greg suggested.  He suggested:
"-o uid=youruser"

You have auto user and nosuid.  Those more knowledgeable than I will have to 
tell you exactly how to integrate Greg's advice.  I would almost certainly 
get it wrong!

Lisi


Reply to: