Operating System - HP-UX
1834093 Members
2370 Online
110063 Solutions
New Discussion

what should I copy to my restrict ftp user home directory

 
Duda_1
Frequent Advisor

what should I copy to my restrict ftp user home directory

I have use ftpaccess to restrict a user to his home directory only.
Everything works fine but he can't do any command. I just copy the "ls" command to his home directory... but I don't know what more should I copy to it.
Could somebody advice me?
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor

Re: what should I copy to my restrict ftp user home directory

User should not need anything else then a ls command, to list the contents. Unless you want to give some "Privileges" to the user.

-USA..
Good Luck..
Rick Garland
Honored Contributor

Re: what should I copy to my restrict ftp user home directory

There are a number of steps to complete for a secure restricted FTP service.

One method is setting up the chroot jail for the ftp user. In this case you need to copy over some of the more common commands (ls as example) into some of the directories you created under the chroot jail. Purpose is you are recreating a "lite" version of the OS that only that specific ftp user can use.

There is a document called "Securing the FTP service on HPUX: Anonymous FTP and a Restricted FTP Account" This document has all you need to get the configuration.

Robert Bennett_3
Respected Contributor

Re: what should I copy to my restrict ftp user home directory

Paolo -

All I have in /home/ftp/usr/bin is ls.

Since everything else works fine, I'm assuming you set up restricted ftp ok.

Hope this helps

B
"All there is to thinking is seeing something noticeable which makes you see something you weren't noticing which makes you see something that isn't even visible." - Norman Maclean
Joseph Loo
Honored Contributor

Re: what should I copy to my restrict ftp user home directory

hi,

make sure these steps r follow:

create the following subdirectories and files:
# cd
# mkdir /usr
# chown -R bin:bin usr
# chmod 555 usr

# mkdir /usr/bin
# cd bin
# chown -R bin:bin usr bin
# chmod 555 bin

# cp -p /sbin/ls //usr/bin/ls

hope this helps.

regards.
(p.s. remember to assign points)
what you do not see does not mean you should not believe
Duda_1
Frequent Advisor

Re: what should I copy to my restrict ftp user home directory

Thanks a lot
I did It ok.