403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/landscape/user/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/user/management.pyc
ó
}9Rc@sdddlZddlZddlZddlmZddlmZmZdefd„ƒYZ	dS(iÿÿÿÿN(tmd5crypt(tUserManagementErrortUserProvidertUserManagementcBs¤eZdZdd„Zd„Zd„Zd„Zddddddd„Zd„Z	d„Z
ed„Zd	„Z
d
„Zd„Zd„Zd
„Zd„ZRS(sManage system users and groups.cCs|ptƒ|_dS(N(Rt	_provider(tselftprovider((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pyt__init__sc	Cstjd|ƒd||pd|p(d|p1df}	d|dd|	g}
|r{|
jdt|jj|ƒƒgƒn|j|
ƒ\}}|dkrµtd	||fƒ‚n|j||ƒ|r|jd
|dgƒ\}}
|dkrtd||
fƒ‚q||
7}n|S(
s¯Add C{username} to the computer.

        @raises UserManagementError: Raised when C{adduser} fails.
        @raises UserManagementError: Raised when C{passwd} fails.
        sAdding user %s.s%s,%s,%s,%sttaddusers--disabled-passwords--gecoss--gidisError adding user %s.
%stpasswds-es(Error resetting password for user %s.
%s(	tloggingtinfotextendtstrRtget_gidt
call_popenRt
_set_password(Rtusernametnametpasswordtrequire_password_resettprimary_group_nametlocationt
work_phonet
home_phonetgecostcommandtresulttoutputt
new_output((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pytadd_users(	
cCs–|jdƒ}|jdƒ}tjdƒjdƒd }tj||ƒ}|jdd||gƒ\}}|dkr’td||fƒ‚n|S(	Ntasciiitbase64iÿÿÿÿtusermods-pis&Error setting password for user %s.
%s(tencodetosturandomRRR(RRRtsalttcryptedRR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pyR3s!cCsk|jj|ƒ}ddt|ƒ|g}|j|ƒ\}}|dkrgtd|||fƒ‚n|S(NR"s-gis+Error setting primary group to %d for%s.
%s(RRRRR(RRt	groupnametprimary_gidRRR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pyt_set_primary_group?scCs|jj|ƒ}tjd||ƒ|r>|j||ƒn|rW|j||ƒndg}	xWd|fd|fd|fd|fgD]+\}
}|d
k	r‹|	|
|g7}	q‹q‹Wt|	ƒdkr|j|	|gƒ\}}
|dkr
t	d	||
fƒ‚n|
Sd
S(s/Update details for the account matching C{uid}.s#Updating data for user %s (UID %d).tchfns-rs-fs-ws-hiis%Error setting details for user %s.
%sN(
Rtget_uidRRRR*tNonetlenRR(RRRRRtwork_numberthome_numberRtuidRtoptiontvalueRR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pytset_user_detailsIs"	"cCsl|jj|ƒ}tjd||ƒ|jdd|gƒ\}}|dkrhtd||fƒ‚ndS(sX
        Lock the account matching C{username} to prevent them from logging in.
        sLocking out user %s (UID %d).R"s-LisError locking user %s.
%sN(RR,RRRR(RRR1RR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pyt	lock_userbscCsl|jj|ƒ}tjd||ƒ|jdd|gƒ\}}|dkrhtd||fƒ‚n|S(s(Unlock the account matching C{username}.sUnlocking user %s (UID %d).R"s-UisError unlocking user %s.
%s(RR,RRRR(RRR1RR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pytunlock_usermscCs›|jj|ƒ}d|g}|rGtjd||ƒ|jdƒntjd||ƒ|j|ƒ\}}|dkr—td|||fƒ‚n|S(s:Remove the account matching C{username} from the computer.tdelusers<Removing user %s (UID %d) and deleting their home directory.s
--remove-homes@Removing user %s (UID %d) without deleting their home directory.is#Error removing user %s (UID %d).
%s(RR,RRtappendRR(RRtdelete_homeR1RRR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pytremove_userxs	
	
cCsTtjd|ƒ|jd|gƒ\}}|dkrPtd||fƒ‚n|S(s1Add C{group} with the C{addgroup} system command.sAdding group %s.taddgroupisError adding group %s.
%s(RRRR(RR(RR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pyt	add_groupŠscCs~|jj|ƒ}tjd|||ƒdd||g}|j|ƒ\}}|dkrztd||||fƒ‚n|S(s-Update details for the group matching C{gid}.s!Renaming group %s (GID %d) to %s.tgroupmods-nis*Error renaming group %s (GID %d) to %s.
%s(RRRRRR(RR(tnew_nametgidRRR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pytset_group_details“s	
	cCs|jj|ƒ}|jj|ƒ}tjd||||ƒ|jdd||gƒ\}}|dkrŒtd|||||fƒ‚n|S(s‚
        Add the user matching C{username} to the group matching C{groupname}
        with the C{gpasswd} system command.
        s-Adding user %s (UID %d) to group %s (GID %d).tgpasswds-ais6Error adding user %s (UID %d) to group %s (GID %d).
%s(RR,RRRRR(RRR(R1R?RR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pytadd_group_member s	cCs|jj|ƒ}|jj|ƒ}tjd||||ƒ|jdd||gƒ\}}|dkrŒtd|||||fƒ‚n|S(s‡
        Remove the user matching C{username} from the group matching
        C{groupname} with the C{gpasswd} system command.
        s1Removing user %s (UID %d) from group %s (GID %d).RAs-dis;Error removing user %s (UID %d) from group %s (GID (%d).
%s(RR,RRRRR(RRR(R1R?RR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pytremove_group_member±s		cCsl|jj|ƒ}tjd||ƒ|jd|gƒ\}}|dkrhtd|||fƒ‚n|S(s;Remove the account matching C{groupname} from the computer.sRemoving group %s (GID %d).tgroupdelis$Error removing group %s (GID %d).
%s(RRRRRR(RR(R?RR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pytremove_groupÃscCsI|jj|dtjdtjƒ}|jjƒ}|jƒ}||fS(Ntstdouttstderr(Rtpopent
subprocesstPIPEtSTDOUTRFtreadtwait(RtargsRHRR((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pyRÍs
N(t__name__t
__module__t__doc__R-RRRR*R4R5R6tFalseR:R<R@RBRCRER(((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pyRs"			
						
			
(
R$RRIt
landscape.libRtlandscape.user.providerRRtobjectR(((s=/usr/lib/python2.7/dist-packages/landscape/user/management.pyt<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit