Hi,
I want to be able to add user programatically and grant them write permission. 
How do I achieve this?
Found a WritePermission-class, but not sure how to use it!

I need this feature during enterprise testing.

Adding user using:
        FtpServerContext context = server.getServerContext();
        UserManager userManager = context.getUserManager();

        BaseUser userToAdd = new BaseUser();
        userToAdd.setName(name);
        userToAdd.setPassword(pass);

        userManager.save(userToAdd);

This works fine.

Also there is a need to set home directory later on...

Appreciate any hints!
/Bosse

Reply via email to