Re: Newuser
Scusate, non ho seguito la discussione dall'inizio ... e forse dico una
cavolata ...
Ma forse puo' esserti utile il modulo pam_mkhomedir:
Description:
This module is useful for distributed systems where the user account
is managed in a central
database (such as NIS, NIS+, or LDAP) and accessed through miltiple
systems. It frees the
administrator from having to create a default home directory on each
of the systems by creating
it upon the first succesfully authenticated login of that user. The
skeleton directory (usually
/etc/skel/) is used to copy default files and also set's a umask for
the creation.
The behavior of this module can be modified with one of the following
flags:
skel - The skeleton directory for default files to copy to the
new home directory.
umask - An octal for of the same format as you would pass to
the shells umask command
I dettagli sono all'url:
http://www.jimpick.com/pub/linux/libs/pam/Linux-PAM-html/pam-6.html
Ciao
On Mon, 02 Apr 2001 18:51:57 Francesco Lovergine wrote:
> On Sun, Apr 01, 2001 at 10:04:34PM +0200, Dr. Foobar wrote:
> > Il giorno Sun, Apr 01, 2001 at 10:56:59AM +0200, NetPhantom ha scritto:
> >
> > > Molti server,hanno a disposizione un account speciale solitamente
> chiamato
> > > "visitor" o "newuser", che lancia una procedura per la creazione di
> un
> > > nuovo utente.
> > > Come potrei fare anche io questo?
> >
> > creandoti uno scriptino che faccia tutto quello che vuoi fare e
> > mettendolo al posto di "/bin/sh" nella riga dell'utente newuser in
> > /etc/passwd. Cosi' quando si collega, invece di venire eseguita la
> > shell viene eseguito il tuo script.
> >
> > --
> > `cat ~/.mutt/signature`
> >
>
> Si possono 'limitare' i danni adottando sudo e una opportuna
> limitazione su uno script specifico destinato all'impiego per la
> creazione specifica dell'utente. Un wrapper per le funzioni
> chown,adduser,mkdir per intenderci. Ovviamente gli script di shell
> devono essere ben ponderati per evitare ovvi svarioni nel check
> dell'input utente, chesso' dimenticare gli "" al posto giusto :)
>
> --
> Francesco P. Lovergine
>
>
> --
> To UNSUBSCRIBE, email to debian-italian-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
Reply to:
- References:
- Newuser
- From: NetPhantom <netphantom@libero.it>
- Re: Newuser
- From: "Dr. Foobar" <piccia@libero.it>
- Re: Newuser
- From: Francesco Lovergine <frankie@debian.org>