NAME
AnyEvent::FTP::Server::OS::UNIX - UNIX implementations for AnyEvent::FTP
VERSION
version 0.04_01
SYNOPSIS
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
DESCRIPTION
This class provides some utility functionality for interacting with the UNIX and UNIX like operating systems.
ATTRIBUTES
name
The user's username
uid
The user's UID
gid
The user's GID
home
The user's home directory
shell
The user's shell
groups
List of groups (as GIDs) that the user also belongs to.
METHODS
$unix->jail
chroot
to the users' home directory. Requires root and the chroot function.
$unix->drop_privileges
Drop super user privileges
AUTHOR
author: Graham Ollis <plicease@cpan.org>
contributors:
Ryo Okamoto
Shlomi Fish
COPYRIGHT AND LICENSE
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.