Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a vps with a cpanel/whm/lamp, everything works fine. but i can't access the root using FTP. i type my ip and "root" and the root password but i get: Cannot connect.

Any ideas? i want to browse through the /var/ folders and stuff, how to enable that?


share|improve this question

closed as off-topic by HopelessN00b Jan 13 '15 at 21:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – HopelessN00b
If this question can be reworded to fit the rules in the help center, please edit the question.

Tom -

I'd highly recommend leaving root disabled via FTP (as it appears to be right now). Enabling it can leave you open to brute force attacks and eventual server compromise if your root password is weak. Even if your password isn't weak, the probability of compromise is still there (but it would take longer).

If you really need root access to your server via a FTP-ish client, you may want to consider using SFTP via ssh for that. Enabling root access via SFTP isn't a good idea either, but you can shore up your security a bit by requiring keys for your ssh users. This can be a little daunting for beginners, but there's a pretty brief and concise guide which may be able to help you:

share|improve this answer

It's likely that the root user is disabled for FTP access and also likely that your non-root user is chrooted to your home directory (standard security practice).

Without knowing what features you're entitled to on your VPS, it's hard to say what you can or cannot do and how to go about doing it.

My recommendation would be to talk to your VPS hosting provider and ask them.

share|improve this answer

The better option for enabling browsing for your /var directory is to modify its permissions so that the user/group you want to browse that directory has the right permissions. You could make an FTP group on your VPS, then assign group ownership on /var via chown. You may need to change the file permission to allow reading of the files as well.

Its a better idea to do all this via SFTP as well, as SFTP uses SSH protocols to connect to your server, encrypting the information being transmitted

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.