Using your last suggestion, that of changing the script "You can reinstall
fresh and choose another style for the backuppc user (change the adduser
command by removing --shell /bin/false and --system)" I removed the
"--system" and the "--shell /bin/false" and I got the following error:

Give password or leave empty to generate one:
Password given is: 6xxxxxxxV    <<--changed for security purposes, obviously
Warning: The home dir /var/lib/backuppc you specified already exists.
Adding group `backuppc' (GID 1001) ...
Done.
chpasswd: (user backuppc) pam_chauthtok() failed, error:
Authentication token manipulation error
chpasswd: (line 1, user backuppc) password not changed

And the script stops at this point. Seems to be issues with this "generate
password" part. In the past, when I chose to have a password generated, too
many times your script did not give me the password generated so, during
installs, I started typing in my own password, as I have done here. Now
this?  Hum-m-m-m? Suggestions?

On Mon, Jan 21, 2019 at 12:41 PM Johan Ehnberg <jo...@molnix.com> wrote:

> Hi Bob,
>
> Thanks for the feedback!
>
> The symptoms you are getting are due to how I designed the script with
> backuppc being a system user without shell etc. As such, it is not related
> to BackupPC version - you can make BackupPC 4 work the way you are used to.
>
> There are many options for you to support your routines, here are a few:
>
> - You can do 'sudo -u backuppc ssh-copy-id user@targethost' as it is with
> the current setup
>
> - You can change the shell for backuppc with 'sudo chsh backuppc'
>
> - You can reinstall fresh and choose another style for the backuppc user
> (change the adduser command by removing --shell /bin/false and --system)
>
> If you have a lot of hosts, it may make sense to use orchestration tools
> that manage ssh keys instead.
>
> Hope this helps,
>
> Johan
>
>
> On 1/21/19 6:49 PM, Robert Wooden wrote:
>
> Just rebuilt an Ubuntu 18.04 with the
> "Installing-BackupPC-4-from-tarball-or-git-on-Ubuntu" script that Mr.
> Ehnberg recently updated.
>
> When I try to ssh-copy-id "su - backuppc" does not work. When I "su -
> backuppc -s /bin/bash:" I get a "backuppc@[myhostname]:~$" command
> prompt. That is I am getting a username@hostname command prompt rather
> than just a "$".
>
> In the days of version 3 I always used "su - backuppc" from root and it
> always gave me a "$" prompt and then I got use to the manner "ssh-copy-id"
> worked.
>
> Now, with version 4, this required activity is different and troublesome.
>
> What is the proper ssh-copy-id command process used by other people who
> have used the Ehnberg script to setup BackupPC to copy the ssh keys to the
> clients?
>
> --
> Thank you.
>
> Bob Wooden
>
>
>
> _______________________________________________
> BackupPC-users mailing listbackuppc-us...@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
> --
> *Johan Ehnberg* Founder, CEO Molnix Oy
> jo...@molnix.com +358 50 320 96 88 molnix.com
>
>
> *The contents of this e-mail and its attachments are for the use of the
> intended recipient only, and are confidential and may contain legally
> privileged information. If you are not the intended recipient or have
> otherwise received the e-mail in error, please notify the sender by
> replying to this e-mail immediately and then delete it immediately from
> your system. Any dissemination, distribution, copying or use of this
> communication without prior and explicit permission of the sender is
> strictly prohibited.*
>
> *Please consider the environment - do not print this e-mail unless you
> really need to.*
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>


-- 
Thank you.

Bob Wooden

Toll-Free  1.844.DTROPHY (844.387.6749)
    Local 615.885.2846
 www.donelsontrophy.com    *"Everyone deserves an award!!"*
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to