AnyEve...S::UNIX(3pm)
π AnyEvent::FTP::Server::OS::UNIX β the UNIX-ish bits of AnyEvent::FTP π
okay so bestie, this is a page from the User Contributed Perl Documentation collection, and it's all about AnyEvent::FTP::Server::OS::UNIX β¨
β¨ VERSION β¨
version 0.20 π
πΈ SYNOPSIS πΈ
like, here's the whole vibe in one go:
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
so you spin up the object with a username β 'fred' here, iconic β and then you can jail it (that's the chroot moment π
) and drop_privileges to literally transform into user fred. no cap. π₯
π¦ DESCRIPTION π¦
This class is out here providing some utility functionality for interacting with UNIX and UNIX like operating systems. that's the whole job. it's giving "glue code but make it serve cunt" π«Ά
π ATTRIBUTES π
every attribute, no skipping, we're thorough in this house:
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β a list of groups, as GIDs, that the user also belongs to (not just the primary one, the side quests too π )
π METHODS π
π jail
$unix->jail;
chroot to the user's home directory. π
β οΈ bestie this one requires root and it requires the chroot function. no root, no chroot, no jail. it's giving "permission issues" π
π drop_privileges
$unix->drop_privileges;
drops super user privileges. bye bye root era πβ¨
π AUTHOR π
Author: Graham Ollis <plicease@cpan.org>
Contributors β the girlies who helped make it happen π:
- Ryo Okamoto
- Shlomi Fish
- JosΓ© JoaquΓn Atria
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2017-2022 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. go off, license, periodt π
okay so that's the whole page bestie, and here's your cute sign-off: this was rendered off of perl v5.40.1, dated 2026-02-16, coming at you under the AnyEve...S::UNIX(3pm) title from the User Contributed Perl Documentation collection π«Άπβ¨ slay, go chroot something responsibly π
π¦ where this page comes from
- ubuntu stonking: libanyevent-ftp-perl 0.20-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms