Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm having trouble with my new server and accessing its directories.

I updated my proftpd.conf with:

DefaultRoot /

No I'm able to see the root directory of my server. But, trying to access some directories gives different results.

For example, I can access /vars but I can't access /home or /root

How can I overcome this?


This is what my ftp client says after trying to access /root:

Server said: /root: No such file or directory

Error -125: remote chdir failed

This is what my ftp client says after trying to create a new directory in /:

Server said: untitled folder: Permission denied

Error -140: remote mkdir failed
share|improve this question
1  
What privileges does the account you're logging in with have? –  Yitzchak Jun 27 '11 at 15:45
    
@Yitzchak - How can I check that? –  Kriem Jun 27 '11 at 16:58
    
ls -l on the files you want to edit. Check the user block for your rights on that file. If you are ftp-ing in as anything but root (btw ftp as root is a bad idea) you will not be able to make a new directory in / –  Yitzchak Jun 27 '11 at 17:28
    
Got it. Thanks for the help! :) –  Kriem Jun 27 '11 at 17:30
    
You're welcome. BTW, use sftp in the future. –  Yitzchak Jun 27 '11 at 17:36

2 Answers 2

up vote 1 down vote accepted

ls -l on the files you want to edit. Check the user block for your rights on that file. If you are ftp-ing in as anything but root (btw ftp as root is a bad idea) you will not be able to make a new directory in /

share|improve this answer

I would suggest using client with fish protocol support instead, big chances are you have sshd started on your new server. Anyway, configuring system-wide FTP access for all partitions sounds not so good for me, I'd rather use it for isolated environment.

share|improve this answer
    
I'm aware it's not the best idea. I'm trying to comprehend the possibilities. (read: basic stuff) –  Kriem Jun 27 '11 at 16:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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