Does "ftpconfig" do what you want?
It was designed to set up this kind of FTP access.

Regards,
Brian


The Defiant wrote:
Hi all,
With in a zone, I'm trying to create FTP access to a "specific folder" under 
htdocs (basically to upload files):
Followed the below instructions from another soalris forum.
1) cat /etc/passwd|cut -f 1 -d: > /etc/ftpusers
2) At the prompt :
    echo 'echo "This account only allows FTP Access."' > /bin/ftponly
    make the file executable
    chmod a+x /bin/ftponly
3) Next check to see if you have the file /etc/shells
   a) If you have, edited the file and add
         /bin/ftponly
   b) If not do
       ls /bin/*sh > /etc/shells
        then add the /bin/ftponly line
4) Next create the user
   useradd -c "FTP Only User" -d /home/ftpfiles -m -s /bin/ftponly -g staff 
ftponly
5) give the ftponly account a passwd
passwd ftponly.


The "ftponly" account works fine; execpt its not chroot'ed to the perticular folder (The account can obtain /root access). Can someone help with limiting the access to a specific folder.
Thx in advance

--
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