🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: bash y passwd

#6420
From: Erich Lerch
Date: Tue, 01 Jul 2003 10:42
33 lines
1956 bytes
* Pacolinx <pacolinux@QUITAMEinicia.com>:
> Alvaro G. Vicario wrote:
> 
>>> clave=a
>>> alumno=b
>>> echo $clave | passwd --stdin $alumno
>>>
>>> Algien sabe como se haria?
>> 
>> Pues realmente es como lo haces. Yo lo tengo as� en un script y me
>> funciona sin problemas:
>> 
>> echo $contrasena | passwd --stdin $usuario
>> 
>> �Te da alg�n mensaje o simplemente no la cambia?
> 
> Me sale este mensaje de error:
> 
> passwd: opci�n inv�lida -- -
> usage: passwd [-f|-s] [name]
>        passwd [-x max] [-n min] [-w warn] [-i inact] name
>        passwd {-l|-u|-d|-S|-e} name
> 
> Parece q es problema de sintasis

A mi me parece problema de diferentes versiones de 'passwd'.
En mi sistema existe 'chpasswd', hace lo que quieres hacer.
Quizas tambi�n lo tienes?

saludos, e.
-- 
Erich Lerch
GnuPG-Key: http://lerchs.org/gpglerch.asc
Technical Details
Message-ID: <slrnbg2pck.ug.lerch.news@gurb.mine.nu>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!183.red-80-38-46.pooles.rima-tde.NET!not-for-mail
References: <5d17t-np2.ln1@paco.aldarias.org> <bdri9s$v2nsm$1@ID-157797.news.dfncis.de> <pj28t-n35.ln1@paco.aldarias.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,b99178322063b7d9
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-07-01 03:42:41 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!183.red-80-38-46.pooles.rima-tde.NET!not-for-mail
From: Erich Lerch <lerch.news@gmx.ch>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: bash y passwd
Date: Tue, 01 Jul 2003 10:42:28 -0000
Lines: 33
Message-ID: <slrnbg2pck.ug.lerch.news@gurb.mine.nu>
References: <5d17t-np2.ln1@paco.aldarias.org> <bdri9s$v2nsm$1@ID-157797.news.dfncis.de> <pj28t-n35.ln1@paco.aldarias.org>
NNTP-Posting-Host: 183.red-80-38-46.pooles.rima-tde.net (80.38.46.183)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1057056159 33804588 80.38.46.183 (16 [88913])
X-Orig-Path: gurb.mine.nu
X-URL: <http://lerchs.org>
User-Agent: slrn/0.9.7.4 (Linux)