Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  linux file permissions
« previous next »
  • Print
Pages: [1]

Author Topic: linux file permissions  (Read 828 times)

Offline foonix

  • Member
  • *
  • Posts: 1
linux file permissions
« on: September 26, 2015, 11:22:35 AM »
I am trying to access the files on an ipod rockbox on an ubuntu 14.04 system; but can only seem to do so as root as the mount command does not seem to pay any attention to the mounting options I give it. 

I mount with:
sudo mount -t vfat /dev/sdc2 /media/wjason/Zen-Black/ -o rw,uid=1001,gid=1001,umask=000,dmask=000

My understanding is that this should mount a FAT system read/write with all files owned by user wjason (uid 1001) and group wjason (gid 1001) and such that file and directory permissions for owner, group, and others are read, write, and execute

and yet, ls -l shows these permissions:
drwxr-xr-x 2 root root 4096 Nov 28  2010 Calendars
...
and for files on the device:
-rwxr-xr-x 1 root root 10704477 Sep 18 07:54 Bill Yosses _ Christine Kalafus.mp3

Since the owner/group are still root and group and others do not have write permissions, I can only sync files to the rockbox as root.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: linux file permissions
« Reply #1 on: September 26, 2015, 07:55:26 PM »
This really has nothing to do with Rockbox besides the fact that the device just happens to be running Rockbox.

Rockbox does not, and can not, govern where or how or under which user the device is mounted as. It simply presents itself as generic removable storage and your host does the rest.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline yithar7153

  • Member
  • *
  • Posts: 5
Re: linux file permissions
« Reply #2 on: October 05, 2015, 04:32:48 AM »
Rockbox has nothing to do with this issue. FAT doesn't store file permissions like EXT4 so it's something wrong with your system. I'm not sure what could be wrong, but personally I just mount it with it "-o uid=1000". Are you sure your uid is 1001? You might want to check the /etc/passwd file. Other than that, I'm sure there are programs that automount it for you. For example, PCManFM mounts my drive for me.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  linux file permissions
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.073 seconds with 15 queries.