[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

non-package software additions, and other modifications



Chris Ross wrote:

> > The Live system calls "adduser" during bootup to create the user. To
> > modify it's behaviour, take a look at /etc/adduser.conf - it has the
> > functionality you need (ADD_EXTRA_GROUPS and EXTRA_GROUPS, I think).
>  
> Hmm.  I must be misunderstanding something.

Actually, I made a mistake. live-initramfs does not call 'adduser', it
uses debconf to configure the user. Sorry for misleading you.

To get the behaviour you want, try putting the following text in
config/chroot_local-includes/usr/share/initramfs-tools/scripts
/live-bottom/99usergroup.sh and make the file executable:

   #!/bin/sh
   . /scripts/live-functions
   for GROUP in dialout cdrom floppy audio src video lp src users disk;
   do
	chroot /root adduser $USERNAME $GROUP
   done


> So, something   about the adduser that the system is invoking at boot
> doesn't work quite the way I'm expecting it to.

:]


/Lamby

ps. By the way, I read the list - please do not send me mail directly.

-- 
 Chris Lamb, Leamington Spa, UK                          GPG: 0x634F9A20
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20070620/51014065/attachment-0001.pgp 


Reply to: