Results 1 to 8 of 8

Thread: I can't change file permissions.

  1. #1
    Animeniac NNTP User

    Angry I can't change file permissions.

    I have installed FrostWire. I want the save folder to be in /storage, which is the mount point for the partition in my secondary hard drive, which is in ntfs format. Whenever I try to set the save folder to /storage/Limewire Music/Saved, I get an error that says,
    The selected save folder is invalid. You may not have permissions to write to the selected folder. FrostWire will revert to your previously selected folder.
    Whenever I go to 'File Manager - Super User Mode' and change the permissions of the folder, the permissions are not saved - they keep on going back to the same permissions.

    Is there a Save button somewhere in the permissions settings? If not, how else do I save permissions???

  2. #2
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: I can't change file permissions.

    Please post the output you get when you enter this command in a console:
    Code:
    df -Th | grep storage
    That wil show the filesystem.

    Please post the output you get when you enter this command in a console:
    Code:
    ls -l /storage/'Limewire Music'/
    That will show the current ownership and writeability of the directory Saved. Note the single quote marks.
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  3. #3
    Animeniac NNTP User

    Default Re: I can't change file permissions.

    Quote Originally Posted by swerdna View Post
    Please post the output you get when you enter this command in a console:
    Code:
    df -Th | grep storage
    That wil show the filesystem.

    Please post the output you get when you enter this command in a console:
    Code:
    ls -l /storage/'Limewire Music'/
    That will show the current ownership and writeability of the directory Saved. Note the single quote marks.
    a)
    Code:
    /dev/sdb1  fuseblk     39G  1.1G   38G   3% /storage
    b)
    Code:
    total 17
    -rw-r--r-- 1 root users   78 2008-08-15 14:25 Desktop.ini
    drwxr-xr-x 1 root users 4096 2008-08-30 11:05 Incomplete
    drwxr-xr-x 1 root users 4096 2008-08-30 11:04 Saved
    -rw-r--r-- 1 root users 5632 2008-08-30 11:13 Thumbs.db

  4. #4
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: I can't change file permissions.

    OK here's the problem: this says
    drwxr-xr-x 1 root users 4096 2008-08-30 11:04 Saved
    that the owner is root and root can read and write. It says also that the group (users) can only read, not write. You are in the group "users" so you cannpot write to the directory. The solution is to change the way sdb1 is mounted, so it's read-write to everyone. How this is done depends on whether sdb is and external usb drive or an internal drive. Which is it?
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  5. #5
    Animeniac NNTP User

    Default Re: I can't change file permissions.

    sdb is an internal hard drive.

  6. #6
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: I can't change file permissions.

    Quote Originally Posted by Animeniac View Post
    sdb is an internal hard drive.
    There's a mount command in the file system table (fstab located at /etc/fstab) that looks something like this:
    Code:
    /dev/blah-blah-1    /storage    ntfs-3g    user,users,gid=users,umask=0002    0 0
    You can see it exactly with this command:
    Code:
    cat /etc/fdisk | grep ntfs-3g
    You must edit the file fstab and change it. To edit the text file fstab you first back it up with this command in a console:
    Code:
    sudo cp /etc/fstab /etc/fstab.back.txt
    Then open it in a text editor with this command if using KDE:
    Code:
    kdesu kwrite /etc/fstab
    or tis one if using Gnome:
    Code:
    gnomesu gedit /etc/fstab
    Find the line and change it to this:
    Code:
    /dev/sdb1    /storage    ntfs-3g    defaults    0 0
    Save and then in a console enter su to get rootly powers and then enter this command to unmount the drive (with its old permissions):
    Code:
    umount /dev/sdb1
    and then this command to remount it (with its new permissions):
    Code:
    mount -a
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  7. #7
    Animeniac NNTP User

    Default Re: I can't change file permissions.

    Hey, it worked! Thank you, swerdna.

  8. #8
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: I can't change file permissions.

    Quote Originally Posted by Animeniac View Post
    Hey, it worked! Thank you, swerdna.
    You sound surprised
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •