Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 06-30-2009, 03:14 AM   #1
LQ Newbie
Registered: Jan 2008
Location: Portugal
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
Question How to fake an user existence during packaging


I'm repackaging a software (which has its own installer) for private use under a Debian-based system. That software is already compiled (no source), so I basically run the installer into the DESTDIR tree. I wish to use a Debian package instead of each own installer because I like to have things standardly done -- with files going into /usr instead of /opt/package, etc.

Unfortunately, the installer requires that a system username and groupname is previously created. Now, I know it is a simple matter of doing it "by hand" prior to building (and installing) the Debian package. But I'm wondering if it is possible to instruct debuild to "fake the creation of a user" or "fake user xyz already existing" (while running as root with fakeroot). This concerns the build stage, since it seems that the software does not require that the user exists at runtime.

So basically this ammounts to let the Debian build tools (and tools run within the build) to "believe" that a certain user already exists... Short of running in a chroot environment (such as pbuilder), to avoid having to actually create an user, how can I do this? I understand this is just a matter of creating the user myself as root, but I'd like to make this as automatic as possible.
Old 06-30-2009, 11:09 PM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Unfortunately, the installer requires that a system username and groupname is previously created.
Please provide error message and the step to create it.


build, dpkg, useradd

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how does grub knows about existence of other OS? mohit_garg Linux - Newbie 29 07-13-2005 08:24 PM
Device existence problem..... roshu Mandriva 2 02-07-2005 07:01 AM
Scanner's temporal existence phantompgr Fedora 0 10-14-2004 07:51 PM
check for existence of file j-me Linux - Newbie 5 07-29-2003 08:58 AM

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration