Difference between revisions of "SME User Account lock / unlock by Console"
Jump to navigation
Jump to search
(No difference)
|
Latest revision as of 23:45, 25 January 2013
SME Server Account lock / unlock by root Console
if you logged via ssh into the SME Server you can lock a user by:
$signal-event user-lock username
to check lock do:
db accounts show username
System shows:
username=user City=Home Company=MYFactory Dept=Office EmailForward=local FirstName=username ForwardAddress= LastName=USERNAME MaxBlocks=11534336 MaxBlocksSoftLim=10485760 PasswordSet=no ## no = locked!! Phone=+49-XXX Shell=/usr/bin/rssh Street=Wallstreet 1 Uid=5054
to set a low/short password do:
$passwd username [Press Enter] Enter new UNIX password: typeyourpassword passwd: all authentication tokens updated successfully.
for SMB Login do:
$smbpasswd -a username [Press Enter] New SMB password:typeyourpassword #same like Unix Word!!
to save all changes to SME Databases do:
signal-event user-modify username
to check unlock do:
db accounts show username
should now show:
username=user City=Home Company=MYFactory Dept=Office EmailForward=local FirstName=username ForwardAddress= LastName=USERNAME MaxBlocks=11534336 MaxBlocksSoftLim=10485760 PasswordSet=yes ## yes = unlocked !! Phone=+49-XXX Shell=/usr/bin/rssh Street=Wallstreet 1 Uid=5054
Go on Testing the Logins with a Window Client!
or do on the SME Server root console:
$smbclient -L //smeserver-ip -U username [PRESS ENTER] Enter username's password: enterpassword
Server should show:
Domain=[HOME] OS=[Unix] Server=[Samba 3.6.6-0.129.el5] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (SME-Server) wiki Disk wiki Primary Disk Primary i-bay print$ Disk Printer drivers username Disk Home directory Domain=[HOME] OS=[Unix] Server=[Samba 3.6.6-0.129.el5] Server Comment --------- ------- Winclient SERVER1 SME-Server Workgroup Master --------- -------
Ready to work..