Article View: es.comp.os.linux.programacion
Article #1135Re: Script de creacion de usuario
From: Pascal Bourguignon
Date: Tue, 14 Mar 2006 17:41
Date: Tue, 14 Mar 2006 17:41
25 lines
1923 bytes
1923 bytes
speeter <speeter@terra.es> writes: > Hola a todos > > Estoy creando un script en bash que me cree un usuario. Con useradd lo > creo sin problemas, pero el problema viene cuando quiero ponerle la > password. > > Estoy probando con algo asi: > > echo -e '$pass\n$pass' | passwd $user > > Pero no me da resultado, no se si voy por buen camino. > > Alguna idea? Usa: expect(1). -- __Pascal Bourguignon__ http://www.informatimago.com/ NOTE: The most fundamental particles in this product are held together by a "gluing" force about which little is currently known and whose adhesive power can therefore not be permanently guaranteed.
Technical Details
Message-ID:
<87ek14hqkm.fsf@thalassa.informatimago.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<c4DRf.814796$kp.5743910@telenews.teleline.es>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,4fdd2c2624285262
X-Google-Attributes: gidf86c8,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Pascal Bourguignon <usenet@informatimago.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Script de creacion de usuario
Date: Tue, 14 Mar 2006 18:41:13 +0100
Organization: Informatimago
Lines: 25
Message-ID: <87ek14hqkm.fsf@thalassa.informatimago.com>
References: <c4DRf.814796$kp.5743910@telenews.teleline.es>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: individual.net 8UsXa09RSVddpWMpwZxqAwR6V4gKNbKQvhPIS/wSuN75agrV4I
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA
oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
mV+hO/VvFAAAAABJRU5ErkJggg==
X-Accept-Language: fr, es, en
X-Disabled: X-No-Archive: no
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)
Cancel-Lock: sha1:aIgREDU0woUOU7ZzfMbEgm77FeM=