The Defiant wrote:
Ya bu I want to create an authenticated user who can access a perticular folder on existing folder with files in HTDOCS. Besides FTPCONFIG creates all those pub and dev folder.
Any help???

Apologies - that was not obvious to me from your original post.

However, I would still look at what ftpconfig does, as I believe it could be modified to do what you want it to.

In fact, the "-d" option may be useful to you to set up the directory ready for chroot (although I've not looked at it in detail).

/usr/sbin/ftpconfig is a ksh script, so it should be easy to copy and modify to your needs (or simply rip out the bits you want and do them manually).

Personally, I would also lean away from putting a shell script in place as the user's shell, in case there are any possible remote environment hacks which can allow access to the system. This seems to me to be made all the more dangerous by not explicitly specifying which shell interpreter to use with a #! line. A simple binary like /bin/true is IMO safer, although a little less informative if trying a non-ftp login. You could of course compile your own "hello world"-style binary which did the same.


Regards,
Brian


--
Brian Ruthven
Solaris Revenue Product Engineering
Sun Microsystems UK
Sparc House, Guillemont Park, Camberley, GU17 9QG

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to