We have moved to a new Sailfish OS Forum. Please start new discussions there.

# Unable to edit files from any File Manager when in directory outside home/nemo

asked 2014-03-13 17:43:00 +0300

(Sailfish OS 1.0.3.8)

Using native File Manager:

• When I try to delete a file (photo, mp3,...) from data/sdcard/... it disappears, then when I go out then back into the folder it is still there.
• Also when using native file manager can't delete anything from /home/nemo/... It shows it deleted the file by leaving an empty space, but when I return to the folder I shows the file is still there. And it can still be accessed!

Using FileTug:

• When I try to delete a file (photo, mp3,...) from data/sdcard/... it says: "All files couldn't be deleted successfully"
• Here I could delete a file from /home/nemo/...

Using Terminal:

• also tried rm /data/sdcard/.... it doesn't work

Please help!

edit retag close delete

## Comments

I think is a matter of permission. Almost everything in /home/nemo has nemo username permission, so you should be able to delete everything. For example, looking at my Music folder, I see folder like 755 and nemo:nemo. /sdcard/Android/data is the folder where android things fall, and permission here are different, with user sdcard_rw owner of folders and file. With Cargo app I am not able to delete anything outside /home/nemo (and this is the right behaviour).

( 2014-03-13 18:34:09 +0300 )edit

Thank you @Markkyboy you saved my day. You should convert your comment to answer. It's not only the files/folders outside nemo. It happens all the time I notice even files/folders inside nemo can suddenly (meaning I haven't changed permissions) refuse to be deleted!

( 2014-03-13 21:54:14 +0300 )edit

## 2 Answers

Sort by » oldest newest most voted

answered 2014-03-13 20:18:58 +0300

Native file manager (Files): I think delete doesn't work at all in Files, I have seen the same behavior ("deleted" files aren't really deleted).

FileTug: If you install StartAsRoot for FileTug from OpenRepos/Warehouse, it will create a new launcher icon for FileTug, and when you start FileTug from that icon, you have root privileges and you can delete anything (be careful).

Terminal: If you don't have permission to delete a file, enter devel-su and your password (set in Settings > System > Developer mode) before entering the rm command. This will give you root privileges, and you can delete anything (be careful).

more

## Comments

Keep running into the same problem even with files/folders inside nemo without me changing permissions. Haven't tried StartAsRoot apps. But I tried entering devel-su and using only rm command didn't work. I assumed this command can only be used for removing files, not folders, because of the message returned from the system. I only finally got the stubborn folder out with Markkyboy's method.

( 2014-03-13 21:59:48 +0300 )edit

Ok, my answer didn't help then but good that Markkyboy's did :) There is also command rmdir for deleting a directory, but the directory must be empty.

( 2014-03-13 22:11:54 +0300 )edit

The part about FileTug helped I'm sure, I just don't like FileTug and wasn't aware of the StartAsRoot apps, so I haven't tried it yet. And it was just about one wrong command (hell I don't even remember these commands since it was a long time ago I tried to learn unix hehe). ;)

( 2014-03-13 22:42:08 +0300 )edit
1

There's StartAsRoot for File Browser and Cargo Dock too, in case you like them better. :)

( 2014-03-13 22:48:44 +0300 )edit

answered 2014-03-13 18:43:56 +0300

Deleting files are done with the rm command as follows:

rm /home/joe/file_to_be_deleted the rm (remove) command is used to remove anything through a cli environment.

Deleting folders and their sub-folders The command you are about to read can potentially (if used incorrectly) destroy your system!

'devel-su' required;

rm -rf /home/joe/useless_Parent_folder

This command is slightly different to the one before, it uses two options '-r' which means recursive (will delete the folder and all sub-folders) and '-f' means force (will not ask for your permission). This command is perfectly fine for deleting a dir and all its sub-dirs.

The next commands should !!!!NEVER!!!! be run. Unless you want to say goodbye to your system.

rm -rf /* rm -rf / This will delete everything from your root folder downwards, which if you did a standard install would be everything.

Regards

more

## Stats

Asked: 2014-03-13 17:43:00 +0300

Seen: 1,690 times

Last updated: Apr 04 '14