Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sources.redhat.com/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <1052750098.3ebfb11265eb5@webmail.imag.fr> Date: Mon, 12 May 2003 16:34:58 +0200 From: Sylvain DOT Ferriol AT imag DOT fr To: Sylvain DOT Ferriol AT imag DOT fr Cc: cygwin AT cygwin DOT com, Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>, sferriol <Sylvain DOT Ferriol AT imag DOT fr> Subject: Re: howto change home path in /etc/passwd References: <Pine DOT GSO DOT 4 DOT 44 DOT 0305121021020 DOT 393-100000 AT slinky DOT cs DOT nyu DOT edu> <1052749853 DOT 3ebfb01d553c8 AT webmail DOT imag DOT fr> In-Reply-To: <1052749853.3ebfb01d553c8@webmail.imag.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252;q=1.0 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 152.77.201.128 Surlignage Sylvain DOT Ferriol AT imag DOT fr: > Surlignage Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>: > > > On Mon, 12 May 2003 Sylvain DOT Ferriol AT imag DOT fr wrote: > > > > > Surlignage Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>: > > > > > > > On Mon, 12 May 2003, sferriol wrote: > > > > > > > > > hello > > > > > is there a command to change the home directory of a user in > > /etc/passwd > > > > > because ssh sees this file before $HOME and i have always a error. > > > > > > > > Use an editor to edit /etc/passwd (as has been suggested). Mind the > > line > > > > endings (I think). > > > > > > no my question is to do this automatically > > > because when the admin has installed cygwin on a computer, it adds users > > > and each users has to define the variable HOME, > > > but if they use ssh, they have to chang /etc/passwd too. > > > > > > i want to create a install file which update automatically /etc/passwd, > > puts defaults files (bashrc, inputrc,...) > > > i see that there is the mkpasswd command but it doesn't do what i want > > > > > > do you know when /etc/passwd is created??? > > > > > > sylvain > > > > /etc/passwd is normally created (along with /etc/group) when setup runs > > the passwd-grp.sh postinstall script. The program that actually creates > > the passwd entries is called mkpasswd, and it sets the home directory to > > /home/<username> by default. > > > > One thing you can do is create symbolic links (or, better yet, user > > mounts) from /home/<username> to that user's $HOME. That way, you will > > not have to change /etc/passwd at all. > > OK but do you know how to get the username because in the cygwin terminal > echo $USER or echo $USERNAME works > but i 'm using a file install.bat which calls 'bash.exe instal.sh' > and in install.sh: > > echo $USER....nothing > echo $USERNAME....nothing > > any suggestions??? SORRY IT's a mistake but anyway , WHY SSH HAS TO READ /etc/passwd before reading options or $HOME/.ssh/config????? sylvain > > sylvain > > > > Igor > > -- > > http://cs.nyu.edu/~pechtcha/ > > |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu > > ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com > > |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski > > '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! > > > > Knowledge is an unending adventure at the edge of uncertainty. > > -- Leto II > > > > > > > > > ------------------------------------------------- > envoy� via Webmail/IMAG ! > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > ------------------------------------------------- envoy� via Webmail/IMAG ! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/