Help answer threads with 0 replies.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 07-10-2008, 05:13 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 22

Rep: Reputation: 15
Chroot and sftp on Solaris 10

Hi Guys,

Anyone have tried to implement chroot and sftp on Solaris 10? If so, kindly tell how. thanks.
Old 07-10-2008, 05:49 PM   #2
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
This is not a how-to; it assumes you need only clues.

* Become root
* Create the structure necessary to host chrooted FTP:
ftpconfig -d /some/dir/name (being aware it will add /bin, /usr, /etc, and /pub to your specified directory, especially note it creats /pub!!!)
* vi /etc/group
add ftponly::21:
* vi /etc/shells
add /bin/true
* vi /etc/passwd
add ftp2:x:400:21:FTP user:/some/dir/name/./pub:/bin/true
* vi /etc/ftpd/ftpaccess
Insert these options
> guestgroup ftponly
> log commands real,guest,anonymous
> log security real,guest,anonymous
> log transfers real,guest,anonymous inbound,outbound
> upload /some/dir/name/pub * no
> upload /some/dir/name/pub /pub yes ftp2 ftponly 0666 nodirs
> upload /some/dir/name/pub /pub yes ftp2 ftponly 0666 nodirs
* passwd ftp2
* svcadm enable ftp

Last edited by custangro; 07-10-2008 at 05:51 PM.
Old 07-15-2008, 10:48 PM   #3
Registered: Jul 2008
Posts: 40

Rep: Reputation: 15
I think he wanted sftp not normal ftp.

this should work on solaris.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rssh/sftp chroot problem julz_51 Linux - Security 1 11-01-2005 04:50 PM
chroot sftp user group bmeckle Linux - Newbie 0 06-02-2004 04:58 PM
sftp + chroot ... almost schwing Linux - Software 1 10-26-2003 09:31 PM
Sftp and chroot axman Linux - Security 4 10-02-2003 05:51 PM
chroot sftp user? cliffyman Linux - Security 8 05-08-2003 10:58 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration