<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Reset_a_password</id>
		<title>Reset a password - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Reset_a_password"/>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Reset_a_password&amp;action=history"/>
		<updated>2026-06-18T05:02:08Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?title=Reset_a_password&amp;diff=3449&amp;oldid=prev</id>
		<title>PeterThorpe: Created page with &quot;so basically you cant. Be I have managed to recreate the account using the the new user script. But manually entering the command,   U=test06  smbldap-groupadd -a $NU  smbldap...&quot;</title>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Reset_a_password&amp;diff=3449&amp;oldid=prev"/>
				<updated>2019-11-14T14:30:41Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;so basically you cant. Be I have managed to recreate the account using the the new user script. But manually entering the command,   U=test06  smbldap-groupadd -a $NU  smbldap...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;so basically you cant. Be I have managed to recreate the account using the the new user script. But manually entering the command,&lt;br /&gt;
&lt;br /&gt;
 U=test06&lt;br /&gt;
 smbldap-groupadd -a $NU&lt;br /&gt;
 smbldap-useradd -g $NU -a $NU&lt;br /&gt;
 smbldap-passwd $NU&lt;br /&gt;
 bash_files=/etc/skel&lt;br /&gt;
 basepath=/storage/home/users&lt;br /&gt;
 path=$basepath/$NU&lt;br /&gt;
 echo $path&lt;br /&gt;
 cd $basepath&lt;br /&gt;
 cp -r $bash_files/.{m,n,b,g}* $NU&lt;br /&gt;
 chown -R $NU:$NU $path&lt;br /&gt;
 smbldap-groupadd -a $NU&lt;br /&gt;
 chown -R $NU:$NU $path&lt;br /&gt;
 chmod 0701 $NU&lt;br /&gt;
 chcon &amp;#039;unconfined_u:object_r:user_home_dir_t:s0&amp;#039; $path&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
as root user, login a user via&lt;br /&gt;
&lt;br /&gt;
 su - &amp;lt;newuserid&amp;gt;&lt;br /&gt;
and execute&lt;br /&gt;
&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
and just accept all the suggestions, keep accepting then as they are ... .ssh/id_rsa and .ssh/id_rsa.pub, then get created.&lt;br /&gt;
&lt;br /&gt;
then&lt;br /&gt;
&lt;br /&gt;
 cp .ssh/id_rsa.pub .ssh/authorized_keys&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
 chmod 600 .ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
then change pasword with&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;/div&gt;</summary>
		<author><name>PeterThorpe</name></author>	</entry>

	</feed>