Ubuntu

Directory hplip-3.10.2 has root priveledges.

Asked by RayArdia on 2011-10-09

The subject folder sits stubbornly on my desktop with a large cross on it! 'gksu gedit /home/ray/Desktop/ hplip-3.10.2' tells me this is a directory, and I think it is a now redundant older version of hplip-3.11.3a which is in my /home/ray directory.
How can I delete hplip-3.10.2?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu hplip Edit question
Assignee:
No assignee Edit question
Solved by:
RayArdia
Solved:
2011-10-10
Last query:
2011-10-10
Last reply:
2011-10-09

rm -r /home/ray/Desktop/ hplip-3.10.2

Will delete it if it is a folder or file

If you are installing hplip, mark the file as executable and run it as user (not sudo) and it will install

ok then run:

sudo rm -r /home/ray/Desktop/ hplip-3.10.2

RayArdia (theallinsons) said : #4

Followed the steps - thank you, got

ray@ray-laptop:~$ rm -r /home/ray/Desktop/ hplip-3.10.2
rm: descend into write-protected directory `/home/ray/Desktop/hplip-3.10.2'?
rm: cannot remove `hplip-3.10.2': No such file or directory
ray@ray-laptop:~$ sudo rm -r /home/ray/Desktop/ hplip-3.10.2
[sudo] password for ray:
rm: cannot remove `hplip-3.10.2': No such file or directory
ray@ray-laptop:~$ cd Desktop
bash: cd: Desktop: No such file or directory

This 'threw' me a bit so continued

ray@ray-laptop:~$ ls
Block 'Slat'.dxf
Breixo.jpg_original
ChangeLog
ddiscvry.dps
Debussy, Claude
Documents
dvd_udf.c
dvd_udf.h
examples.desktop
firefox
First Floor.dxf
Front Door Panels.dxf
FrostWire
fslint_2.42-1_all.deb
f-spot-0.6.1.3
Geneology
GNUstep
googleearth
google-earth
Honda Bracket.dxf
House Ground Floor.dxf
hplip-3.11.3a
Humber.dxf
Humber Parts etc.dxf
Humber Transom Wheels etc.dxf
Image-ExifTool-8.65
Income 2008.ods
inkscape-0.46
klamav-0.46-installer
Knobs.dxf
libflashplayer.so
Makefile
MODERN JAZZ QUARTET [1960] European Concert [Melodya, C 90-15245-46].iso.wv
Multimedia
Music
New Kitchen Area.dxf
New Transom Parts.dxf
Original Transom Parts.dxf
Outgoings 2008.ods
out.pnm
Photos
Pictures
qcad-2.2.2.0-1-prof.linux.x86
qcad-2.2.2.0-1-prof.linux.x86.tar.gz
README
recoverjpeg
regionset.c
Rev 1 Transom.dxf
Salón Meuble.dxf
Scan & Store
Scart Connections.odt
scribus-1.3.9
Second Floor.dxf
shotwell-0.8.1
Silver Crest (Media Price) Digital Receiver.pdf
Six-facet knob.dxf
Sony S760U Software Upgrade.odt
Spray Area.dxf
Templates
Transom Carolina.dxf
troubleshoot.txt
Ubuntu One
Videos
Whole House 2.dxf
Whole House.dxf
Yuloh Bracket.dxf

No Desktop at all, so just to make sure I copied two files to Desktop, then did

ray@ray-laptop:~$ cd Desktop
ray@ray-laptop:~/Desktop$ ls
Vernier Caliper_files Vernier Caliper.html

So, although I don't understand which of your command lines did the trick, the result is that that annoying blob on my desktop has gone! Thank you!
Robert est son oncle, Roberto es su tio, Bob's your uncle!
Ray

ray@ray-laptop:~$ rm -r /home/ray/Desktop/ hplip-3.10.2
rm: descend into write-protected directory `/home/ray/Desktop/hplip-3.10.2'?
rm: cannot remove `hplip-3.10.2': No such file or directory
ray@ray-laptop:~$ sudo rm -r /home/ray/Desktop/ hplip-3.10.2

The folder was probably owned by root, so sudo got you the rights you need ;)

Manfred Hampl (m-hampl) said : #6

Just for completeness' sake:

There was an error in the command line: a space character between "...Desktop/" and "hplip..."
So the rm command deleted the whole desktop and then tried to remove hplip (which did not exist in the directory you were located at that time)

The correct command would have been "rm -r /home/ray/Desktop/hplip-3.10.2" without space character in front of hplip.

sudo was not required to delete hplip-3.10.2 because you were the owner of the directory above
(Even if you do not have write access to a file, you can delete it if you have full access to the directory above that and if the sticky bit is not set on the directory file)