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???

Please post the output you get when you enter this command in a console:

df -Th | grep storage

That wil show the filesystem.

Please post the output you get when you enter this command in a console:

ls -l /storage/'Limewire Music'/

That will show the current ownership and writeability of the directory Saved. Note the single quote marks.

a)

/dev/sdb1  fuseblk     39G  1.1G   38G   3% /storage

b)

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

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?

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:

/dev/blah-blah-1    /storage    ntfs-3g    user,users,gid=users,umask=0002    0 0

You can see it exactly with this command:

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:

sudo cp /etc/fstab /etc/fstab.back.txt

Then open it in a text editor with this command if using KDE:

kdesu kwrite /etc/fstab

or tis one if using Gnome:

gnomesu gedit /etc/fstab

Find the line and change it to this:

/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):

umount /dev/sdb1

and then this command to remount it (with its new permissions):

mount -a

Hey, it worked! Thank you, swerdna. :slight_smile:

You sound surprised :wink: