LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

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

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


Hi,

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
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

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


Reply

Tags
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 03:52 AM.

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