403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/distros/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/distros/__pycache__/freebsd.cpython-314.pyc
+
��i"����^RIt^RIt^RIt^RIHt^RIt^RIHtHt^RI	H
t
^RIHtH
t
]P!]4t!RR]P"P$P&4tR#)�N)�StringIO)�subp�util)�FreeBSDNetworking)�
PER_ALWAYS�PER_INSTANCEc�:a�]tRt^toRt]tRtRtRt	Rt
.R%OtRR.tRR.t
RR	.tRR
.tRtRtR
tRt.R&Ot]R'Rl4t]RR/V3RlRll4tRtV3RlRltRtR(RltRtRtR'RltRtRR/Rlt ]!V3R lR!l4t"]!V3R"lR#l4t#R$t$Vt%R#))�DistrozM
Distro subclass for FreeBSD.

(N.B. DragonFlyBSD inherits from this class.)
z/usr/local/libz/etc/login.confz/etc/login.conf.origz,/usr/local/etc/sudoers.d/90-cloud-init-users�pkg�install�remove�update�upgradeTz/homez/var/dbzdhclient.leases.\w+Nc��\PPR4pVf\P	R4R#\
P
!RRV.RVR7#)z�
Tell rc to reload its configuration
Note that this only works while we're still in the process of booting.
May raise ProcessExecutionError
�RC_PIDNz0Unable to reload rc(8): no RC_PID in Environment�killz-SIGALRMT��capture�rcs)�os�environ�get�LOG�warningr)�clsr�rc_pids&& �;/usr/lib/python3/dist-packages/cloudinit/distros/freebsd.py�reload_init�Distro.reload_init7sE��������)���>��K�K�J�K���y�y�&�*�f�5�t��M�M�rc�,<�V^8�dQhRS[RS[RS[/#)��action�service�
extra_args��str)�format�
__classdict__s"�r�__annotate__�Distro.__annotate__Fs%���5�5��5�#&�5�58�5r c���VPpRVR.RVR.RVR.RVR.RVR.RVR.RVR.RVR.R	VR.R
VR.RVR.RVR./pWVV,,\V4,p\P!VR
VR7#)z�
Perform the requested action on a service. This handles FreeBSD's
'service' case. The FreeBSD 'service' is closer in features to
'systemctl' than SysV init's 'service', so we override it.
May raise ProcessExecutionError
�stop�start�enable�enabled�disable�onestart�onestop�restart�reloadz
try-reload�status�	onestatusTr)�init_cmd�listr)rr#r$rr%r8�cmds�cmds&&&$*   r�manage_service�Distro.manage_serviceEs����<�<���W�f�%��g�w�'��w��)����+����+���*�-����+����+��w�	�*��7�I�.��w��)��'�;�/�

���f��%��Z�(8�8���y�y��d��4�4r c��RRRVRV.#)�pw�usermod�-n�-G�)�self�member_name�
group_names&&&r�_get_add_member_to_group_cmd�#Distro._get_add_member_to_group_cmdas���i��{�D�*�E�Er c� <�V^8�dQhRS[/#)r"�return)�bool)r(r)s"�rr*r+ds���<�<�$�<r c�R�\P!V4'd\PRV4R#RRRV.pRRRV.pRRRR	R
RRR
RRRRRR/pRRRRRR/pVP	4F�wrxWu9dIV'dA\V\\34'd%VPWW,\
V4.4KSWv9gK[V'gKeVPWg,4VPWg,4K�	RV9gRV9d$VPR4VPR4MsVPRVPRV24p	VPRV	,4VPR4VPRV	,4VPR4\PRV4\P!W4R7TPR!R"4p
T
eTPYR#R$7R## \d\P!\R T4hi;i)%zf
Add a user to the system using standard tools

Returns False if user already exists, otherwise True.
z!User %s already exists, skipping.Fr?�useraddrA�homedirz-d�gecos�-c�
primary_groupz-g�groupsrB�shellz-s�inactivez-E�uidz-u�
no_user_groupz--no-user-group�systemz--system�no_log_initz
--no-log-init�no_create_homez-d/nonexistent�/z-mzAdding user %s)�	logstringzFailed to create user %s�passwdNT)�hashed)r�is_userr�info�items�
isinstancer'�int�extend�appendr�home_dirr�	Exception�logexc�
set_passwd)rD�name�kwargs�pw_useradd_cmd�log_pw_useradd_cmd�pw_useradd_opts�pw_useradd_flags�key�valrN�
passwd_vals&&,        r�add_user�Distro.add_userds����<�<�����H�H�8�$�?���	�4��6��"�I�t�T�:��
�t��T��T��d��T����4�
��
�.��j��?�
������H�C��%�#�*�S�3��*�2M�2M��%�%��';�S��X�&F�G��(�S�S��%�%�&6�&;�<�"�)�)�*:�*?�@�
'��v�%��V�);��!�!�"2�3��%�%�&6�7��j�j��t�}�}�o�Q�t�f�,E�F�G��!�!�$��.�1��!�!�$�'��%�%�d�W�n�5��%�%�d�+�	���!�4�(�	��I�I�n�C��Z�Z��$�/�
��!��O�O�D�T�O�:����	��K�K��7��>��	�s�;G=�=)H&c��\P!RRVRR.4R# \d\P!\RT4hi;i)r?r@�-pz01-Jan-1970z"Failed to set pw expiration for %sN�rrfrrgr)rD�users&&r�
expire_passwd�Distro.expire_passwd�sA��	��I�I�t�Y��d�M�B�C���	��K�K��A�4�H��	��	��)AFc���V'dRpMRp\P!RRWR.VRV,R7R# \d\P!\RT4hi;i)	z-Hz-hr?r@�0zchpasswd for %s)�datar[zFailed to set password for %sNrv)rDrwr\r]�hash_opts&&&& rrh�Distro.set_passwd�s\����H��H�	��I�I��y�$�#�6��+�d�2�
��
�	��K�K��<�d�C��	�s	�$5�)Ac��\P!RRVRR.4R# \d\P!\RT4hi;i)r?r@z-w�noz)Failed to lock password login for user %sNrv�rDris&&r�lock_passwd�Distro.lock_passwd�sA��	��I�I�t�Y��d�D�9�:���	��K�K��H�$�O��	�rzc�2�\PRV4R#)zRDragonfly BSD/FreeBSD password lock is not reversible, ignoring unlock for user %sN)r�debugr�s&&r�
unlock_passwd�Distro.unlock_passwd�s���	�	�
*��	
r c�b�\4p\P!VP4P	4FBpVP\P!RRV,V44VPR4KD	\P!VPVP4\P!VPVP44\PRV4\P!RVP.4R# \Pd�\P !\RT4\P!TPTP4R# \"d,\P !\RTP4R#i;ii;i)z	^default:zdefault:lang=%s:�
zRunning cap_mkdb for %s�cap_mkdbzFailed to apply locale %szFailed to restore %s backupN)rr�load_text_file�
login_conf_fn�
splitlines�write�re�sub�copy�login_conf_fn_bak�
write_file�getvaluerr�r�ProcessExecutionErrorrg�IOError)rD�locale�out_fn�newconf�lines&&&  r�apply_locale�Distro.apply_locale�s7���*���'�'��(:�(:�;�F�F�H�D��M�M����|�%8�6�%A�4�H�
�
�M�M�$��	I�	
�	�	�$�$�$�d�&<�&<�=�	
����*�*�G�,<�,<�,>�?�	��I�I�/��8��I�I�z�4�#5�#5�6�7���)�)�	��K�K��8�&�A�
��	�	�$�0�0�$�2D�2D�E���
�����6��8J�8J���
��	�s*�8D�1F.�+E4�41F*�%F.�)F*�*F.c�
�RR/#)zBReturn environment vars used in FreeBSD package_command
operations�ASSUME_ALWAYS_YES�YESrC)rDs&r�_get_pkg_cmd_environ�Distro._get_pkg_cmd_environ�s��$�U�+�+r �forcec�~�VPPRVPR.V'd\M\R7R#)zupdate-sourcesr)�freqN)�_runner�run�package_commandrr)rDr�s&$r�update_package_sources�Distro.update_package_sources�s1��������� � �
�J�$��,�		�	
r c�><�V^8�dQhRS[RS[RS[RS[RS[RS[/#)r"�path�
lease_file�pid_file�	interface�config_filerJ)r'r9)r(r)s"�rr*r+�sE���	
�	
��	
��	
��	
��		
�
�	
�
�
	
r c�D�VRVRV.V'dRWC.,#V.,#)z-lrurPrC)r�r�r�r�r�s&&&&&r�build_dhclient_cmd�Distro.build_dhclient_cmd�s5���d�J��h�7�.9�T�;�*�
�	
�@I�{�
�	
r c�$<�V^8�dQhRS[RR/#)r"�devicerJNr&)r(r)s"�rr*r+�s���3�3�C�3�D�3r c�8�\P!RRV.4R#)�
camcontrol�ejectN)r)r�s&r�eject_media�Distro.eject_media�s���	�	�<��&�1�2r rC)r?�group�add)z
^{username}::z^{username}:\*:z^{username}:\*LOCKED\*:)N)F)&�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�networking_cls�usr_lib_execr�r��
ci_sudoers_fn�group_add_cmd_prefix�pkg_cmd_install_prefix�pkg_cmd_remove_prefix�pkg_cmd_update_prefix�pkg_cmd_upgrade_prefix�prefer_fqdnre�dhclient_lease_directory�dhclient_lease_file_regex�#shadow_empty_locked_passwd_patterns�classmethodrr<rGrrrxrhr�r�r�r�r��staticmethodr�r��__static_attributes__�__classdictcell__)r)s@rr
r
s�����'�N�#�L�%�M�.��B�M�1��#�Y�/��"�H�-��"�H�-��#�Y�/���K��H� )�� 6��+�'��N��N��5�>B�5�5��5�6F�<�<�|�� �
��8,�

�e�
��	
��	
��3��3r r
)�loggingrr��ior�cloudinit.distros.bsd�	cloudinitrr�cloudinit.distros.networkingr�cloudinit.settingsrr�	getLoggerr�r�distros�bsd�BSDr
rCr r�<module>r�sO���	�	��� �:�7�
����!��j3�Y�
�
�
"�
"�
&�
&�j3r 

Youez - 2016 - github.com/yon3zu
LinuXploit