vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| In article <bc917e10.0410070011.36f74035@posting.google.com >, ColdMan <alvintsh@hotmail.com> wrote: > > One of mu users accidently deleted the /bin directory and now nobody > can telnet to it. Pls advise how can I recover it as there is no > mksysb backup on this server. Step 1: Take away superuser privileges from the user because he or she cannot handle the responsibilities. If he or she has superuser access, he or she should be the one cleaning up the mess. Step 2: Try a CD boot and maybe use tar to copy /bin from CD to the hard drive. Not guaranteed to work, but worth a try. Also do /usr/bin too. Step 3: If step 2 does not work, reinstall the system. Step 4: Look into backups for future incidents. -Dan |
| |||
| ColdMan <alvintsh@hotmail.com> wrote: > One of mu users accidently deleted the /bin directory and now nobody > can telnet to it. Pls advise how can I recover it as there is no > mksysb backup on this server. Did the luser 'rm /bin' (or 'rm *' in /) or did he 'rm /bin/*'? If the former is true, then only the symbolic link from to /usr/bin is gone. This is easy to fix: - Boot the machine from the AIX CD. - Go into maintenance mode, drop into the maintenance shell (after performing the mounts). - Invoke 'ln -s /usr/bin /bin'. - Reboot. Voila! To avoid that problem in the future, change root's shell from /bin/ksh to /usr/bin/ksh in /etc/passwd. If the latter is true, and all files in /usr/bin are gone, it is harder. You can again boot into a maintenance shell from CD and somehow copy enough commands from a healthy machine so that you can boot into single user mode. A 'lppchk -f' wil tell you what commands are missing. Reinstall the respective filesets from the AIX CD. Yours, Laurenz Albe |
| |||
| alvintsh@hotmail.com (ColdMan) wrote in message news:<bc917e10.0410070011.36f74035@posting.google. com>... > Hi ALl, > > One of mu users accidently deleted the /bin directory and now nobody can telnet > to it. Pls advise how can I recover it as there is no mksysb backup on this server. > > Thanks in advance. /bin is a link to /usr/bin ls -l /bin lrwxrwxrwx 1 bin bin 8 Dec 27 2001 /bin -> /usr/bin Is /usr/bin still there ? If so, recreate the link using the ln command. |
| ||||
| ColdMan wrote: > One of mu users accidently deleted the /bin directory and now nobody can > telnet to it. Pls advise how can I recover it as there is no mksysb backup > on this server. maybe you can connect to this server with ftp. Than you can create a directory /bin, get /usr/bin/ksh, put it to /bin/ksh and set execute rights for /bin/ksh. Than you should be able to connect with telnet, remove the newly created directory /bin and recreate the symbolic link /bin -> /usr/bin Next you have to check if the symbolic links /lib -> /usr/lib, /u -> /home and /unix -> /usr/lib/boot/unix_mp (or unix_up if you have a single processor machine) exists. If not you have to create them also (maybe the user entered a "rm *"). Lothar |