1834041 Members
2262 Online
110063 Solutions
New Discussion

ftp problem

 
Vishal Phlad_1
Occasional Contributor

ftp problem

Hi All

I need to do the following for ftp
1. Limit users so that they can see only their own home directories eg /home/user
2. Allow some of these users to also see another directory eg /mnt5/dumps

Step 1 can be done using the ftpaccess file.
How can I solve step 2

We are on HP-UX 11.0

TIA
5 REPLIES 5
Eileen Millen
Trusted Contributor

Re: ftp problem

You can create a UNIX group for the users
who will have to access that directory.

Eileen
harry d brown jr
Honored Contributor

Re: ftp problem

Do a man on "ftpaccess", and look at the command "cdpath ....." this allows you to restrict where they can go.


live free or die

harry
Live Free or Die
Rita C Workman
Honored Contributor

Re: ftp problem

I don't believe the ftpaccess file will hold those users in Step 1 to their home directory....you may find chroot will do a better job. I prefer to simply edit (vipw) the passwd file and add " ./" to the end of their home/user directory.
Now for Step 2..do not do a chroot for these users and simply set file/group permissions for these users so they can get to the files.

Just a thought,
Rita
Joseph Chakkery
Valued Contributor

Re: ftp problem

Hello,

Making a seperate group for these users and give same group name for /mnt5/dumps

Regards
Joe
Knowledge is wealth
harry d brown jr
Honored Contributor

Re: ftp problem

Look here for samples:

/usr/newconfig/etc/ftpd/examples/


live free or die

harry
Live Free or Die