Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
In Debian, I cannot do the same from command line as sudo. The thing is, this is in the /root home directory. From what I remember, you cannot operate as root in Ubuntu, at least not from command line, sudo just gives the user superuser rights. So how does files end up in the root's home directory?
Probably by using software as superuser.
For instance, I have KDE, and kdesudo installed, by issueing command: kdesudo dolphin, the kde file manager appears after entering my user password. When I delete a file from the file manager as my user with superuser rights, the file will be in /root/.local/share/Trash/files. To empty it, I start the file manager dolphin as superuser again and navigate to the /root/.local/share/Trash/files directory, right click on the file and delete it and it disappears along with the corresponding text file in /root/.local/share/Trash/info folder.
Because this is Debian, I can also just su to root and remove them from command line, but I don't think you can do that in Ubuntu. Use nautilus as superuser. gksudo nautilus
Last edited by Brains; 12-02-2011 at 05:08 PM.
Reason: Added command
You can totally use root in ubuntu ... Easiest thing ever (just not recommended for most purposes):
Open a terminal an type: sudo passwd
You will get this in return:
Code:
enter sudo password for user
password:
Enter New Unix Password:
Re-Enter Unix Password:
Password Changed ...
#
After that, Log out then select OTHER... at the login screen
For username put in root. for the password, whatever you chose at Enter New Unix Password:
I'm not 100% but I would guess the trash gets stored under Root because it is a SYSTEM folder, and root is in charge of the system ... Giving it jurisdiction if you will. Of course this is just a guess ... but sounds logical to me
edit: not saying everyone should change the fact they can't be root, you can do what needs to be done with sudo just fine ... Just stating it is possible.
$ sudo find /root/.local/share/Trash/files -mindepth 1 -exec rm -ri {} \;rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A"? S
rm: impossibile rimuovere "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A/85658d01": Errore di input/output
rm: rimuovere directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A"? S
rm: impossibile rimuovere "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A": Directory non vuota
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.cache"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.cache/dconf"? S
rm: rimuovere directory "/root/.local/share/Trash/files/danieluvi/.cache/dconf/user"? S
rm: impossibile rimuovere "/root/.local/share/Trash/files/danieluvi/.cache/dconf/user": È una directory
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox"?
Maybe you don't have permission to remove them? Try posting the "ls -l" output on the files that have error messages above.
Also, it would be helpful to know what the error messages actually say (I don't know that language, and I can't use a translator without knowing what it is).
Maybe you don't have permission to remove them? Try posting the "ls -l" output on the files that have error messages above.
Also, it would be helpful to know what the error messages actually say (I don't know that language, and I can't use a translator without knowing what it is).
sudo ls -l /root/.local/share/Trash/files/danieluvi/.cache/dconf/user
ls: impossibile accedere a /root/.local/share/Trash/files/danieluvi/.cache/dconf/user/85658d01: Errore di input/output
totale 0
-????????? ? ? ? ? ? 85658d01
sudo dir /root/.local/share/Trash/files/danieluvi/.cache/dconf/user
85658d01
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.