You are not logged in.

#1 2014-03-14 11:36:38

jazzi
Member
From: Xiamen
Registered: 2006-10-30
Posts: 57

[SOLVED]Permission problem with USB stick

Hi,

It's unable to create file on USB flash stick as a normal user, there is "permission denied" error.

It's Okay to be with Root, I use udevil to automount it under SpaceFM, when

$ ls /run/media/jack/usb
drwxr-xr-x 2 root root 4096 Mar 14 19:05 usb

Notice the owner is root

$ mount
/dev/sdb1 on /run/media/jack/usb type vfat (rw,nosuid,nodev,noexec,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

It's automounting, how to give normal user permissions? Thanks.

Last edited by jazzi (2014-03-14 12:00:41)

Offline

#2 2014-03-14 11:55:58

jazzi
Member
From: Xiamen
Registered: 2006-10-30
Posts: 57

Re: [SOLVED]Permission problem with USB stick

Okay, problem resolved.

I take a check with /etc/udevil/udevil.conf and found no default_options for vfat, there is one for msdos, so I added one line:

default_options_vfat      = nosuid, noexec, nodev, noatime, dmask=0022, uid=$UID, gid=$GID, utf8

Everything works fine now.

Offline

Board footer

Powered by FluxBB