Active Topics

 


Reply
Thread Tools
Posts: 26 | Thanked: 0 times | Joined on Apr 2013
#1
ok so i looked around for answers to this but couldn't find many i'm sorry if someone else already asked it but i used torrential for the 1st time since i downloaded it and i didn't realise it was the saving the file in home/user now i have 700mb of precious app space lost and i tried to delete it using root access from N9tweaks and it said process completed but doesn't delete and also whenever i try to delete the files inside it it says error could'nt delete what do i do ?
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#2
Don't use root anywhere you want. Use root only for system directories.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 26 | Thanked: 0 times | Joined on Apr 2013
#3
well i currently have a movie in home/user that i cannot delete how do you suggest i get rid of it ?

Last edited by EgyptRocks265; 2013-07-23 at 06:58.
 
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#4
Originally Posted by coderus View Post
Don't use root anywhere you want. Use root only for system directories.
I think he meant he was trying to delete the file as root. That should work unless the file is still open by someone else. Perhaps the torrent hasn't finished yet? (Hint: it may have finished downloading but continues uploading to other peers, that's how torrents work.) I suggest looking in that direction and closing the torrent if necessary.
 
Posts: 646 | Thanked: 1,124 times | Joined on Jul 2010 @ Espoo, Finland
#5
Originally Posted by pichlo View Post
I think he meant he was trying to delete the file as root. That should work unless the file is still open by someone else.
It does not necessarily work, as N9 root is a bit of a 'toothless' root:

Code:
~ $ touch /home/user/removeme
~ $ ls -al /home/user/removeme 
-rw-r--r--    1 user     users            0 Jul 23 20:00 /home/user/removeme
~ $ devel-su
Password: 


BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # rm /home/user/removeme
rm: remove '/home/user/removeme'? y
rm: can't remove '/home/user/removeme': Permission denied
Note that the operation above would work if the file would be under /home/user/MyDocs (which is formatted in VFAT)

Better to find out which user owns that file in question and proceed accordingly.
 
Mikkosssss's Avatar
Posts: 645 | Thanked: 519 times | Joined on Apr 2012 @ Finland
#6
You forgot to answer question.

Just open terminal and do:

Code:
rm /home/user/movienam.e
Or download filebox from store and long press movie and delete.
__________________
────────────────────
Try:My N9 bootvideo
 
Posts: 23 | Thanked: 23 times | Joined on Jul 2012
#7
What does the command

ls -lR filename

(where filename should be the file or directory you downloaded) show ?

I'm specifically saying "directory", because you said "inside" ...

Trying something like

chmod -R a+rwx filename
rm -rf filename

might work better, if there are read-only directories involved.

Last edited by LinuxCub; 2013-07-23 at 19:40. Reason: Forgot the -R option to chmod (which was almost the whole point)
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#8
root cannot del files owned by user because of aegis. If your logged in as root you first need to switch back to user:

devel-su -l user; rm pathtofileownedbyuser
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.

Last edited by rainisto; 2013-07-23 at 21:54. Reason: s/su/devel-su/
 

The Following User Says Thank You to rainisto For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#9
and su can be called only if executable have setuid credential
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Posts: 23 | Thanked: 23 times | Joined on Jul 2012
#10
I think most of you are missing that we're not talking about deleting one (1) file, but a directory with files in it. He's talking about trying to delete a file "inside", but what are the permissions on the enclosing directory ? This might be basic Linux/Unix file/directory permissions that are confusing the OPer. It seems to be very common for N9 owners to not know Linux/Unix ... (sigh, when reading about flashing, it seems many do not even know Windows in-depth, but I digress ...)

Last edited by LinuxCub; 2013-07-23 at 20:40. Reason: Typo
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:58.