Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP in single user mode.

Status
Not open for further replies.

nitinkgoud

IS-IT--Management
Jun 28, 2006
87
US
Hi Guys,
One of the servers was rebooted today as a part of scheduled maintenance. /etc/vfstab was corrupted during reboot. Now the problem is that I need to copy vfstab file from another server, however the rebooted server is in single user mode and I can’t start the ftp! Can you please tell me which services needs to be started on the rebooted server before I can ftp vfstab file.
 
BTW server is running Solaris 9.

Thanks guys. please help.
 
What are you doing to try and start ftpd?

Mike

Unix *is* user friendly. It's just selective about who its friends are.
 
No need to start ftpd, just use the ftp client do download the file rather than trying to upload it from another server.

Note that you may need to manually add your default route as it is not yet configured in single-user mode. For example:

[tt]route add default `cat /etc/defaultrouter`[/tt]

Annihilannic.
 
Hi Guys,
Thanks for your response.
Let me rephrase the question.
Server A is in single user mode
Server B is in multi user mode.

I need to ftp a file to server A the file is on server B.

1)Do i need to start ftpd on server A in order copy a file from server B. If yes how do i do it, is ftpd service dependent on other services?

2)If i do not need to start ftpd on server A what exact steps do i need to perform in order to ftp vfstab file form server B to server A?
 
Is this single-user mode from the hard drive or cd-rom?

You can start FTP in single-user mode. The following steps should be able to help you out:

Code:
1. Verify interface is up ifconfig -a
     ifconfig int hostname netmask + broadcast + up

2. Configure defaultrouter
     route add default `cat /etc/defaultrouter`

3. mount -o rw,remount /

4. cp /etc/ftpusers /etc/ftpusers.ORIG

5. cat /etc/ftpusers.ORIG | grep -v root /etc/ftpusers

6. vi /etc/default/login *comment out the root console setting*

7. Startup inetd
     /usr/sbin/inetd -s -t &

On Server B
8. ftp Server A

9. cd /etc

10. lcd /etc/

11. put vfstab

If you want to FTP in Server B verify inetd is running and FTP w/root access is allowed, and just FTP from Server A to that machine.  You will still have to make sure your network card is up and configured.
 
Made a typo number 5 should read:

Code:
 cat /etc/ftpusers.ORIG | grep -v root [b]>[/b] /etc/ftpusers
 
Hi Coffeysm/Annihilannic ,
Thanks a lot for your replys.
I will try the bellow steps

On Server A
1) route add default `cat /etc/defaultrouter`
2) mount -o rw,remount
3) ftp to server B and get the file
4) reboot

Hope this works......
Please suggest if i need to do anything else?
Waiting for you response.

(BTW i used CD ROM to get to this to single user mode and also root is allowed to ftp on these boxes)

 
If you booted off the cd then you will need to mount root like this: mount /dev/dsk/c0t0d0s0 /a then precede anything like /etc/whatever with /a/etc/whatever
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top