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

Re: USB ownership


I do not know exactly what is happening but give you some idea...

On Fri, Oct 17, 2008 at 07:53:42AM -0400, Paul Cartwright wrote:
> My wife plugged in a USB stick, to save a file to it. It would not let
> her save a file, permission denied. I looked at the ownership of
> /media/disk ( /dev/sdg1) and it showed me as the owner with group as root:
> pbc@paulandcilla:/media$ ls -l /media/disk
> total 208
> -rwxr-xr-x 1 pbc root  36352 2008-10-02 21:19 FILE_1
> -rwxr-xr-x 1 pbc root  16408 2008-10-02 21:39 FILE_2
> -rwxr-xr-x 1 pbc root 104960 2008-10-17 07:00 FILE_3
> -rwxr-xr-x 1 pbc root  12830 2008-10-17 07:00 FILE_4

You and root can access with this.
> I am logged in first, vt7, she is logged in 2nd, vt8, and when I
> switched to my login, there was the disk window open ( /media/disk).

Yes.  I guess since you had terminal, gnome/KDE system chose you as
owner and root as group to mount it as default.  (I am assuming you have
formatted USB stick as vfat as normal.  This is how they are
> What do I have to do to get it to recognize her as the owner, when she
> plugs in a USB stick in her login?

Under gnome of pbc:
 * click mounted drive and chose properties
 * Check mount option
 * Click Setting to open it just under mount option display
 * Give mount option to provide gid which you and your wife share and
 * make permission as something like 775

The hints are in man page of mount:
       uid=value and gid=value
              Set the owner and group of all files.  (Default: the uid and gid
              of the current process.)

              Set  the  umask  (the  bitmask  of  the permissions that are not
              present). The default is the umask of the current process.   The
              value is given in octal.

I have never done this one.  But mount option for encoding worked for me.  So
similar tric should work.  See:


Reply to: