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

Re: user_quasi_del



Alle 22:20, lunedì 16 agosto 2004, Leonardo Boselli ha scritto:
> On Mon, 16 Aug 2004, Iacopo Spalletti wrote:
> > Alle 10:50, lunedì 16 agosto 2004, Leonardo Boselli ha scritto:
> > Non potresti cancellare tutto con userdel e poi reinserire un utente
> > segnaposto con lo stesso UID, senza home password, shell etc?
> > --
>
> mi mandi la patch allo script per fare ciò ? :-))))
Bah, io lo farei semplicemente via bash
#!/bin/bash
utente=$1
uid=`id -u $utente`
userdel -r $utente
useradd -u $uid -d /falsa/home -g gruppoUtentiDisattivati -s /bin/false 
$utente
echo "$utente:password" | chpasswd

-- 
Ciao
IS
Iacopo Spalletti
i dot spalletti at iast dot it
PGP key block: http://www.nephila.it/pgp



Reply to: