🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #7885

Re: bash y passwd

#7885
From: zd
Date: Sat, 18 Jan 2003 15:55
39 lines
2256 bytes
Respuesta al mensaje de: zd <zeldere_nntp@yahoo.es>.
Con identificador: <b0bq1p$onm$1@titan.bt.es>.

>>> > Quiero comprobar q el usuario no existe en /etc/passwd, como lo hago
>>> > Siempre me dice q no existe. Pq?
>>> > ---------------
>>> > alumno=juanito
>>> > if grep "^${alumno}:" /etc/passwd 
>>> >         then
>>> >                 echo "El usuari " $alumno " ya existe"
>>> >         else
>>> >                 echo "El usuari " $alumno " no existe"
>>> >         fi
>>> > ----------------
> 

[...]

>     Bueno, ya me he frotado bien los ojos...

    Vale, creo que me voy a dar una ducha con agual helada.

    Lo mejor ser� que hoy no use el ordenador. De seguir as� terminar�
por hacer un "rm" donde no debo, o �so, o consigo que por fin me prepa-
re las tostadas cada ma�ana.

    En fin...

    �Est�s seguro de que el usuario juanito existe?, el gui�n, tal como
est�, olvid�ndote de las tonter�as varias que te pueda haber dicho, ten-
dr�a que funcionar.

   (Qu� d�a, qu� d�a).


-- 
Zeles Deree (zeldere) / [.zd]
 * Correo: zeldere_nntp@yahoo.es
 * GNU/Linux - LFS 3.1
Technical Details
Message-ID: <b0btdh$qas$1@titan.bt.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!btnet-peer!btnet!newsfeed.bt.es!news.bt.es!not-for-mail
References: <2conf-lb2.ln1@paldaria.dsland.org> <b0bkkt$m62$1@titan.bt.es> <20030118145909.6d0ac8e3.444398@celes.unizar.es> <b0bq1p$onm$1@titan.bt.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,a0ddc9dad727a552
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-01-18 08:17:15 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!btnet-peer!btnet!newsfeed.bt.es!news.bt.es!not-for-mail
From: zd <zeldere_nntp@yahoo.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: bash y passwd
Date: 18 Jan 2003 15:55:29 GMT
Organization: BT Tel. Netnews service (readers)
Lines: 39
Message-ID: <b0btdh$qas$1@titan.bt.es>
References: <2conf-lb2.ln1@paldaria.dsland.org> <b0bkkt$m62$1@titan.bt.es> <20030118145909.6d0ac8e3.444398@celes.unizar.es> <b0bq1p$onm$1@titan.bt.es>
NNTP-Posting-Host: cable223a208.usuarios.retecal.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: titan.bt.es 1042905329 26972 212.183.223.208 (18 Jan 2003 15:55:29 GMT)
X-Complaints-To: abuse@bt.es
NNTP-Posting-Date: 18 Jan 2003 15:55:29 GMT
User-Agent: slrn/0.9.7.3 (Linux)