Reply
Thread Tools
Posts: 47 | Thanked: 10 times | Joined on Jan 2008 @ UK
#1
I lent my friend my n800 for a day to give him a hands on test to see if it would be any good for his needs upon returning it I have noticed he must have run ssh-keygen which has created a file /home/.pub which will not allow me to rm it.

Does anyone have any tips?

Thanks for any help in advance.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Sounds like it was done as root.

Install your favourite root access package (rootsh, sudser etc)
run:
sudo gainroot
rm -rf /home/user/.pub
 
Posts: 47 | Thanked: 10 times | Joined on Jan 2008 @ UK
#3
qwerty12: Thanks for the fast reply, yes the dir was crated as root and I have tryed to rm it in the given way but yet it still does not remove itself

MiniDemon:~# rm -rf /home/user/.pub; ls -als
4 -rw------- 1 root root 1675 Aug 6 15:04

4 -rw-r--r-- 1 root root 396 Aug 6 15:04
.pub
4 drwxr-xr-x 6 root root 4096 Aug 6 16:36 .
4 drwxr-xr-x 24 root root 4096 Aug 5 19:55 ..
4 -rw-r--r-- 1 root root 163 Aug 6 17:14 .ash_history
4 -rw-r--r-- 1 root root 412 May 5 07:35 .bashrc
0 -rw-r--r-- 1 root root 0 Aug 5 14:21 .gnokii-errors
4 drwx------ 2 root root 4096 Jul 27 10:26 .gnome2
4 drwx------ 2 root root 4096 Aug 6 16:51 .links
4 -rw-r--r-- 1 root root 202 May 5 07:35 .profile
4 drwx------ 2 root root 4096 Aug 6 15:18 .ssh
4 drwxr-xr-x 7 root root 4096 Aug 5 20:07 workbench
MiniDemon:~#
I have just noticed the directory seems out of line from the ls output :/
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#4
You are in the root home dir.

Try rm -rf /root/.pub
 
Posts: 47 | Thanked: 10 times | Joined on Jan 2008 @ UK
#5
Well didn't I make it look like I know nothing about Linux and its filesystem, I have been trying in the correct way before "rm -rf /root/.pub" will no luck, what I did find is when I typed "rm -rf /root/." then pressed TAB twice the files listed did not list .pub in there.

I have found the solution though.

rm /root/*.pub

Seems there was a space in there some where for some reason, I have tested by creating a dir with a space infront of it an found that the N800 diablo does not show a \ a for the dir name like most current Linux OS's do.

They really should change this I think, then again this is just person prefence for me.

qwerty12: Thanks none the less for your help
 
Posts: 47 | Thanked: 10 times | Joined on Jan 2008 @ UK
#6
MiniDemon:~# ls -als
4 -rw------- 1 root root 1675 Aug 6 15:04

4 drwxr-xr-x 6 root root 4096 Aug 6 17:24 .
4 drwxr-xr-x 24 root root 4096 Aug 5 19:55 ..
4 -rw-r--r-- 1 root root 119 Aug 6 17:25 .ash_history
4 -rw-r--r-- 1 root root 412 May 5 07:35 .bashrc
0 -rw-r--r-- 1 root root 0 Aug 5 14:21 .gnokii-errors
4 drwx------ 2 root root 4096 Jul 27 10:26 .gnome2
4 drwx------ 2 root root 4096 Aug 6 16:51 .links
4 -rw-r--r-- 1 root root 202 May 5 07:35 .profile
4 drwx------ 2 root root 4096 Aug 6 15:18 .ssh
4 drwxr-xr-x 7 root root 4096 Aug 5 20:07 workbench
MiniDemon:~#
Seems I also have a dir which is a space :/ WTF has my friend done bla last time I am letting my device out of my sight
 
Posts: 47 | Thanked: 10 times | Joined on Jan 2008 @ UK
#7
¬¬ Now this is just takeing the mick

edit/update -----------------------------------

I finaly got the unamed file to be rm'ed by useing

rm -i ./*

Last edited by Ricky-Lee; 2008-08-06 at 18:17.
 

The Following User Says Thank You to Ricky-Lee For This Useful Post:
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#8
Heh. Quite the 'friend'.
 
Posts: 47 | Thanked: 10 times | Joined on Jan 2008 @ UK
#9
Originally Posted by Benson View Post
Heh. Quite the 'friend'.
Ha dude if it was due to something I had done myself I would put my hand upto it but this time I did not break it.
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#10
Yeah, those quotes were indicating doubt over how much a friend he actually was, not whether it was you yourself; while I have been on the receiving end of that lie a couple times, it's not been often enough for me to even think of it, much less assume it was true.

And I can't see how it could have been accidental, though I'm also not sure why he'd do it intentionally.
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:50.