The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Backup (pkgacct) as non-root user

Discussion in 'Data Protection' started by Jason Bernier, Jun 12, 2016.

  1. Jason Bernier

    Jason Bernier Registered

    Joined:
    Jun 12, 2016
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New England
    cPanel Access Level:
    Root Administrator
    Hello there.

    I'm able to manually administrate my backups using /scripts/pkgacct, however, I'd like to use a non-root user to do this without the need to sudo.

    Is there a group or permission I can assign to my "newuser" to allow the use of "/scripts/pkgacct" ?

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The pkgacct script requires root access due to the privileges required to generate a backup of the account. Documentation on this script is available at:

    Pkgacct script

    One workaround is to utilize an API function, however note that no comparable functions with cPanel API 2 or UAPI match the functionality in the Fileman::fullbackup cPanel API 1 function:

    cPanel API 1 Functions - Fileman::FullBackup

    There's a user-submitted workaround that's discussed on the following thread:

    Backing up accounts (hacky way)

    While cPanel API 1 is deprecated, there are no plans to remove this API call until a comparable UAPI call is implemented. I encourage you to vote and add feedback to this feature request:

    Ability to create a full backup in cPanel API 2

    Thank you.
     
  3. Jason Bernier

    Jason Bernier Registered

    Joined:
    Jun 12, 2016
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New England
    cPanel Access Level:
    Root Administrator
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    The link is working for me. Please try it again.
     
  5. Jason Bernier

    Jason Bernier Registered

    Joined:
    Jun 12, 2016
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New England
    cPanel Access Level:
    Root Administrator
    Please see attached screen shot. Page Not found.

    This screen shot includes the URL bar.
     

    Attached Files:

  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  7. Jason Bernier

    Jason Bernier Registered

    Joined:
    Jun 12, 2016
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New England
    cPanel Access Level:
    Root Administrator
    Infopro likes this.
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page