Operating System - HP-UX
1833210 Members
2900 Online
110051 Solutions
New Discussion

Enable FTP access for specific user???

 
Veron_Le
Frequent Advisor

Enable FTP access for specific user???

Hi there,

Now I can ftp by using root but cannot use user "veron". why? anh how can to turn on this service for "veron" user.

Thanks for your prompt answers
13 REPLIES 13
Antonio Cardoso_1
Trusted Contributor

Re: Enable FTP access for specific user???

- is the shell mentioned for user veron in /etc/password also declared in /etc/shells ?

- check /etc/ftpd/ftpusers for restrictions on this user.
Ninad_1
Honored Contributor

Re: Enable FTP access for specific user???

you can use the /etc/ftpd/ftpusers file to restrict users from allowing ftp.
Please check if such a file exists and which users are specified in this file. Remove the entry for veron from this file if present.
Also you can control ftp access using /etc/ftpd/ftpaccess - do man ftpaccess.
For this you need to have the ftpd entry in the /etc/inetd.conf as ftpd -a
do man ftpd.

regards,
Ninad
Veron_Le
Frequent Advisor

Re: Enable FTP access for specific user???

there are nothing else in /etc/ftpd folder except two empty folders "ftp-exec" and "pids". I can use this 'veron' user to telnet but ftp.
help pls
Ninad_1
Honored Contributor

Re: Enable FTP access for specific user???

Can you post the output of
grep ftp /etc/inetd.conf

Regards,
Ninad
Enrico P.
Honored Contributor

Re: Enable FTP access for specific user???

Hi,
any error when you try ftp?
Check the syslog of the ftp server also

Enrico
Veron_Le
Frequent Advisor

Re: Enable FTP access for specific user???

here is the output:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
# Before uncommenting the "tftp" entry below, please make sure
# that you have a "tftp" user in /etc/passwd. If you don't
# have one, please consult the tftpd(1M) manual entry for
tftp dgram udp wait root /usr/lbin/tftpd tftpd\

for your further info, I can ftp by root but veron
Ninad_1
Honored Contributor

Re: Enable FTP access for specific user???

What error does it display on the screen when you try to ftp with veron.
Also what is the error message logged to /var/adm/syslog/syslog.log when your ftp login fails ?

Regards,
Ninad
Veron_Le
Frequent Advisor

Re: Enable FTP access for specific user???

the output of ftp:
ftp 15.76.14.5
Connected to 15.76.14.5.
220 hpux01 FTP server (Version 1.1.214.6 Wed Feb 9 08:03:34 GMT 2000) ready.
User (15.76.14.5:(none)): veron
530 User veron access denied...
Login failed.
ftp>

Pls help.
Warren_9
Honored Contributor

Re: Enable FTP access for specific user???

hi,

did you check the /etc/shells? which should include the default shell for "veron"

GOOD LUCK!!
Veron_Le
Frequent Advisor

Re: Enable FTP access for specific user???

Hi,

Unlucky, there are no shells:
ll /etc/shell*
/etc/shell* not found

Veron
Mridul Shrivastava
Honored Contributor

Re: Enable FTP access for specific user???

Edit the /etc/inetd.conf file and add the '-a' option to enable ftpd to use the ftpaccess file. Here is an example;

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a

Tell inetd to reread its configuration file so the change takes effect:

/usr/sbin/inetd -c

---> could u pls check is there any entry in inetd.conf file like "-a" if it is then its reading ftp access file and we have to add this user there.
Once u confirm it I can post the procedure for the same.
Time has a wonderful way of weeding out the trivial
Warren_9
Honored Contributor

Re: Enable FTP access for specific user???

hi Veron,

# grep veron /etc/passwd | cut -d : -f 7 > /etc/shells

GOOD LUCK!!
Veron_Le
Frequent Advisor

Re: Enable FTP access for specific user???

Thanks all, I fixed this problem by editing /etc/shells
Veron