[[FrontPage]] #contents *Add new Member [#h6684f9b] adduser newaccount Username: newaccount Full name: newaccount Uid (Leave empty for default): Login group [newaccount]: guest Login group is guest. Invite yishizaka into other groups? []: Login class [default]: Shell (sh csh tcsh nologin) [sh]: csh Home directory [/home/newaccount]: Use password-based authentication? [yes]: Use an empty password? (yes/no) [no]: Use a random password? (yes/no) [no]: Enter password: Enter password again: Lock out the account after creation? [no]: Username : newaccount Password : ***** Full Name : newaccount Uid : 9067 Class : Groups : guest Home : /home/newaccount Shell : /bin/csh Locked : no OK? (yes/no): yes ユーザ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/ でアクセス可能になる。