Rdiff-Backup- can't login as a rdiff-backup user

Discussion in 'HOWTO-Related Questions' started by matt, Jun 7, 2006.

  1. matt

    matt New Member

    hi there,
    i got the problem when try to login as a rdiff-backup user
    Code:
    [root@backup /]# su -m rdiff-backup
    bash: /root/.bashrc: Permission denied
    bash-3.00$
    
    here my ls -la /backup output
    Code:
    [root@backup /]# ls -la /backup/
    total 36
    drwx------   3 rdiff-backup rdiff-backup 4096 Jun  6 14:52 .
    drwxr-xr-x  24 root         root         4096 Jun  6 14:30 ..
    -rw-r--r--   1 rdiff-backup rdiff-backup  304 Jun  7 08:53 .bash_logout
    -rw-r--r--   1 rdiff-backup rdiff-backup  191 Jun  7 08:53 .bash_profile
    -rw-r--r--   1 rdiff-backup rdiff-backup  124 Jun  7 08:53 .bashrc
    -rw-r--r--   1 rdiff-backup rdiff-backup  383 Jun  7 08:53 .emacs
    -rw-r--r--   1 rdiff-backup rdiff-backup  120 Jun  7 08:53 .gtkrc
    drwx------   2 rdiff-backup rdiff-backup 4096 Jun  7 08:04 .ssh
    
    and here my grep rdiff-backup /etc/passwd output
    Code:
    [root@backup /]# grep rdiff-backup /etc/passwd
    rdiff-backup:x:3500:3500:rdiff-backup:/backup:/bin/false
    
    does anyone got the same error?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    The su seems to work, you can check with
    Code:
    whoami
    after the su.
    For some reason the rdiff-backup user tries to read /root/.bashrc which it isn't allowed to do. I don't know why the user tries to read that file. :confused: Anyway, if the rest is working, then I wouldn't worry about it.
     
  3. matt

    matt New Member

    thanks falko
    Code:
    bash-3.00$ whoami
    rdiff-backup
    
    i can follow the rest of the tutorial :) , but when i ...
    Code:
    bash-3.00$ ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
    bash: ssh-copy-id: command not found
    
    i've check some of the threads about rdiff-backup but never seem they have the problem like mine.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Please run (as root)
    Code:
    updatedb
    locate ssh-copy-id
    What's the output?
     
  5. matt

    matt New Member

    thanks falko for reply and sorry for long delay. here mine
    Code:
    [root@backup ~]# updatedb
    [root@backup ~]# locate ssh-copy-id
    [root@backup ~]#
    
    and here my ssh packages
    Code:
    [root@backup ~]# rpm -qa|grep ssh
    openssh-clients-3.9p1-8.RHEL4.12
    openssh-server-3.9p1-8.RHEL4.12
    openssh-askpass-gnome-3.9p1-8.RHEL4.12
    openssh-3.9p1-8.RHEL4.12
    openssh-askpass-3.9p1-8.RHEL4.12
    
    its seem like i have no ssh-copy-id in my machine, so where/how to download/install it?
     
    Last edited: Jun 19, 2006
  6. falko

    falko Super Moderator ISPConfig Developer

    I see you use RedHat. You can try
    Code:
    yum search ssh-copy-id
     
  7. matt

    matt New Member

    thanks for the help.
    no, i'm using CentOS but everything inside is RHEL.
    Code:
    [root@backup pub]# yum search ssh-copy-id
    Searching Packages:
    Setting up repositories
    update                    100% |=========================|  951 B    00:00
    base                      100% |=========================| 1.1 kB    00:00
    addons                    100% |=========================|  951 B    00:00
    extras                    100% |=========================| 1.1 kB    00:00
    Reading repository metadata in from local files
    No Matches found
    [root@backup pub]# yum install ssh-copy-id
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Parsing package install arguments
    No Match for argument: ssh-copy-id
    Nothing to do
    
    i'm searching and googling alot to solve this problem but so far i can't find the solution. hope anyone can me to solve this problem :)
     
  8. falko

    falko Super Moderator ISPConfig Developer

    What's the result of
    Code:
    yum provides ssh-copy-id
    ?
     
  9. matt

    matt New Member

    here the result
    Code:
    [root@backup ~]# yum provides ssh-copy-id
    Searching Packages:
    Setting up repositories
    Reading repository metadata in from local files
    Importing Additional filelist information for packages
    filelists.xml.gz          100% |=========================| 146 kB    00:16
    extras    : ################################################## 204/204
    Added 204 new packages, deleted 0 old in 4.98 seconds
    
    
    man-pages-fr.noarch                      0.9.7-11               base
    Matched from:
    /usr/share/man/fr/man1/ssh-copy-id.1.gz
    
    what this mean?
     
  10. falko

    falko Super Moderator ISPConfig Developer

    This means that the program ssh-copy-id is in the package man-pages-fr (but this seems odd to me... :confused: ).
     
  11. matt

    matt New Member

    so what i need to do now, untill now i can't follow the tutorial because of this problem. anyone out there facing the same problem like mine? :(
     
  12. falko

    falko Super Moderator ISPConfig Developer

  13. capricorn

    capricorn New Member

    hi !
    i am facing the same problem like u did. I saw your posts but there is no solution in that. I am also using CentOs . kindly tell me wat u did to solve this problem.
    bash-3.00$ ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
    bash: ssh-copy-id: command not found
    Regards.
     

Share This Page