Operating System - HP-UX
1849812 Members
2575 Online
104044 Solutions
New Discussion

[urgent] ftpaccess only its home directory

 
SOLVED
Go to solution
KCS_1
Respected Contributor

[urgent] ftpaccess only its home directory

Hi,all

I made a account which for ftp access only that can moves in its home directory by the attached file.But, it didn't work correctly,the account could move to all directory include of /

what can I see on this situation?



Easy going at all.
8 REPLIES 8
Sridhar Bhaskarla
Honored Contributor
Solution

Re: [urgent] ftpaccess only its home directory

Hi,

I see you created guestgroup 'ftponly'. Did you add the users that you want to restrict to it?.

Whenever the affected user does an ftp, it should display a message something like 'restrictions apply' something like that. Then only you are sure it works.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
KCS_1
Respected Contributor

Re: [urgent] ftpaccess only its home directory

thanks for quick replying

Yes, I did

after I have had a procedure from the file,
I test whether it works well or not,
No idea why the user that i want to restrict,can move to other directory freely.

Thanks

Easy going at all.
Sridhar Bhaskarla
Honored Contributor

Re: [urgent] ftpaccess only its home directory

Patrick,

Can you post your ftpaccess file?. See if you have these lines in it.

class local real,anonymous *.domain 0.0.0.0
class remote real,anonymous *

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
KCS_1
Respected Contributor

Re: [urgent] ftpaccess only its home directory

I've posted my ftpaccess file.





thanks in advance
Easy going at all.
Muthukumar_5
Honored Contributor

Re: [urgent] ftpaccess only its home directory

You have allowed searchable path as,
# cdpath
cdpath /incoming
cdpath /pub
cdpath /

so user can go /incoming /pub and / tooo.

Try to change the one with allowable path there.
Easy to suggest when don't know about the problem!
Sridhar Bhaskarla
Honored Contributor

Re: [urgent] ftpaccess only its home directory

Patrick,

I don't see any reason why it shouldn't work. Your ftpaccess file is looking good. I would double check the following.

1. Make sure the primary group of the user is ftponly.

2. Make sure -a is added to ftpd in /etc/inetd.conf. Also enable -l flag for further logging. Run 'inetd -c'.

Do you get any messages other than standard ftp text when you do ftp?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Muthukumar_5
Honored Contributor

Re: [urgent] ftpaccess only its home directory

Change the cdpath settings for the corresponding directories, so that cd will be moved upon path settings there.

cd /testing
cd /dir1
cd /

If you try cd stand then, it will search one bye one as,

cd /testing/stand
or
cd /dir1/stand
or
cd /stand
there

So change the one and TRY now.
Easy to suggest when don't know about the problem!
KCS_1
Respected Contributor

Re: [urgent] ftpaccess only its home directory

Thanks for all who helped me.

The problem was 'ftponly'group that what i want set.

Easy going at all.