2,370 bytes added
, 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:
<pre>
$signal-event user-lock username
</pre>
to check lock do:
<pre>
db accounts show username
</pre>
System shows:
<pre>
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
</pre>
to set a low/short password do:
<pre>
$passwd username [Press Enter]
Enter new UNIX password: typeyourpassword
passwd: all authentication tokens updated successfully.
</pre>
for SMB Login do:
<pre>
$smbpasswd -a username [Press Enter]
New SMB password:typeyourpassword #same like Unix Word!!
</pre>
to save all changes to SME Databases do:
<pre>
signal-event user-modify username
</pre>
to check unlock do:
<pre>
db accounts show username
</pre>
should now show:
<pre>
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
</pre>
Go on Testing the Logins with a Window Client!
or do on the SME Server root console:
<pre>
$smbclient -L //smeserver-ip -U username [PRESS ENTER]
Enter username's password: enterpassword
</pre>
Server should show:
<pre>
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
--------- -------
</pre>
Ready to work..