LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 07-10-2008, 04:13 PM   #1
omlex
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, 04:49 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,935
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
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 04:51 PM.
 
Old 07-15-2008, 09:48 PM   #3
jamesapnic
Member
 
Registered: Jul 2008
Posts: 40

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

http://chrootssh.sourceforge.net/download/

this should work on solaris.
 
  


Reply


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 03:50 PM
chroot sftp user group bmeckle Linux - Newbie 0 06-02-2004 03:58 PM
sftp + chroot ... almost schwing Linux - Software 1 10-26-2003 08:31 PM
Sftp and chroot axman Linux - Security 4 10-02-2003 04:51 PM
chroot sftp user? cliffyman Linux - Security 8 05-08-2003 09:58 PM


All times are GMT -5. The time now is 09:17 PM.

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