AnyEvent::FTP::Server::OS::UNIX - UNIX implementations for AnyEvent::FTP
version 0.07
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.
chroot
Drop super user privileges
Author: Graham Ollis <plicease@cpan.org>
Contributors:
Ryo Okamoto
Shlomi Fish
This software is copyright (c) 2013 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.
To install AnyEvent::FTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::FTP
CPAN shell
perl -MCPAN -e shell install AnyEvent::FTP
For more information on module installation, please visit the detailed CPAN module installation guide.