FTP configuration on HP-UX

FTP configuration on HP-UX

 

 

1.      Edit inetd.conf
Enable etc/ftpd/ftpaccess
Enabling or Disabling the /etc/ftpd/ftpaccess File
The following specifies how to enable or disable the /etc/ftpd/ftpaccess file:
• To enable the /etc/ftpd/ftpaccess file, specify the -a option for the ftp entry in the /etc/inetd.conf file. For example:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a -l -d
• To disable the /etc/ftpd/ftpaccess file, specify the -A option for the ftp entry in the /etc/inetd.conf file. For example:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -A -l -d
Otherwise, you can disable the /etc/ftpd/ftpaccess file by not specifying any option for the ftp entry in the /etc/inetd.conf file.
 
#etc/inetd –c
:Make inetd reload inetd.conf
 
2.      copy files from /usr/newconfig/etc/ftpd/examples to  etc/ftpd
• /etc/ftpd/ftpconversions
• /etc/ftpd/ftphosts
• /etc/ftpd/ftpusers
• /etc/ftpd/ftpgroups
• /etc/ftpd/ftpaccess
 
3.      create group
#groupadd ftpuser
 
4.      create user
#useradd testuser
#passwd testuser
5.      Edit etc/group
Add the new user to group
ftpuser::106:bluedusk
6.      Edit etc/ftpd/ftpaccess, add 5 rows:
chmod            yes             guest
delete           yes             guest
overwrite        yes             guest
rename           yes             guest
guestgroup       ftpuser
: this is to force the user to its own folder when access.
7.      Edit etc/passwd, give testuser a invalid shell
bluedusk:lBcUdgucgPH6.:108:20::/home/bluedusk:/bin/false
 
 
 
 
 
8.      copy ls to home/testuser
cp /sbin/ls /home/testuser/usr/bin
9.      commands
pwck :ckeck password
 
Ckconfig: check config
 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值