howto change home path in /etc/passwd

Christopher Faylor cgf-rcm@cygwin.com
Mon May 12 14:42:00 GMT 2003


On Mon, May 12, 2003 at 04:30:53PM +0200, Sylvain.Ferriol@imag.fr wrote:
>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???

1) calm down.

2) "id -un" provides the login name.  You could do something like:

   USER="`id -un`"

   in your script

cgf
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam@sourceware.org
and be permanently blocked from mailing lists at sources.redhat.com

--
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/



More information about the Cygwin mailing list