lwknet
03-20-2004, 10:19 AM
i've been told it's a bad idea but for some reasons i really need it, to save time spent on editing files using pico.
i have proftp and pureftp on my redhat cpanel/whm box, how can i set it up?
thanks
Knogle
03-20-2004, 10:34 AM
Edit the file /etc/ftpaccess and comment out the 'deny-uid' and 'deny-gid' lines.
Also, remove the 'root' line from /etc/ftpusers.
Jay Cornwall
03-20-2004, 10:57 AM
Originally posted by lwknet
i've been told it's a bad idea but for some reasons i really need it, to save time spent on editing files using pico.
i have proftp and pureftp on my redhat cpanel/whm box, how can i set it up?
thanks
You don't need to use FTP at all. (it's a bad idea in general, but to openly spread your root password to anyone between you and your server is a pretty daft thing to do)
Download yourself a copy of WinSCP (http://winscp.sourceforge.net/) for Windows clients or use command line sftp/scp (or any GUI client you fancy) for Linux clients, and you can use a secure version of FTP to connect to your server. Most servers with SSH login enabled will have SFTP enabled too.
lwknet
03-20-2004, 11:19 AM
when i cat/pico to /etc/ftpaccess and /etc/ftpusers i got no such file or directory
i just discovered wheel group users login to proftp will have "access" to files owned by "root" but not permission to "write"
is editing files owned by "root" ftpd specific like different config for different ftpd (pro/pure ftp) or simply editing a few lines in redhat conf files?
Knogle
03-20-2004, 11:26 AM
Sorry about that.
For proftpd, to enable root ftp ensure that the directive "RootLogin on" is included in your configuration.
I cannot understand why you want to run 2 ftpds' concurrently?
sightz
03-20-2004, 11:53 AM
I vote for WinSCP as well. Great windows-explorer like system with a built in text editor.
Free / open source at
http://sourceforge.net/projects/winscp/
youandme
03-20-2004, 11:59 AM
winscp is best program to edit file with root access :) i'm using it. putty + winscp = best choice :)
lwknet
03-20-2004, 12:12 PM
i don't run 2 ftpds concurrently, switch and try one by one. Sorry for mentioning 2 ftpd servers in my 1st post to make such confusion.
i'm using putty(client) + ssh/pico(server side) to edit files and find it inconvenent, if winSCP does overperform putty i'm more than willing to switch
just added the "RootLogin on" directive in the /etc/proftpd.conf and restarted the ftpd server but had no success logging in with user name "root" and root password.
i edited /etc/proftpd/passwd.vhosts by changing a wheel user's uid and gid to 0 but then ftp login for that user failed.
i then tried editing some pureftpd conf files and looking for their documentation page but had no luck.
now i've rolled back every change i made :rolleyes: not sure what can i do next
thanks anyways
lwknet
03-20-2004, 12:34 PM
thanks all
i think i've partially solved the problem by using winSCP to ssh to root and act as an ftp "interface".
youandme
03-20-2004, 01:11 PM
WINSCP + PUTTY :) last advice
innova
03-20-2004, 02:38 PM
You dont want to login FTP as root, you send your password in plaintext over the net. Bad bad bad!
cybexhost1
03-21-2004, 12:19 AM
Just use SCP (SFTP), I recommend WinSCP3. It is practically FTP, and includes a command prompt. I love it. Gives you full / access.