From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 17 Mar 2015 01:09:50 +0300 From: "Dmitry V. Levin" To: ALT Linux Community general discussions Message-ID: <20150316220950.GA7675@altlinux.org> References: <55070FFD.1010908@complife.ru> <20150316203115.GA6980@altlinux.org> <55074A7A.5020503@complife.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <55074A7A.5020503@complife.ru> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [Comm] passwd after su - X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2015 22:09:50 -0000 Archived-At: List-Archive: List-Post: --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 16, 2015 at 10:26:18PM +0100, Michael A. Kangin wrote: > 16.03.2015 21:31, Dmitry V. Levin =D0=C9=DB=C5=D4: >=20 > >>[root@mak-ws ~]# passwd > >>passwd: updating all authentication tokens for user mak. > > > >=F4=D2=C1=C4=C9=C3=C9=CF=CE=CE=CF passwd =D0=CF =D5=CD=CF=CC=DE=C1=CE=C9= =C0 =CD=C5=CE=D1=C5=D4=20 > >=D0=C1=D2=CF=CC=D8 =D4=CF=C7=CF =D6=C5 =D3=C1=CD=CF=C7=CF =D0=CF=CC=D8= =DA=CF=D7=C1=D4=C5=CC=D1, > >=CB=CF=D4=CF=D2=CF=C7=CF =D0=CF=CB=C1=DA=D9=D7=C1=C5=D4 logname(1). =F7= =D7=C1=DB=C5=CD=20 > >=D3=CC=D5=DE=C1=C5: > > > >[root@mak-ws ~]# logname > >mak >=20 > Ok, =D0=CF=C8=CF=D6=C5 =CE=C1 =D4=CF. > =EE=CF, =D7=CF=DA=D7=D2=C1=DD=C1=D1=D3=D8 =CB, =D0=D2=C1=D7=C9=CC=D8=CE= =CF =CC=C9 =D4=C1=CB=CF=C5=20 > =D0=CF=D7=C5=C4=C5=CE=C9=C5? =FC=D4=CF =D4=D2=C1=C4=C9=C3=C9=CF=CE=CE=CF=C5 =D0=CF=D7=C5=C4=C5=CE=C9=C5. passwd =D4=D2=C1=C4=C9=C3=C9=CF=CE=CE=CF =C9=D3=D0=CF=CC=D8=DA=D5=C5=D4 get= login(3) =C4=CC=D1 =D0=CF=CC=D5=DE=C5=CE=C9=D1 =C9=CD=C5=CE=C9 =D0=CF=CC=D8= =DA=CF=D7=C1=D4=C5=CC=D1 =D0=CF =D5=CD=CF=CC=DE=C1=CE=C9=C0. > DESCRIPTION > Print the name of the current user. =F7 =DC=D4=CF=CD =CF=D0=C9=D3=C1=CE=C9=C9 =CF=DB=C9=C2=CB=C1, =D0=D2=C9=C5= =C8=C1=D7=DB=C1=D1 =C9=DA =D7=D4=CF=D2=CF=CA =D3=D4=D2=CF=CB=C9 =D7=D9=D7= =CF=C4=C1 "logname --help". =F7 "info logname" =CC=D5=DE=DB=C5 =CE=C1=D0=C9=D3=C1=CE=CF. =F7 SUSv3 =D0=D2=CF logname =C5=DD=C5 =C2=CF=CC=C5=C5 =DE=C5=D4=CB=CF =D3= =CB=C1=DA=C1=CE=CF: "The logname utility shall write the user's login name to standard output. The login name shall be the string that would be returned by the getlogin() function". =F7 =D3=CF=D7=D2=C5=CD=C5=CE=CE=D9=C8 =D3=C9=D3=D4=C5=CD=C1=C8 getlogin(3) = =D0=CF=CC=D5=DE=C1=C5=D4 =C9=CE=C6=CF=D2=CD=C1=C3=C9=C0 =C9=DA /proc/self/l= oginuid. --=20 ldv --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlUHVK4ACgkQfKvmrJ41Nh4s4gCdH7tDdqnzAIVHTBwabDrz0v0v YskAoLsNuNkyIrbrQBsjIgf170GJx8c4 =Ph67 -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF--