Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    16,350
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    The link is working for me. Please try it again.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    16,350
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    16,350
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Happy to help. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice