Operating System - Tru64 Unix
1753464 Members
4890 Online
108794 Solutions
New Discussion юеВ

rm * on root directory (/)

 
SOLVED
Go to solution
Anthar Resendiz
New Member

rm * on root directory (/)

Good morning, I made a silly V4.0F Digital Unix server ... accidentally run a rm * on the root and missed the links to the shell, the worst part is that I have no open session and no longer can access the server since it displays the following message:

login: no shell: Permission denied.

I can only access via FTP. Appreciate any support I can give to solve this problem, thanks.
5 REPLIES 5
Steven Schweda
Honored Contributor
Solution

Re: rm * on root directory (/)

> [...] the worst part [...]

The _worst_ part would be if you have no
back-up of any kind.

If you can't get in and do a normal shutdown,
then I'd probably just cycle the power, and
see if there's enough software left to boot
in single-user mode. If so, then you may be
able to restore the lost files. If not, then
you should be able to boot from an
installation CD-ROM, and escape to a shell
from the normal installation environment.
Anthar Resendiz
New Member

Re: rm * on root directory (/)

Thanks for your response Steven, I am newbie in linux environment and so I'm looking for help to solve the problem I got, if I have a tape backup server ... as I do to restore deleted files if only I have access via FTP?

Thanks again for your response ...
Steven Schweda
Honored Contributor

Re: rm * on root directory (/)

> I am newbie

A good reason to be more careful. (As you've
probably learned.)

> in linux environment

Digital UNIX (now known as Tru64 UNIX) isn't
Linux. UNIX is what GNU/Linux started out
trying to imitate.

> [...] if I have a tape backup server ...
> as I do to restore deleted files if only I
> have access via FTP?

I know of no way to do what you probably need
to do if all you have is FTP access. FTP
does not normally let you run the commands
which you will probably need to run. I think
that you will need a normal shell. I don't
know if you still have one. If not, then I
think that you'll need to boot from a CD-ROM
(or a bootable tape) before you can get
anywhere.

I also know nothing about how your backup
tapes were made, so it's hard to offer any
specific advice about what to do even if you
can get a shell to run.
Anthar Resendiz
New Member

Re: rm * on root directory (/)

Of course, as I learned ... Forgiveness in effect is not linux, I was wrong to write my response.

I will try to salvage this problem, thanks for your responses.
Anthar Resendiz
New Member

Re: rm * on root directory (/)

Good evening, I close this thread thanking Steven responses and explaining that what I did to solve my problem

a) from another unix server via FTP creates the folder / bin

b) the folder / usr / bin is obtained ksh

c) the ksh is placed inside the folder / bin

d) give execution permissions

e) that is enough to open new sessions

f) in a new session is eliminated regenerate links

g) and finally clears the bin folder that was generated.

That was the solution, I hope someone can help to get to have the same problem.

Greetings.