jasonkw
12-14-2002, 10:18 PM
I just got a CPanel server, and I want to replace the Apache default page when I type in the IP address for the server. I can't FTP with the root login and password. How can I replace that page?
![]() | View Full Version : FTP for root? jasonkw 12-14-2002, 10:18 PM I just got a CPanel server, and I want to replace the Apache default page when I type in the IP address for the server. I can't FTP with the root login and password. How can I replace that page? The Prohacker 12-14-2002, 10:19 PM Via SSH... Making root able to log into FTP is a very bad idea, ftp isn't encrypted... cactus 12-14-2002, 10:29 PM You can't FTP using your root username/password. create a new username/password for it to FTP. jasonkw 12-14-2002, 11:02 PM Hmm...where do I put the files? insiderhosting 12-14-2002, 11:25 PM You can sftp into your server with an ftp client like cuteftp pro. -Steven Selpaw 12-14-2002, 11:31 PM Or Get WINSCP http://winscp.vse.cz/eng/ It allows you to login via ssh and upload files from your pc to the server.... cactus 12-15-2002, 01:10 AM In SSH type useradd username ... press enter Please note depending on your system useradd or adduser. At prompt type passwd username ... press enter Confirm password again .... press enter You are all set. James[UH] 12-15-2002, 02:43 AM Originally posted by cactus You can't FTP using your root username/password. create a new username/password for it to FTP. You can, but its a very daft thing to do. As the password isnt encrypted. In proftpd slip this line in: RootLogin off To prevent root login via FTP. If you need to dl then upload any big files, like a binary to install as root use wget url via ssh. cactus 12-15-2002, 03:25 AM I don't know, I haven't tried it as my server support tech adviced me to create a new username/password and this new user is not able to move up to root directory as it does not have root authority and confine to only the public_hmtl directory which should suffice to upload any files using FTP and he was right as I tried it and it works for me. It seems according to him, it's the easiest method instead of configuring/editing the proftpd.conf and it could become quite messy for someone not familiar with how the config file works. Although you may be right as there are many options and risks for uploading files for root using FTP but if the new user is acting on behalf for root and without root authority just for uploading files, I think it's less risky. So I guess it's what suits the user and his needs.... For me, I prefer SSH to upload any files to the server but since the thread starter wanted some advice to use FTP, the one I mentioned should be the best option for him in my opinion. You can, but its a very daft thing to do. As the password isnt encrypted. In proftpd slip this line in: RootLogin off To prevent root login via FTP. Mexico Joe 12-15-2002, 04:36 AM Originally posted by jasonkw I just got a CPanel server, and I want to replace the Apache default page when I type in the IP address for the server. I can't FTP with the root login and password. How can I replace that page? Why not just upload the files with a regular FTP account and use SSH to move them where you need them? Sheesh. goodW 12-16-2002, 02:31 PM Originally posted by The Prohacker Making root able to log into FTP is a very bad idea, ftp isn't encrypted... Just try to login as root via ftp is a bad idea, though. He types a correct password :) jasonkw You should use sftp or upload the file via normal ftp and then mv it via ssh as Mexico Joe advised |