Re: [BackupPC-users] Almost working
2008-10-12 23:21:55
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kenneth L. Owen wrote:
> Well, I have news good and bad. First, your instructions were very clear,
> precise and easy to follow. BUT, it didn't work.
>
> [ken@Archiver ~]$ su -
> Password:
> [root@Archiver ~]# grep backuppc /etc/passwd
> backuppc:x:495:490:backuppc:/var/lib/BackupPC:/sbin/nologin
> [root@Archiver ~]# chsh backuppc
> Changing shell for backuppc.
> New shell [/sbin/nologin]: /bin/bash
> Shell changed.
> [root@Archiver ~]# grep backuppc /etc/passwd
> backuppc:x:495:490:backuppc:/var/lib/BackupPC:/bin/bash
> [root@Archiver ~]# su backuppc
> bash-3.2$ <== This doesn't look as expected
Actually, yes, this is the default prompt, which is usually modified in
your ~/.bashrc or ~/.bash_profile files, but the backuppc user doesn't
have/use these files....
> bash-3.2$ ssh-keygen -t rsa
> Generating public/private rsa key pair.
> Enter file in which to save the key (/var/lib/BackupPC/.ssh/id_rsa):
> Enter passphrase (empty for no passphrase):
> Enter same passphrase again:
> open /var/lib/BackupPC/.ssh/id_rsa failed: Permission denied.
> Saving the key failed: /var/lib/BackupPC/.ssh/id_rsa.
> bash-3.2$ exit
> [root@Archiver ~]# cd /var/lib/BackupPC
> [root@Archiver BackupPC]# ls -al
> total 56
> drwxr-x--- 6 backuppc root 4096 2008-10-12 18:48 .
> drwxr-xr-x 31 root root 4096 2008-09-18 15:50 ..
> drwxr-x--- 2 backuppc root 4096 2008-08-11 12:25 cpool
> drwxr-x--- 2 backuppc root 4096 2008-08-11 12:25 pc
> drwxr-x--- 2 backuppc root 4096 2008-08-11 12:25 pool
> drwxr-x--- 2 backuppc root 4096 2008-08-11 12:25 trash
> [root@Archiver BackupPC]#
>
> Obviously, I was not 'backuppc' since backuppc owns this directory. -ken
After you su - backuppc do:
mkdir /var/lib/backuppc/.ssh
chmod 0700 /var/lib/backuppc/.ssh
Possibly ssh-keygen doesn't bother to try and create the directory if it
is missing.
Hope that helps.
PS, bonus hint, run the command "id" (see "man id" for more info and
flags) to see what user you are logged in as/currently.
Regards,
Adam
- --
Adam Goryachev
Website Managers
www.websitemanagers.com.au
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI8r4AGyoxogrTyiURAhOeAJ9c2hppNAR4BDRhCBrd9lkSb1tJ/gCdGB7i
V+jrNu20ILNyYHwC2mvaNUg=
=YL0l
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [BackupPC-users] Almost working, Kenneth L. Owen
- Re: [BackupPC-users] Almost working, Michael Mansour
- Re: [BackupPC-users] Almost working, Kenneth L. Owen
- Re: [BackupPC-users] Almost working, Nils Breunese (Lemonbit)
- Re: [BackupPC-users] Almost working, Rob Owens
- Re: [BackupPC-users] Almost working, dan
- Re: [BackupPC-users] Almost working, Kenneth L. Owen
- Re: [BackupPC-users] Almost working, Adam Goryachev
- Re: [BackupPC-users] Almost working, Kenneth L. Owen
- Re: [BackupPC-users] Almost working,
Adam Goryachev <=
- Re: [BackupPC-users] Almost working, Nils Breunese (Lemonbit)
- Re: [BackupPC-users] Almost working, Kenneth L. Owen
- Re: [BackupPC-users] Almost working, Adam Goryachev
- Re: [BackupPC-users] Almost working, Kenneth L. Owen
- Re: [BackupPC-users] Almost working, royden yates
- Re: [BackupPC-users] Almost working, Kenneth L. Owen
- Re: [BackupPC-users] Almost working, Adam Goryachev
- Re: [BackupPC-users] Almost working, Kenneth L. Owen
- Re: [BackupPC-users] Almost working, Adam Goryachev
- Re: [BackupPC-users] Almost working, Kenneth L. Owen
|
|
|