PDA

View Full Version : FTP problem (directory restrictions)



dopetroep
10-27-2003, 10:44 AM
Hey guys,

I've got a problem, the inetd was running before and i was able to login as root so i was able to ftp to /var/www.

I had to restart my knoppix server (i've got a hdd install) and inetd was not working anymore.
So i deleted hosts.allow/deny and it worked again, but there was one problem:
I can't login as root anymore.

421-Server disabled.
421 Reason: Root login not allowed.
and when i login as knoppix i only see 3 directories and can't get to /var/www
I really need to get there cause there is my current website located

Someone any idea how to solve this by ssh?

I can't get to my knoppix server as it is in a other country.

Thanks in advance.

Michael

dopetroep
10-27-2003, 01:51 PM
or can anyone tell me how to give a user root access?

certifieduser
10-27-2003, 03:37 PM
most likey the location is /etc
there should be file /etc/ftp.users

edit this file and delete the line with "root"
this file restricts the users mentioned in them

delete user root and save the file and you are all set

happy ftp'ing

Dave_Bechtel
10-27-2003, 10:09 PM
--Actually it is /etc/ftpusers.

--Note: You really DO NOT WANT to be able to login as root over ftp. This allows your box to be easily hacked if it IS enabled.

--If you need root access to anything, login as a regular user over ssh and su. You maybe able to edit the /etc/proftpd.conf file (or whatever the name is, I switched to vsftpd so not sure anymore) to redefine the default ftp dir.


most likey the location is /etc
there should be file /etc/ftp.users

edit this file and delete the line with "root"
this file restricts the users mentioned in them

delete user root and save the file and you are all set

happy ftp'ing

dopetroep
10-27-2003, 10:55 PM
thanks a lot for your reaction.

I tried but didn't work, it works for other users but root is still not allowed.

I have a serious problem now i was developing a website and has to be done before the 12th of november please help!

Thanks in advance,

michael

dopetroep
10-27-2003, 11:39 PM
Thanks!

It worked after set DO_CHROOT="no" in /etc/bftpd.conf

Thanks a lot!