Operating System - HP-UX
1752565 Members
5351 Online
108788 Solutions
New Discussion юеВ

Re: configuring FTP in HP-UX

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

configuring FTP in HP-UX

Hi

I want to configure FTP in HP-UX.

pls explain me following things.

1)what is the configuration files for FTP.
2) How to start / stop / restart FTP.
3) How to enable anonymous login.
4) How to enable local user login.
5 so i want major details for FTP administration.

12 REPLIES 12
likid0
Honored Contributor

Re: configuring FTP in HP-UX

The Default ftp server runs as an inetd service:

cat /etc/inetd.conf| grep -i ftpd
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l

to stop/start it, you just have to comment the line in inetd.conf and do a inetd -c.

for the rest of the questions, you would probably be better using the ftpaccess file.

You need to add -a to the inetd.conf ftp line, like this:
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -la


for info on ftpaccess file config have a look at:

man ftpaccess
Windows?, no thanks
Suraj K Sankari
Honored Contributor
yulianto piyut
Valued Contributor

Re: configuring FTP in HP-UX

1) no configuration files for ftp at hp-ux
2) to start ftp daemon, edit your /etc/inetd.conf and uncomment line ftp, then run "inetd -c" and vice versa to stop it
3) ??
Md. Farhan A Azam
Trusted Contributor

Re: configuring FTP in HP-UX

Hi,

Plz check the below links, hope it will help you to understand FTP.

Managing FTP.
http://docs.hp.com/en/5992-4616/ch03s03.html

Configuring FTP.
http://docs.hp.com/en/B2355-91058/ch02.html

Configuring Anonymous FTP Access
http://docs.hp.com/en/B2355-91058/ch02s03.html

щ╗ЮчЗГ
Valued Contributor

Re: configuring FTP in HP-UX

These links can help,

http://docs.hp.com/en/B2355-91058/ch02.html


http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1010514
Man's mind, once stretched by a new idea, never regains its original dimensions
Johnson Punniyalingam
Honored Contributor
Solution

Re: configuring FTP in HP-UX

1)what is the configuration files for FTP.

# vi /etc/inetd.conf (...uncomment the following ftp/telnet lines):

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp nowait root /usr/lbin/telnetd telnetd

2) How to start / stop / restart FTP

inetd -c
Make inetd re-read its configuration

3) How to enable anonymous login.

You can use SAM (or)

You can follow as bellow to creat anonymous user

1) Create a normal user account (user=john group=none)
2) Put /usr/bin/false as the start-up program.
3) The entry in password file might look like this :-
john:chus5tya:233:20:,,,:/home/john/./:/usr/bin/false
4) Make sure /usr/bin/false is also coded in /etc/shells
5) Create the file /etc/ftpd/ftpaccess and put in these lines ..
class all john,guest
guestgroup none
noretrieve /etc/passwd
6) do man ftpaccess if not sure about the format.
7) # chmod 444 ftpaccess
# chown bin:bin ftpaccess
8) Edit /etc/inetd.conf & add "-a" argument to ftpd
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
9) # inetd -c
10) Create these sub dirs and files
1) ~john/usr
# chown ???R bin:bin usr
# chmod 555 usr
2) ~john/usr/bin
# chown root bin
# chmod 555 bin
# cp -p /sbin/ls ~john/usr/bin/ls


4) How to enable local user login.

by default all local user enabled, unless if you ftp.allow or ftp.deny file under you ftp service

5)so i want major details for FTP administration

now days "ftp" & telnet has been rollout due security issues,

adminstration point "Nothing" much to say.
if one time configuration for ftp .. no need administration. easy and simple.

Thanks,
Johnson


Problems are common to all, but attitude makes the difference
Ganesan R
Honored Contributor

Re: configuring FTP in HP-UX

Hi Senthilkumar,

1)what is the configuration files for FTP.
Not much.Some important files are /etc/inetd.conf, /etc/services, /etc/ftpd/ftpaccess.

2) How to start / stop / restart FTP.
You don't need to do. inetd daemon will respond whenever ftp request comes. You can enable/disable the services.

3) How to enable anonymous login.
Check these threats..
http://forums13.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=762603&admit=109447627+1237377314912+28353475
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1237376387425+28353475&threadId=1034034


4) How to enable local user login.
By default all the local users will be given ftp access unless if the user is specified in /etc/ftpd/ftpaccess

5) so i want major details for FTP administration.

http://docs.hp.com/en/B2355-90148/ch03s01.html
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: configuring FTP in HP-UX

Hi Again,

http://docs.hp.com/en/B2355-90147/ch02s09.html
Best wishes,

Ganesh.
Avinash20
Honored Contributor

Re: configuring FTP in HP-UX

Also just to add, you might face issue while logging to FTP with Access denies (530)

You need to have the shell of that user to be included in /etc/shells

*** /etc/shells ***
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh

"Light travels faster than sound. That's why some people appear bright until you hear them speak."