Anda di halaman 1dari 2

[root@ites:/] #pwd

/
[root@ites:/] #ssh ftp
Last login: Tue Feb 3 13:11:36 2009 from 10.208.11.60
[root@buildbox ]# ls
adduser.ksh a.out CGI.pm.tar.gz Desktop install.log
software test.c user.pl
adduser.ksh.orig backup dbmmanage etc install.log.sys
log test test_dbm.c web
anaconda-ks.cfg CGI.pm-3.04 dellmgr-5.22-0.i386.rpm export qip
test2.pl test.pl web.tar
[root@buildbox ]# su - helpdesk
$ ls
ftpmgr.ksh ftpmgr.ksh.bak ld-linux.so.2 libacl.so.1 libattr.so.1 libc.so.6
libtermcap.so.2 n q
./ftp
$ ./ftpmgr.ksh
This script is designed to help the helpdesk
engineer to create the ftp user accounts
DISCLAIMER:
1. Please note that the FTP transfers happens in
clear text and not advisable for confidential
transfers.
2. The Space limit to be used on the ftp server is 250mb.
(The users can use more space but should quickly
delete the files after the transfer is over)
Please advice the users by email the same.

Press <enter> to continue, else <q> to quit:


1. Add the ftp user
2. Reset the password for the ftp account
3. Quit
Please select one of the above [1-3]: 1
This script is designed to create a typical user account
for use on the KLA-Tencor external public FTP server.
It will perform the following:
1. Create a standard home directory structure capable
of captivating the user via "chroot"
2. Enable the user's capability to publish files for
access by anonymous FTP or the web.
3. Add the appropriate entries in /etc/passwd
and /etc/shadow
4. Add an entry in /usr/local/apache/auth/webauth to
enable access control for the web.
Please be prepared to enter the following when prompted:
1. Login Name
2. User Comment
3. User Password
Login name (millerj)
Login name: lgarcia
User comment (Joe Miller,ABC corp,800-733-5565)
Please enter Point of Contact and a way to contact that person.
User comment: Garcia, Lisa
Specify directory template for constructing lgarcia's home directory
Use directory "/export/home/template" for template?? [y|n] y
-----------------------------------------
Logname: lgarcia
Uid: 1048
Gid: 1000
Comment: Garcia, Lisa
Directory: /export/home/lgarcia
Shell: /bin/true
-----------------------------------------
Do you want to set the password now? [y|n] y
Set the Unix password for lgarcia:
Changing password for user lgarcia.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
Do you want to enable the WebAuth access now? [y|n] y
Set the Webauth password for lgarcia:
/usr/local/apache/auth/webauth
New password:
Re-type new password:
User lgarcia added with password encrypted to XcJbwOSCvJDqI

Please note that old data must be removed after


the transfer and old files will be removed after 4 weeks.

1. Add another ftp user


2. Reset the password for the ftp account
3. Quit
Please select one of the above [1-3]: 3
$

Anda mungkin juga menyukai