LinuxNewbie

Hello everybody. I'm serching a little help with Linux...

I'm an archeologist working with grass 4.3 for some months. Someday something
went wrong with my hard disk and my "site_files" directory and the "windows"
file of a mapset become "block devices". And I cannot open, move or delete
them because "I've not permission".

I don't worry for the data because I've got some backups. The problem is that
I cannot remove these block devices. So I cannot copy the ancient "site_files"
and "windows" from the backup (they have de same name). First I must remove
these block devices. Can anybody tell me how can I send them to trash?

Thank you very much

Quim Soler i Subils
Laboratori de Prehistòria i Arqueologia
Universitat de Girona
Girona, Spain

jsole010 wrote:

Hello everybody. I'm serching a little help with Linux...

I'm an archeologist working with grass 4.3 for some months. Someday something
went wrong with my hard disk and my "site_files" directory and the "windows"
file of a mapset become "block devices". And I cannot open, move or delete
them because "I've not permission".

You may remove every file as root/superuser, regardless of its
permissions. Use "su -- root" to become root and get permission (you
need the password!).
Use "rm -fR site_files windows" to remove entire directory tree without
confirmation (be _very_ careful! Double check everything! don't blame me
if something goes wrong!, see man mknod, man rm etc).

If someone played a trick on you and changed the file attributes you
must first change them with "chattr" (see man lsattr and man chattr).

And perhaps you should read a book on Unix/Linux shell...

HTH

Andreas

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de, A.C.Lange@GMX.net