AnyEvent::FTP::Server::OS::UNIX - UNIX implementations for AnyEvent::FTP
use AnyEvent::FTP::Server::OS::UNIX; # interface using user fred my $unix = AnyEvent::FTP::Server::OS::UNIX->new('fred'); $unix->jail; # chroot $unix->drop_privileges; # transform into user fred
This class provides some utility functionality for interacting with the UNIX and UNIX like operating systems.
The user's username
The user's UID
The user's GID
The user's home directory
The user's shell
List of groups (as GIDs) that the user also belongs to.
chroot to the users' home directory. Requires root and the chroot function.
Drop super user privileges
Author: Graham Ollis <email@example.com>
José Joaquín Atria
This software is copyright (c) 2017-2021 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.