How would you solve this situation in creating a new user in Webmin?

Greetings all,

I’m creating a quick SFTP server based off the system in my footer. I need to setup the user in the following method:

useradd -g sftp -d /sftp -s /sbin/nologin tester

mkdir -p /sftp/tester/Inbound
mkdir -p /sftp/tester/Outbound
chmod 700 /sftp/tester/Inbound
chmod 700 /sftp/tester/Outbound
chown root:sftp /sftp/tester
chown tester:sftp /sftp/tester/Inbound
chown tester:sftp /sftp/tester/Outbound

passwd tester

Is there any way to script this via a skeleton file or some fancy Webmin features? It’s been a while since I used those.


Linux ew-xftp2 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux
root@ew-xftp2:/sftp#
Package: webmin
Version: 2.105

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.