Operating System - HP-UX
1826498 Members
1924 Online
109692 Solutions
New Discussion

ftp users with restricted access (anonymous)

 
MQ'ski
Regular Advisor

ftp users with restricted access (anonymous)

Hi. On the beginnning. I did try configure anonymous user and I see that user can operate only within his home directory.
I wan to ask you for tips how to:
1. Create anonymous ftp user and allow him access to few chosen directories
2. Create user (for instance) friend with ftp access only and access to some dir:
for instance: /tmp /var/tmp/anydirectories
and dont allow him to access another dir.
Regards
Marcin
5 REPLIES 5
Ramkumar Devanathan
Honored Contributor

Re: ftp users with restricted access (anonymous)

Marcin,

1. Create links to the specific directories to which you wish to give access in the anonymous ftp user's home dir - be cautious although.

2. chown the user's .profile file to root and deny write permission to particular user on his/her .profile, add an exit command unconditionally inside the .profile.

Should work.

- ramd.

HPE Software Rocks!
MQ'ski
Regular Advisor

Re: ftp users with restricted access (anonymous)

Sorry... links works?
I did try ... ok I will check again ;)
Ramkumar Devanathan
Honored Contributor

Re: ftp users with restricted access (anonymous)

Works fine on my linux box. i assumed it will work on hp-ux too. i am trying anyways.

- ramd.
HPE Software Rocks!
Ramkumar Devanathan
Honored Contributor

Re: ftp users with restricted access (anonymous)

Well it doesn't seem to work as i'd expected. As root, I created a link ramd to another directory /ramd in /home/ftp. Somehow when i connect thro' anonymous ftp, and cd to the directory ramd, it gives this message 'too many levels of symbolic links'.

- ramd.
HPE Software Rocks!
MQ'ski
Regular Advisor

Re: ftp users with restricted access (anonymous)

exactly ,).