1826408 Members
4072 Online
109692 Solutions
New Discussion

Re: ftp access

 
Nobody's Hero
Valued Contributor

ftp access

I have a linux RH9 system called mullet, running vsftpd.

When I try to ftp into mullet from another system as any other user than root, I get:

Name (mullet:root): ltcsweep
530 Permission denied.
Login failed.

Where do I allow the user ltcsweep to ftp on mullet?

Is it ftpusers file or ftp.allow?
UNIX IS GOOD
11 REPLIES 11
Sivakumar TS
Honored Contributor

Re: ftp access


Dear Robert,

check ftpusers file.

check the man page for more info.

With Regards,

Siva.
Nothing is Impossible !
Nobody's Hero
Valued Contributor

Re: ftp access

I tried to add a ftpusers file into /etc/vsftpd. Then I restarted the vsftpd service. No Luck. Still get the same error. Is it an entry into vsftpd.conf?

UNIX IS GOOD
Ivan Ferreira
Honored Contributor

Re: ftp access

Ensure that the user has a valid shell (listed in /etc/shells) and home directory (permissions).

The directive userlist_file in vsftpd.conf defines the name of the file to search for allowed user accounts.

See also userlist_enable (man vsftpd.conf).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Nobody's Hero
Valued Contributor

Re: ftp access

OK I added this into vsftpd.conf

userlist_enable=YES
userlist_file=/etc/vsftpd/ftpusers
userlist_deny=NO


Now I can login as ltcsweep user,
but I cant cd to any directories.
I cant even cd to /home/ltcsweep.
UNIX IS GOOD
Ivan Ferreira
Honored Contributor

Re: ftp access

Do you have a permission denied error?

Can you list the directories or are you in a chroot jail? See also chroot_list_enable, chroot_local_user options.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Hemanth Gurunath Basrur
Honored Contributor
Nobody's Hero
Valued Contributor

Re: ftp access

After logging in as ltcsweep user, I try to cd to a dir and I get:

ftp> cd /home
550 Failed to change directory.
ftp>
UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: ftp access

I can do a ls-l:

ftp> !ls -l
total 172
-rw-r--r-- 1 root root 959 Feb 24 2004 anaconda-ks.cfg
drwxr-xr-x 3 root root 4096 Jul 18 07:18 bin
drwxr-xr-x 3 root root 4096 Nov 28 07:34 Desktop
drwxr-xr-x 3 root root 4096 Nov 21 2003 Desktop1
drwxr-xr-x 4 root root 4096 Jul 11 2003 evolution
-rw-r--r-- 1 root root 1416 Aug 31 11:28 groupname_enumeration_v3.patch
drwxr-xr-x 4 root root 4096 Aug 11 2003 images
-rw-r--r-- 1 root root 43909 Feb 24 2004 install.log
-rw-r--r-- 1 root root 6957 Feb 24 2004 install.log.syslog
-rw-r--r-- 1 root root 641 Aug 30 12:44 krb5.conf
-rw-r--r-- 1 root root 2389 Aug 30 12:44 krb.conf
drwxr-xr-x 7 root root 4096 Jan 19 2004 Mail
-rw------- 1 root root 998 Nov 10 2004 mbox
drwxr-xr-x 5 root root 4096 Aug 18 2004 MIRROR
drwxr-xr-x 4 1002 1000 4096 Aug 30 13:40 pam_ldap-180
-rw-r--r-- 1 root root 210 Aug 10 2004 piranhakey.pub
-rw-r--r-- 1 root root 3255 Oct 30 2003 snmpd.conf
-rw-r--r-- 1 root root 420 Jun 27 2005 test
-rw-r--r-- 1 root root 48101 Aug 11 2003 upgrade.log
-rw-r--r-- 1 root root 1916 Aug 11 2003 upgrade.log.syslog
-rw-r--r-- 1 root root 2481 Aug 31 11:27 winbindd_v1.patch
ftp>
UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: ftp access

Is there anyway I can open this system up, so that any user on this box can ftp and get anything from another system?

Meaning, I want ltcsweeps and root to be able to ftp into this system and get anything they want.
UNIX IS GOOD
Ivan Ferreira
Honored Contributor

Re: ftp access

It seems that the user is chrooted, please post the output of ls / and pwd.


Configure:

chroot_list_enable=NO
chroot_local_user=NO
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Vipulinux
Respected Contributor

Re: ftp access

Hi
If the /etc/ftpusers file exists the user from which you are trying to login must not be listed in that file.

Cheerz