Reply To: Best way to tranfer files to ZeroShell?

Home Page Forums Network Management ZeroShell Best way to tranfer files to ZeroShell? Reply To: Best way to tranfer files to ZeroShell?

#47572

_dan
Member

@kawarmc wrote:

If you want to enable sftp transfers to Zeroshell, you can edit /etc/passwd and change the line for admin user to read like:

admin:x:0:0:root:/root:/bin/bash

I made this script to to shift between menu and bash, enable/disable SCP access.

#!/bin/bash
# Script to enable/disable SCP on ZeroShell

ENABLE=/bin/bash
DISABLE=/root/kerbynet.cgi/scripts/localman

case $(awk -F: '/admin/{print $NF}' /etc/passwd) in
$DISABLE ) chsh -s ${ENABLE} admin ;;
$ENABLE ) chsh -s ${DISABLE} admin ;;
esac

This is my first post on this forum, thanks fulvio and ZeroShell community for this useful OS.

Regards,
Dan