Topic: Cannot create users

Hi - I've installed MySecureShell v1.15 on an Ubuntu 9.10 amd64 machine, connections work fine but I cannot create users either through the gui (v 1.85) or on the command line using (as root);
sftp-user create testuser

The command appears to execute correctly, returning '0' but I don't get prompted for a password and no entry is added to /etc/passwd.

When using the gui, the add user prompt appears, I enter a username and password (which appears un-hashed) click ok, and then finish - but again nothing is added to the drop down list of usernames, or /etc/passwd.

Any help would be great - cheers in advance!

Russ

my sftp_config is as follows

cat /etc/ssh/sftp_config
<Default>
    Home                           $HOME/
    DefaultRights                  0640 0750
    GlobalDownload                 50k
    Upload                         0
    LimitConnectionByUser          1
    StayAtHome                     true
    ShowLinksAsLinks               false
    LimitConnection                10
    HideNoAccess                   true
    Download                       5k
    IdleTimeOut                    5m
    ResolveIP                      true
    VirtualChroot                  true
    GlobalUpload                   0
    LimitConnectionByIP            2
</Default>

<Group sftp_administrator>
    IsAdmin                        true
    VirtualChroot                  false
    IdleTimeOut                    0
    StayAtHome                     true
</Group>

<User sftptest>
    IsAdmin                        true
    StayAtHome                     true
</User>

<User ftp2>
    Home                           $HOME/
</User>

2 (edited by teka 2010-01-01 17:50:18)

Re: Cannot create users

Hi,

sftp-user is boggus....

Modify sftp-user (in /usr/bin), at ligne 25:

for i in "$nameuser" "$homeuser" ; do

change to

for i in "$nameuser" ; do

It's fixed for next version ! wink