AnyEve...S::UNIX(3pm)

πŸ“¦ version 0.20, in ubuntu stonking

πŸ’– 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

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