delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/26/10:54:10

From: bms AT earthlink DOT net
Subject: passwd, LOGNAME, EUID, UID and bash
26 Jan 1997 10:54:10 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <1.5.4.32.19970126174026.006833f8.cygnus.gnu-win32@earthlink.net>
Mime-Version: 1.0
X-Sender: bms AT earthlink DOT net
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Well here goes again...

I set up the passwd file such that it contained such information 

#/etc/passwd
name::500:500:name:/usr/name:/bin/sh

Regardless of what I do, bash seems to load the absolude last line of this
file to set UID, EUID, and LOGNAME. However, it fails to grab HOME dir or
SHELL entry. Now the way I understand the login dynamic, "login" sets these
variables, especially since they are not settable once bash is running.
However, ther is no "login" executable per se. and even if there were, I
have tried setting these var's before running bash and it resets them as it
sees fit.

Is this a bug/feature/ or am I doing it wrong?

Bradley


I'd like to be able to actually have multiple users each with their own HOME
directories.

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019