#freeze
[[FrontPage]]

#contents
*Add new Member [#h6684f9b]
 adduser newaccount
ユーザIDとPWを決定する。例:User-Name : NewUser Password  : password

/root/Scponly へ移動し、setup.shを実行する

 cd /root/Scponly
 ./setup.sh
 
 Next we need to set the home directory for this scponly user.
 please note that the user's home directory MUST NOT be writeable
 by the scponly user. this is important so that the scponly user
 cannot subvert the .ssh configuration parameters.
 
 for this reason, a writeable subdirectory will be created that
 the scponly user can write into.
 
 -en Username to install [scponly]
 NewUser
 -en home directory you wish to set for this user [/home/NewUser]
 
 -en name of the writeable subdirectory [incomming]
 
 
 creating  /home/NewUser/incomming directory for uploading files
 
 Your platform (FreeBSD) does not have a platform specific setup script.
 This install script will attempt a best guess.
 If you perform customizations, please consider sending me your changes.
 Look to the templates in build_extras/arch.
 - joe at sublimation dot org
 
 please set the password for NewUser:
 Changing local password for NewUser
 New Password:password
 Retype New Password:password
 if you experience a warning with winscp regarding groups, please install
 the provided hacked out fake groups program into your chroot, like so:
 cp groups /home/NewUser/bin/groups
 copy default files under incomming for NewUser:
 guard:root {106} %

これで、/home/NewUser/以下ができる。が、
 セッションは予期せずに閉じられました サーバはコマンドの戻り値 1 を出力しました
といわれて、アクセスができないので、古いライブラリをコピーする。
ターゲットが書き換えできるように、
 chflags -R noschg /home/NewUser/
する
 cp -Rp /root/Scponly/TEST/accessible/ /home/NewUser/
でアクセス可能になる。


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS