1833845 Members
2356 Online
110063 Solutions
New Discussion

FTP user account

 
SOLVED
Go to solution
Ali Imran Abbas
Regular Advisor

FTP user account

I have an encrypted file that resides on one of hp-ux servers and it needs to be transferred to some other company via ftp. The other company will initiate ftp to our server to get this file. I have few questions in this regard.

1-Can some one explain me the procedure to create ftp-only account so that the client can ftp this file using this account.

2- Can I use ssh for this operation, the other client is using windows software on their end. They dont have hp-ux on their end.

3- If yes, can you also explain the process of setting up ftp via ssh.

Regards,

Ali
2 REPLIES 2
TTr
Honored Contributor
Solution

Re: FTP user account

1) The ftp only account is created just like any other account but instead of a regular shell you use /usr/bin/false for its shell. You also add the line "usr/bin/false" in /etc/shells. You can test this and ftp to this account locally.

2), 3) Yes you can use ssh. All you need is to have is the sshd running on your server. The other side can use an SCP program on their windows system. PSCP is a good one and it is part of the Putty suite.

Search in this forym for SCP and "FTP only"
Tim Nelson
Honored Contributor

Re: FTP user account

for sftp only the shell needs to be /opt/ssh/utils/sftponly

otherwise this is no different.


create user for ftp only:
useradd -u xxx -g xxx -m -c "comment" -s /usr/bin/false -h /home/username username

create user for sft only:
useradd -u xxx -g xxx -m -c "comment" -s /opt/ssh/utils/sftponly -h /home/username username


Neither method will allow the user to change their password. If you wish for this then one suggestion is to write a simple script that executes the password command. add this script name and path to /etc/shells



-appreciation for the help can be given by assigning points. You have only assigned only 58 points to over 200 responses. This might also help you to get more responses to your questions ?

-Links to all your questions can be found by clicking on "My profile" in the left nav.