Results 1 to 5 of 5

Thread: amcheck error on Ubuntu

  1. #1

    Question amcheck error on Ubuntu

    I ran amcheck using amanda server 2.6.0p2 on Ubuntu 8.04 as user "amandabackup", but got the error 'amcheck: Permission Denied'. The dumpuser in amanda.conf is set as "amandabackup".

    If I run as root, then it asks me to change dump user to "root" in amanda.conf.
    My default shell is /bin/bash.

    What do i do?
    Thanks.

  2. #2
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    What are the permission of amcheck? ls -l `which amcheck`
    Do amandabackup is in the same group? id

  3. #3

    Default

    Hi,
    When I run 'amcheck' as user "amandabackup", the permissions are as follows, but amcheck does not appear in the list:
    $ ls -l `which amcheck`
    total 44
    -rw-rw-r-- 1 root root 23 2008-08-25 16:09 amanda-release
    drwxr-xr-x 2 amandabackup amandabackup 4096 2008-10-14 13:05 Desktop
    drwxr-xr-x 2 amandabackup amandabackup 4096 2008-10-09 16:38 Documents
    drwxr-xr-x 3 amandabackup disk 4096 2008-10-09 15:27 example
    drwxrwx--- 2 amandabackup disk 4096 2008-08-25 16:09 gnutar-lists
    drwxr-xr-x 2 amandabackup amandabackup 4096 2008-10-09 16:38 Music
    drwxr-xr-x 2 amandabackup amandabackup 4096 2008-10-09 16:38 Pictures
    drwxr-xr-x 2 amandabackup amandabackup 4096 2008-10-09 16:38 Public
    drwxr-xr-x 2 amandabackup disk 4096 2008-10-09 15:27 template.d
    drwxr-xr-x 2 amandabackup amandabackup 4096 2008-10-09 16:38 Templates
    drwxr-xr-x 2 amandabackup amandabackup 4096 2008-10-09 16:38 Videos

    When I run 'amcheck' as "root", the permissions are:
    ls -l `which amcheck`
    -rwsr-xr-- 1 root disk 55516 2008-08-25 16:09 /usr/sbin/amcheck

    User "amandabackup" belongs to these groups:
    $ id
    uid=1001(amandabackup) gid=1001(amandabackup) groups=4(adm),24(cdrom),25(floppy),26(tape),46(plu gdev),109(lpadmin),115(admin),1001(amandabackup)

  4. #4
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    306

    Default

    Your Amanda user, amandabackup, needs to be in the group "disk".

    Logout as "amandabcakup". As root, run
    Code:
    adduser amandabackup disk
    Log back in as "amandabackup" and you should now be able to run amcheck.

    Paul

  5. #5

    Default

    Thanks, it worked..

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •