Amanda; And creating user accounts BEFORE the build process

I am trying to make a package for amanda (Advanced Maryland Automatic Network Disk Archiver) http://www.amanda.org.
I have gotten everything to run fine, but the way the devs have set up their configure file (and the resulting build process),
I HAVE to specify a user account that the program will run as. If I do not specify (and create an account) the PKGBUILD will not run. Is this normal?
Is there a way to make the PKGBUILD create an account and a group? This account and group are need both DURING the build and during the install.
It has to be a pre-existing user account.  Here is my PKGBUILD script:
pkgname=amanda
pkgver=2.6.0p1
pkgrel=1
pkgdesc="The Advanced Maryland Automatic Network Disk Archiver"
url="http://www.amanda.org/"
license=('BSD')
depends=("glibc")
#If you need amplot and/or samba support (for backing up windows clients) delete the line above and uncomment the line below this line
#depends=("glibc" "samba" "gnuplot")
install=(amanda.install)
arch=('x86_64' 'i686')
source=(
http://downloads.sourceforge.net/amanda/amanda-2.6.0p1.tar.gz
md5sums=('afadad80e0a27963a24b510755470983')
build() {
cd $startdir/src/amanda-2.6.0p1
# These config options are documented at:
# http://wiki.zmanda.com/index.php/Installation/Installing_Amanda_Source
./configure CFLAGS="-03 -Wall" \
--with-user=amanda \
--with-group=backup \
--prefix=$startdir/pkg/usr/local \
--with-amperldir=$startdir/pkg/usr/local/share/perl5/site_perl/5.10.0
make || return 1
make install prefix=$startdir/pkg/usr/local
I would really appreciate some help (this is my first pkg)
Also remember; this will not finish building without creating a user and a group
#groupadd backup
#useradd -g backup amanda
Last edited by timetrap (2008-06-19 19:08:09)

I didn't take it any farther than the first post. I became frustrated with the chicken/egg relationship with account/makepkg.
The package works (as long as the user accounts are created first) if you can figure out a way around this issue feel free to update the pkg (then upload it to AUR).
The nobody/nobody idea didn't work for me, I cannot remember the reason why. It had something to do with permissions. Let me know if you need any help.
Last edited by timetrap (2009-01-01 03:12:17)

Similar Messages

  • I have an account that the email address live, but they stole my account and changed direccionn email to Gmail but now that I have new email in gmail not in me finds the account or reconose me the key and create another account, but the Musia that havi bo

    had a live email account, but the account was stolen and opened an email account in gmail and made the change by hour account but I do not recognize this and create another account with the same email, but in the other account had purchased music, as I can do to recover purchased music.
    The previous Cunta I have it open on a pc but the pc is not mine

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • Can I create user accounts in the Ipad?

    I share my Ipad with multiple people and want to keep my emails and docs private.
    Thanks.

    No, the iPad is basically a single user device, and it can only have one set of apps and content on it. Some apps may allow you to protect their content (but most don't), and for Mail there is this work-around.

  • Creating user accounts with OIDDAS and use them from the OS

    Hi,
    I have a customer that is experiencing an error creating user accounts from OIDDAS, and use that user accounts from the operating system.
    My customer is using OID/OAS4OS 10.1.4.2.0, and that version is not longer available to download, then, I will try in my own environment
    with OID/OAS4OS 10.1.4.3.0.
    And the question is the following: is supported to create user accounts with OIDDAS and expect that users can work with OAS4OS and be
    able to authenticate in the operating system?
    For the reference, SR# 7222351.993:
    Thanks,
    Luis Vivero.
    Edited by: LV in ORCL on Dec 11, 2008 6:47 AM

    Hi Jacco,
    I didn't see your post before.
    Nop, unfortulately I don't have a document with that. I just received that answer
    from development (related to the plugin for AD that is not certified, and DAS is
    not intended to work with OAS4OS).
    Anyway, about the plugin to work with AD, this is working for me; at least I tested
    it by configuring the plugin, I configured synchronization, the mapping file, I did
    the bootstrap, and the accounts that were bootstraped now shows the OS attributes
    on DAS.
    Regards,
    Luis Vivero.

  • I have an iMac with OS Lion. The Smartart feature for Office for Mac will not work when I am logged on to my personal user account. It works with other user accounts on the same computer, and it works after "safe start". How can I fix the problem?

    The Smartart feature of Office for Mac will not work in my user account. It works for all other user accounts on the same computer, and it works after a "safe start". How can I fix the problem?

    You may also want to search/ask in the forums run by the people who make the product which is causing you problems:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011

  • I have 2 id apple. 1of them don´t recongize my adress in Brazil. I tried to create another account but the ipad refuse it. I´d like to exclude these 2 accounts and creat a new account with my same email. How can I do it?

    I have 2 accounts at ID apple. One of them the system don´t recongize my addres in Brazil, I tried to create another account but the ipad refuse it.
    I´d like to exclude my accounts and creat another account with my same email. How can I do It?

    I don't know if that works on the iPhone, but....
    View your SETTINGS and choose ICLOUD. That will give you your cloud settings. At the very bottom it has a delete button. Click it an see what happens. After deleting the account (and potentially loosing data connected with it) you should be able to log in to iCloud using your old id.

  • Using the same photos and music between two user accounts in the same Mac

    Hi,
    I think this question might have already been asked in the forum.
    1. I have one MacBook Pro and two user accounts (One for me and one for my wife)
    2. We are having two seperate iPhones with seperate AppleIDs
    3. We want to maintain the apps / calendar / mail / reminders / contacts as seperate - Through iCloud (Seperate Apple ID approach) - All this is fine
    4. All we want to have it shared is the Music files and the Photo library without duplicating
    I have tried the shared folder approach for the music and having the iTunes point to that directory for the libary location in the preferences but unfortunately if she adds a folder to the library mine does not get updated unless I do a add folder to library and vice versa.
    Whats the best way to deal with the Photos / Music sharing between two user accounts on the same mac
    Thanks
    Shas

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    To give others selective access to your iPhoto library, you have the option of using iCloud Photo Sharing, if the privacy implications don't bother you. The images will be stored temporarily on Apple servers.
    If you want to give full read/write access to more than one user, see the support articles linked below.
    iTunes: How to share music between different accounts on a single computer
    iPhoto: Sharing libraries among multiple users
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • How do I share photos and music between different user accounts on the same macbook

    How do I share photos and music between different user accounts on the same Macbook? i.e. I want all to be able to access family photos when logged into their respective accounts. Same goes for the iTunes library. Hope this is possible...
    Thanks!

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    To give others selective access to your iPhoto library, you have the option of using iCloud Photo Sharing, if the privacy implications don't bother you. The images will be stored temporarily on Apple servers.
    If you want to give full read/write access to more than one user, see the support articles linked below.
    iTunes: How to share music between different accounts on a single computer
    iPhoto: Sharing libraries among multiple users
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • HT5114 How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's#, 1 i-pad #mine#, 1 i-pad mini #10 year old's#, and 1 I-pod touch #11 year old's).  I would like to maintain pur

    How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's), 1 i-pad (mine), 1 i-pad mini (10 year old's), and 1 I-pod touch (11 year old's).  I would like to maintain purchase control, but would like to be able to have a separate account ID for each person.  Is that possible?

    Each email address can only be on one iTunes account, and all purchases are tied to the account that buys them. If you want to have separate iTunes accounts on each then you will need separate email accounts for each iTunes account

  • I purchased Adobe Acrobat Standard V11 on one user account on one pc.  I want to remove this software and re-install it on another user account on the same pc.  Will this use an extra licence?  I understand this product comes with 2 licences but am hoping

    I purchased Adobe Acrobat Standard V11 on one user account on one pc.
    I want to remove this software and re-install it on another user account on the same pc.
    Will this use an extra licence?
    I understand this product comes with 2 licences but am hoping to retain the extra for another pc.

    My experience (limited) has been to expect it to be installed automatically for all users.
    What seems to be missing on the new user account?

  • Can you transfer files between two user accounts on the same macbook pro?

    Can you transfer files between two user accounts on the same MacBook Pro?
    Specifically, I used the Migration Assistant to move music and photos from my old PC to my new MacBook. 
    Somehow, I missed the fact that it was creating a new user account when it was doing this.  So none of music and photos are in the user account I originally set-up.  Instead, all these files are now in a different account.
    I'd like to consolidate all my files on the one user account and delete the other one.
    Is this possible and, if so, how do I do it?
    Thank you.

    you can crop files from one account to another using the Public Dropbox which every user account has.  Log into the user that has the files you want to move, then drag the folder you want to the new users' dropbox:
    I suggest a small scale test on a few files first before moving gigabytes of files.

  • Data recovery after system restore and corrupt user account.

    A few months ago I was in the middle of a school assignment and my HP laptop started acting strange. I would try to move an image and a copy of it would remain in its place. I couldn't delete the picture either, but I could "cut" the image. Well,
    I ended up restarting the computer and when I logged on it logged me into a temporary account because my account failed to log on. Not knowing exactly what was going on or what to do we ended up doing a system restore like a dummy and restarted the computer.
    Well, when I logged back in everything was gone, all my school stuff was gone. What do I do can I get these back without having to pay a lot of money to do so? I am a single mother of two and there is no way I can afford anything.

    I'm assuming that, since this post is 2 years old, rachbutterfly81 has already moved on with her life. But, since this is the second time I've run into this problem, and this is the first time I've found a solution that worked, I thought I would add my two
    cents. Of course I do agree that the original response was a little heavy for a mother of two, but it did work for me (with some slight variation that I will get to).
    I definitely disagree with Mr. Malotte's statement that all her files were deleted by the system restore. She was obviously logged in under a temporary account, and so all her original files were fine and stored under the same location they always were.
    There was no need for her to purchase additional software to "recover" her files when they were all there under her original account name. All she would have had to do to find her files (assuming she was running Windows Vista or 7) was to open her "C:" drive
    and navigate to the "C:\Users\" directory and look for the folder with her account name.
    Anyway, the first solution worked for me, BUT there is absolutely no reason to delete the original account folder as Magon suggests in step 3!
    Simply rename it. Once you finish step 5 and delete the original registry key (I recommend backing it up by right clicking on the key and selecting export), there is no reason to reboot your machine. There are some additional steps to make
    life a little easier though. I've added them to a modified version of the original:
    1. If you know you have another administrative account you can use, go ahead and restart your PC to release the locks on your profile. If you don't have another account to use, you can create one by going to "Add or remove user accounts" in the control panel.
    Select "Create a new account," name it whatever you want, check the Administrator box, and click "Create Account" (you may want to consider adding a password to this account as well). Now you can restart.
    2. Log on with another administrative account
    3. Rename your original profile to something different. For the sake of simplicity, we'll pretend it was called "myaccount." So, you would rename "C:\Users\myaccount" to "C:\Users\myaccount.original." It really doesn't matter what you name it, so long as it
    is different than it was and you can still find it again.
    4. Delete C:\Users\TEMP
    5. Delete the registry key matching your SID from
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
    NT\CurrentVersion\ProfileList". Check the value "ProfileImagePath" to make sure you pick your own profile.
    6. Log off and then log into your original account. Everything will still look messed up, like before, but it will not warn you that you are logged in under a temporary account.
    7.While logged in, navigate to your user directory (not C:\Users\myaccount.original, but the current one you are logged in under, C:\Users\myaccount) and copy any files you see that say "ntuser" in them into your original profile directory (C:\Users\myaccount.original).
    Most likely, you won't be able to see any, so you will need show hidden files. Hit
    Alt on your keyboard, and you should see the menu bar appear. Select "Tools" and then "Folder Options". Select the "View" tab, and under "Hidden files and folders" check the option to "Show hidden files, folders, and drives." While you are
    at it, uncheck the box next to "Hide protected operating system files."
    8.Once you've copied the files over, go ahead and log out. You will need to log into your other administrative account once more.
    9.Rename the new account (or delete it if you want), and rename your original account back to what it was (so "C\Users\myaccount.original" will be renamed to "C:\Users\myaccount").
    10. Log out and now log in using your original account. Some things may not work as they originally did (for instance, I had to log into dropbox again and go through the setup process), but most things will. Most importantly, all your files should still
    be there.

  • Can't Create User Account

    I'm using 10.5.8, logged in as an Admin, and can't create a specific new user account. The system had this account on it previously, but the account was deleted by another Admin. I'm trying to recreate the account, but it's not working. If the home folder isn't there, OS X does create it, but doesn't add the user to the list of users. Logging out and attempting to login with the account does not work. I can create other accounts, but not recreate the one that was deleted - regardless of which Admin account I'm logged in as. Any suggestions?

    Have you run the disk utility program? Press "commandshiftu" to open up the Utilities window and run the disk utility and the directory utility. Also, if you have a copy of "Disk Warrior" sitting around trying running that.
    Also, check under Computername/users/deleted users, if your username shows up in that file, or on that path, please trash (back them up if you need them) said files, and empty your trash while holding down the "alt/Option" key.
    It may be that parts or all of the user account are still intact, try logging in via the "Terminal" application, press "commandshiftu" to open up the Utilities window then open the program "Terminal"
    Type "login USERNAME" where "USERNAME" is the name of the user account.
    You will be prompted for a password, enter your password for the account.
    If the password is wrong, or the username does not exist, an error message, "Login incorrect" will print on the terminal.
    If you log in correctly, the username displayed will change to said username. If that happens, you need to remove the user account before recreating said account, follow instructions below to remove and recreate said account.
    If you have your install disk, boot from that and change the password for "root" to something you know, write this down. Boot as normal and open the application called "Terminal"
    Type "login root" then enter your root password,
    first try removing the user account you are trying to create type "rmuser USERNAME" where "USERNAME" is the name of the user account you are trying to create.
    Then use the "adduser" command to add the user account you want to make, type "adduser USERNAME" where "USERNAME" is the name of the user account you want to create, then type "passwd USERNAME PASSWORD" where "USERNAME" is the name of the user account you want to create and "PASSWORD" is the password you want linked to that user account. After you finish all of that, type "logout" and then quit the program.
    Try to login to your new user account.
    If you get any error messages please post.

  • MDT New Computer Scenario - Include a standard account in the build

    I am a developer, but as part of my development workflow I am regularly setting up new virtual machines for testing, etc. I've been trying to automate the build process for some time, but as I'm not a deployment specialist it's all a bit new to me. I recently
    discovered MDT, and it looks like it is the tool I should have found ages ago, but there's one aspect of my requirements that doesn't seem to get mentioned in any of the tutorials or scenarios I've seen so far.
    When I set up a deployment image, I'd like to include in it a standard local user account ("Tester") that will be available on all the builds. I don't have a domain in my environment, so using a domain account isn't possible.
    Is it possible to do this? None of the "New Computer" scenario descriptions talk about setting up accounts - account management seems to be in the "Replace" or "Refresh" scenarios, where the emphasis is on retaining existing
    accounts on the target computer, not adding accounts to the image. Is it as simple as pausing the image build and creating the account manually on the image?
    I'm not sure how relevant it is, but my environment doesn't have anything like PXE boot, so I'll be expecting to ultimately create an offline install ISO image for the target computer deployment, and I'd like everything needed to be present in that ISO.
    Thanks for any help.
    Paul

    Hi,
    Considering your description in this link:
    https://social.technet.microsoft.com/Forums/windows/en-US/6c1c41df-63bb-464d-8aa7-5a092f30c06a/setting-up-a-sysprepped-image-with-user-account-customisations?forum=w8itproinstall
    I think this link can be helpful for you (I already pasted in the link above)
    Windows 8 Start Screen Customization with MDT
    http://blogs.technet.com/b/deploymentguys/archive/2012/10/26/start-screen-customization-with-mdt.aspx
    It can help you understand how to customize the start screen with MDT.
    Regardsing to the "Setting up your Apps", it is first Sign-in Animation, usually for new users, you can disable it
    HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\EnableFirstLogonAnimation , set its value
    to 0,
    here's an example you can refer to
    https://social.technet.microsoft.com/Forums/lync/en-US/91839d35-49da-4ba2-b6b2-7b448e5f22a4/can-we-skip-the-long-windows-8-intro-video-each-time-a-new-user-logs-onto-a-machine?forum=w8itproinstall
    Yolanda Zhu
    TechNet Community Support

  • What do you use to create user accounts?

    I have used Passenger to create my school's user accounts in the past. Since upgrading to Mavericks Server 3 I can't import the user accounts from Passenger. Does anyone know of a program that will create user accounts for 10.9?

    I downloaded the Passenger 4.2 beta and was able to export a user list that included passwords that I could import into Workgroup Manager 10.9. The format of the export file has changed for 10.9.
    The old format:
    0x0A 0x5C 0x3A 0x2C dsRecTypeStandard:Users 39 dsAttrTypeStandard:RecordName dsAttrTypeStandard:AuthMethod dsAttrTypeStandard:Password dsAttrTypeStandard:UniqueID dsAttrTypeStandard:PrimaryGroupID  dsAttrTypeStandard:Comment dsAttrTypeStandard:Expire dsAttrTypeStandard:Change dsAttrTypeStandard:RealName dsAttrTypeStandard:NFSHomeDirectory dsAttrTypeStandard:UserShell dsAttrTypeStandard:PrintServiceInfoXML dsAttrTypeStandard:HomeDirectory dsAttrTypeStandard:HomeDirectoryQuota dsAttrTypeStandard:MailAttribute dsAttrTypeStandard:Keywords dsAttrTypeStandard:FirstName dsAttrTypeStandard:LastName dsAttrTypeStandard:JobTitle dsAttrTypeStandard:OrganizationName dsAttrTypeStandard:Department dsAttrTypeStandard:Building dsAttrTypeStandard:PhoneNumber dsAttrTypeStandard:MobileNumber dsAttrTypeStandard:FAXNumber dsAttrTypeStandard:PagerNumber dsAttrTypeStandard:EMailAddress dsAttrTypeStandard:Street dsAttrTypeStandard:City dsAttrTypeStandard:State dsAttrTypeStandard:Country dsAttrTypeStandard:PostalCode dsAttrTypeStandard:Picture dsAttrTypeStandard:SMBHome dsAttrTypeStandard:SMBHomeDrive dsAttrTypeStandard:SMBProfilePath dsAttrTypeStandard:SMBScriptPath dsAttrTypeStandard:WeblogURI dsAttrTypeStandard:IMHandle
    ppiper:dsAuthMethodStandard\:dsAuthClearText:123456:2200:1026::::Peter Piper::::::::Peter:Piper:::::::::::::::::::::
    The new format:
    0x0A 0x5C 0x3A 0x2C dsRecTypeStandard:Users 46 dsAttrTypeStandard:RecordName dsAttrTypeStandard:GeneratedUID dsAttrTypeStandard:AuthMethod dsAttrTypeStandard:Password dsAttrTypeStandard:PasswordPolicyOptions dsAttrTypeStandard:UniqueID dsAttrTypeStandard:PrimaryGroupID dsAttrTypeStandard:Comment dsAttrTypeStandard:Expire dsAttrTypeStandard:Change dsAttrTypeStandard:RealName dsAttrTypeStandard:NFSHomeDirectory dsAttrTypeStandard:HomeDirectoryQuota dsAttrTypeStandard:UserShell dsAttrTypeStandard:PrintServiceUserData dsAttrTypeStandard:HomeDirectory dsAttrTypeStandard:MailAttribute dsAttrTypeStandard:MCXSettings dsAttrTypeStandard:Keywords dsAttrTypeStandard:Picture dsAttrTypeStandard:MCXFlags dsAttrTypeStandard:SMBHome dsAttrTypeStandard:SMBHomeDrive dsAttrTypeStandard:SMBProfilePath dsAttrTypeStandard:SMBScriptPath dsAttrTypeStandard:FirstName dsAttrTypeStandard:LastName dsAttrTypeStandard:Street dsAttrTypeStandard:City dsAttrTypeStandard:State dsAttrTypeStandard:PostalCode dsAttrTypeStandard:Country dsAttrTypeStandard:WeblogURI dsAttrTypeStandard:EMailAddress dsAttrTypeStandard:PhoneNumber dsAttrTypeStandard:MobileNumber dsAttrTypeStandard:FAXNumber dsAttrTypeStandard:PagerNumber dsAttrTypeStandard:IMHandle dsAttrTypeStandard:ServicesLocator dsAttrTypeStandard:URL dsAttrTypeStandard:JobTitle dsAttrTypeStandard:OrganizationName dsAttrTypeStandard:Department dsAttrTypeStandard:Building dsAttrTypeStandard:Company
    ppiper:::123456::2220:1026::::Peter Piper:::::::::::::::Peter:Piper::::::::::::::::::::

Maybe you are looking for

  • ITunes 7.4.2 no page, just a small bar

    After upgrading my library changed. Music list was present, but some albums could not play for some songs could not be located. After restart today I get a small bar without the usual playlists. How do I get it back?

  • ITS Session produces lock entry in SM12

    Hi I'm new to the ITS technology. I have to integrate a Dynpro into a WebDynpro. Me was told to use the Iframe component in WebDynpro to integrate the "normal" Dynpro via ITS. In a prototyp I have a WD-View, let's call it View1, where I can press a b

  • Extension Development Esources?

    I am new to Extension Development for the Adobe Dreamweaver cs4 and don't know where to start and what tools i need to develop my own extension for Dreamweaver cs4 so please any body knows the link pdf or any material tutorials which can help me . Th

  • Can I upgrade to Windows 8 on my current Windows 7 partition that's using boot camp?

    I have an iso image of the OS (enterprise) and I started the installation process and it asked me if I wanted to do an upgrade or an advanced custom install. Has anyone tried this yet? One time I installed a windows update and it formatted my OS X pa

  • 9.2 database with developer 6i problem

    we have installed Oracle 9.2.0 database on WinXP along with developer 6i. While running an application some of the reports do not run and the system goes halt. Some body told us to install developer 6i prior to 9.2 Database, we did so but this does'n