|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/root/usr/share/system-config-samba/ |
Upload File : |
mς eΣJc @ s d k Z d k Z d k Z d k Z d k l Z l Z d k i Z d Z e i e e i i e d Z d e f d YZ d S( N( t _s N_s system-config-sambas /usr/bin/pdbeditt SambaUserDatac B s t Z d Z d Z d Z e e e Z d Z e d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z RS( Nc C s | | _ d S( N( t parentt selft ParentClass( R R ( ( t/ /usr/share/system-config-samba/sambaUserData.pyt __init__$ s c C s! | | _ | i | i d S( N( t parserR t _parsert readSmbPasswordst readSmbUsersFile( R R ( ( R t _set_parser' s c C s | i S( N( R R ( R ( ( R t _get_parser, s c C sλ g } t i d t d } x? | i D]1 } t i | d d j o | i | q) q) W| i } | p t i | d j o | | _ nS t i d j o t t d t n) t t d d i t t i | d S( Ns %s -L -w 2>&1t ri t #s) You do not have permission to execute %s.s+ Error while reading Samba password list: %ss ( t listt ost popent pdbeditcmdt fdt readlinest linet stringt stript appendt closet statust WEXITSTATUSR t samba_passwd_filet getuidt RuntimeErrorR t joint mapt str( R R R R R ( ( R R 1 s c C sC | i i d } | i d p | i d d n | i d S( Ns [global]s username maps /etc/samba/smbusers( R R t getSectiont globalsectiont keyExistst setKeyt getKey( R R# ( ( R t smbusers_file_pathE s c C s | i } t i | t i d j oe t i | t i d j o2 t | d } | i } | i | | _ q t t d | n d S( Ni R s' Cannot read %s. Program will now exit.( R R' t pathR t accesst F_OKt R_OKt openR R t linesR t samba_users_fileR R ( R R- R R( ( ( R R L s c C s | i S( N( R R ( R ( ( R t getPasswdFileZ s c C s | i S( N( R R. ( R ( ( R t getUsersFile] s c C sr h } xe | i D]Z } t i | } | o>