Reset a password
Revision as of 14:30, 14 November 2019 by PeterThorpe (talk | contribs) (Created page with "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...")
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-useradd -g $NU -a $NU smbldap-passwd $NU bash_files=/etc/skel basepath=/storage/home/users path=$basepath/$NU echo $path cd $basepath cp -r $bash_files/.{m,n,b,g}* $NU chown -R $NU:$NU $path smbldap-groupadd -a $NU chown -R $NU:$NU $path chmod 0701 $NU chcon 'unconfined_u:object_r:user_home_dir_t:s0' $path
as root user, login a user via
su - <newuserid>
and execute
ssh-keygen
and just accept all the suggestions, keep accepting then as they are ... .ssh/id_rsa and .ssh/id_rsa.pub, then get created.
then
cp .ssh/id_rsa.pub .ssh/authorized_keys
and
chmod 600 .ssh/authorized_keys
then change pasword with
passwd