[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: adduser: add -k [was: Re: [OE-core] Post USERADD_PARAM action]
From:       Laszlo Papp <lpapp () kde ! org>
Date:       2015-05-26 9:08:00
Message-ID: CAOMwXhO-v+i+TftbffUoQOu9a-t3wHpJNAb=8gqjFVND8T4DnQ () mail ! gmail ! com
[Download RAW message or body]

On Mon, May 25, 2015 at 10:32 PM, Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com> wrote:
> On Fri, May 22, 2015 at 12:37:13PM +0100, Laszlo Papp wrote:
>> Hi,
>>
>> is it possible to do some post action after useradd_param is executed?
>>
>> I would like to modify the created user's home directory, in this
>> special case the profile. I see that the useradd util has this on
>> desktop, but busybox does not have it, and very likely will not have
>> it, at least not in the near future anyway:
>
> mhm, why so?

People tend to complain about not very common and minimalistic
features going in. Perhaps, if it is optional, it may sneak in easier.
Man proposes, Denys disposes.


> The attached compiles for me.
>
> cheers,
>
>>
>>        -k, --skel SKEL_DIR
>>            The skeleton directory, which contains files and
>> directories to be copied in the user's home directory, when the home
>> directory is created by useradd.
>>
>>            This option is only valid if the -m (or --create-home)
>> option is specified.
>>
>>            If this option is not set, the skeleton directory is
>> defined by the SKEL variable in /etc/default/useradd or, by default,
>> /etc/skel.
>>
>>            If possible, the ACLs and extended attributes are copied.
>>
>> I would like to do something like this with the created user's home directory:
>>
>> echo PATH=/sbin:$PATH > /home/foo/.profile
>> chmod foo:foo /home/foo/.profile
>>
>> But then again, for this, I need to make sure that the user is already created.
>>
>> Ys, L.
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic