Re: More advanced home directory creation in Debian?

2010-09-11 Thread Philipp Kern
On 2010-09-10, Jerome Warnier jwarn...@beeznest.net wrote: On Sun, 2010-08-22 at 19:00 -0300, Fernando Lemos wrote: On Sun, Aug 22, 2010 at 6:40 PM, Christoph Anton Mitterer cales...@scientia.net wrote: You're aware that not only .bash_* and .profile can be distributed by /etc/skel,... but

Re: More advanced home directory creation in Debian?

2010-09-10 Thread Jerome Warnier
On Sun, 2010-08-22 at 19:00 -0300, Fernando Lemos wrote: On Sun, Aug 22, 2010 at 6:40 PM, Christoph Anton Mitterer cales...@scientia.net wrote: You're aware that not only .bash_* and .profile can be distributed by /etc/skel,... but any other config file (e.g. .vimrc) a specific site or

Re: More advanced home directory creation in Debian?

2010-08-22 Thread Jerome Warnier
On Sun, 2010-08-15 at 15:42 +0200, Christoph Anton Mitterer wrote: Hi. I'd like the idea... it would make home-dir creation here at the faculty a lot more easier. On Tue, 2010-08-03 at 11:08 +0200, Petter Reinholdtsen wrote: The location could for example be /etc/skel.d/ I'd however

Re: More advanced home directory creation in Debian?

2010-08-22 Thread Lars Wirzenius
On su, 2010-08-22 at 13:37 +0200, Jerome Warnier wrote: I second this, as I feel the need to have some hook to create the home directory. Out of curiosity, since this does not affect me directly: is there a need to update existing home directories? For example, if one adds new files to

Re: More advanced home directory creation in Debian?

2010-08-22 Thread Christoph Anton Mitterer
On Mon, 2010-08-23 at 06:29 +1200, Lars Wirzenius wrote: Out of curiosity, since this does not affect me directly: is there a need to update existing home directories? For example, if one adds new files to /etc/skel, those only affect new home directories created after the fact, the existing

Re: More advanced home directory creation in Debian?

2010-08-22 Thread Fernando Lemos
On Sun, Aug 22, 2010 at 3:29 PM, Lars Wirzenius l...@liw.fi wrote: (My own preference would be to create all home directories as completely empty, not even using /etc/skel, and fix all applications that need a file to create one on demand.) There's no need for any of the files in /etc/skel, so

Re: More advanced home directory creation in Debian?

2010-08-22 Thread Christoph Anton Mitterer
You're aware that not only .bash_* and .profile can be distributed by /etc/skel,... but any other config file (e.g. .vimrc) a specific site or organisation may found useful for their users? Or a predefined directory structure,... ssh config perhaps specific for each user? Cheers, Chris. -- To

Re: More advanced home directory creation in Debian?

2010-08-22 Thread Fernando Lemos
On Sun, Aug 22, 2010 at 6:40 PM, Christoph Anton Mitterer cales...@scientia.net wrote: You're aware that not only .bash_* and .profile can be distributed by /etc/skel,... but any other config file (e.g. .vimrc) a specific site or organisation may found useful for their users? Or a predefined

Re: More advanced home directory creation in Debian?

2010-08-16 Thread Ian Jackson
Ben Hutchings writes (Re: More advanced home directory creation in Debian?): On Fri, Aug 13, 2010 at 03:41:45PM +0100, Ian Jackson wrote: One problem is that run-parts does not currently support passing arguments to its scripts: It does; use the --arg option. So it does. Urgh, what

Re: More advanced home directory creation in Debian?

2010-08-15 Thread Christoph Anton Mitterer
Hi. I'd like the idea... it would make home-dir creation here at the faculty a lot more easier. On Tue, 2010-08-03 at 11:08 +0200, Petter Reinholdtsen wrote: The location could for example be /etc/skel.d/ I'd however suggest e.g. /etc/adduser.d or so... or at least not skel.d Conceptually the

Re: More advanced home directory creation in Debian?

2010-08-13 Thread Marc Haber
On Tue, 10 Aug 2010 22:36:58 +0200, Petter Reinholdtsen p...@hungry.com wrote: [Ian Jackson] So while it doesn't use run-parts, it's halfway there already. I use adduser.local on chiark. Definitely useful, but not enought, as the debian-edu-config package would break policy if it included a

Re: More advanced home directory creation in Debian?

2010-08-13 Thread Ian Jackson
Marc Haber writes (Re: More advanced home directory creation in Debian?): On Tue, 10 Aug 2010 22:36:58 +0200, Petter Reinholdtsen p...@hungry.com wrote: [Ian Jackson] So while it doesn't use run-parts, it's halfway there already. I use adduser.local on chiark. Definitely useful

Re: More advanced home directory creation in Debian?

2010-08-13 Thread Ben Hutchings
On Fri, Aug 13, 2010 at 03:41:45PM +0100, Ian Jackson wrote: Marc Haber writes (Re: More advanced home directory creation in Debian?): [...] I guess that the adduser maintainers might apply a patch to adduser introducing a second hook which is not in /usr/local, and then one of your

Re: More advanced home directory creation in Debian?

2010-08-10 Thread Ian Jackson
Petter Reinholdtsen writes (More advanced home directory creation in Debian?): It would be nice if all the tools copying /etc/skel/ also had a common location for their post-creating scripts, making sure users created by for example adduser, lwat, libpam-mkhomedir and libpam-mklocaluser get

Re: More advanced home directory creation in Debian?

2010-08-10 Thread Petter Reinholdtsen
[Ian Jackson] So while it doesn't use run-parts, it's halfway there already. I use adduser.local on chiark. Definitely useful, but not enought, as the debian-edu-config package would break policy if it included a file in /usr/local/, and only one package can provide this script at the time

More advanced home directory creation in Debian?

2010-08-03 Thread Petter Reinholdtsen
I got this idea from Debian Edu, where we need to run scripts when a user is created to create files adjusted for each user, and we would like this to work with any tool used to create users. At the moment, a users home directory is created by adduser and other tools by copying the content of