Re: Home directory on network drive not accessible in 3.3.4

2022-04-29 Thread Takashi Yano
On Fri, 29 Apr 2022 13:59:59 +0200
Thomas Wolff wrote:
> I upgraded 3.3.3 → 3.3.4 in a lab environment, where my home directory 
> is H:\ or /cygdrive/h
> 
> Starting cygwin (cmd/bash or mintty) with some tools from gnuutils (like 
> ls) in the path gives me this message:
> 
> mkdir: cannot create directory ‘/cygdrive/h’: File exists
> /cygdrive/h could not be created.
> Setting HOME to /tmp.
> 
> After clearing PATH, then running bash or mintty:
> bash: /cygdrive/h/.bashrc: Too many levels of symbolic links
> 
> $ cd /cygdrive/h
> -bash: cd: /cygdrive/h: Too many levels of symbolic links
> 
> $ /bin/ls -l /cygdrive
> /bin/ls: /cygdrive/h: Too many levels of symbolic links
> /bin/ls: /cygdrive/l: Too many levels of symbolic links
> total 48
> d---r-x---+ 1 NT SERVICE+TrustedInstaller NT SERVICE+TrustedInstaller 0 
> Apr 27 11:01 c
> drwx---rwx+ 1 SYSTEM SYSTEM  0 Mar 23 15:41 d
> drwxrwx---  1 Administratoren Domänen-Admins 0 Nov 26 11:40 h
> drwxrwxr-x  1 Administratoren Domänen-Admins 0 Dec 17 18:53 l
> 
> $ /bin/mount
> //141.64.144.100/Labormaterial/TGI/cygwin64/bin on /usr/bin type ntfs 
> (binary,auto)
> //141.64.144.100/Labormaterial/TGI/cygwin64/lib on /usr/lib type ntfs 
> (binary,auto)
> //141.64.144.100/Labormaterial/TGI/cygwin64 on / type ntfs (binary,auto)
> C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
> D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
> H: on /cygdrive/h type ntfs (binary,posix=0,user,noumount,auto)
> L: on /cygdrive/l type ntfs (binary,posix=0,user,noumount,auto)
> 
> Reverting to cygwin 3.3.3 solves the issue. Maybe related to the other 
> 3.3.4 problem reported today?

This seems to be the issue which was already fixed in git head.
https://cygwin.com/pipermail/cygwin-patches/2022q1/011729.html

-- 
Takashi Yano 

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory was not created

2021-03-05 Thread Kraja, Aldi via Cygwin
Dear Thomas, Kavalgios, Brian and who is the maintainer of the CYGWIN team,
Please remove my email address a...@wustl.edu from your posting lists 
(cygwin@cygwin.com).

I have enjoyed your hard work as well as your outstanding contributions. But, 
now the time has arrived that your project is obsolete, because Microsoft has 
introduced ubuntu for windows system on windows 10, which covers everything I 
need. So, I have removed cygwin software from all my computers.

The installation of UBUNTU on windows 10 is very simple: a) On the search box 
of windows 10, search for "Turn Windows Features On or Off", b) In that list, 
check the box for "Windows Subsystem for Linux", c) Install the latest UBUNTU 
from Microsoft store for free, d) run terminal of Ubuntu from windows as an 
app: first time it will asks to set a username and password.
e) Follow with sudo ubuntu apt upgrade ; sudo ubuntu apt update. The rest is 
whatever the user wants to do, by installing additional packages, emacs etc. To 
simplify the use of x-win interface one can install VcXsrc for using XLaunch 
app for free.

Once more thank you for all your efforts in years. It has been a great help to 
use your software in years.

Best wishes,

Aldi Kraja, DSc, PhD
aldi.kr...@pystat.com


From: Cygwin  on behalf of KAVALAGIOS Panagiotis 
(EEAS-EXT) 
Sent: Wednesday, March 3, 2021 06:43 AM
To: Thomas Wolff 
Cc: cygwin@cygwin.com 
Subject: RE: Home directory was not created

> -Original Message-
> From: Thomas Wolff 
> Sent: 03 March 2021 12:58
>
> Am 03.03.2021 um 12:22 schrieb KAVALAGIOS Panagiotis (EEAS-EXT):
> >> -Original Message-
> >> From: Cygwin  On Behalf Of Brian Inglis
> >> Sent: 02 March 2021 19:57
> >>
> >> On 2021-03-02 01:08, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> >>> -Original Message-
> >>> From: KAVALAGIOS Panagiotis (EEAS-EXT)
> >>> Sent: 02 March 2021 08:15
> >>> zip 358KB > 256KB too big I think
> > OK, the mystery has been resolved. There should be at least an e-mail
> notification to indicate that limitation. It is not polite for the list to 
> simply
> ignore the submissions without saying anything :)
> There have been 3 responses on the list so what are you complaining about?

I couldn't send the log file "setup.log.full" as attachment to the list. I 
tried both plain and zip version to no avail.

I have manage to sent it only as a private e-mail to Brian. There was no e-mail 
returned to indicate any error. It was silently ignored whereas there should be 
an error notification, or if there was it never reached my mailbox.

Panos
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory was not created

2021-03-05 Thread Brian Inglis

On 2021-03-03 04:22, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

-Original Message-
From: Cygwin  On Behalf Of Brian Inglis
Sent: 02 March 2021 19:57

On 2021-03-02 01:08, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

-Original Message-
From: KAVALAGIOS Panagiotis (EEAS-EXT)
Sent: 02 March 2021 08:15



zip 358KB > 256KB too big I think


OK, the mystery has been resolved. There should be at least an e-mail 
notification to indicate that limitation. It is not polite for the list to 
simply ignore the submissions without saying anything :)


All postinstall steps failed because of BLODA or installation path:

2021/02/09 17:48:06 running: C:\Program Files\Cygwin\bin\dash.exe
"/etc/postinstall/0p_000_autorebase.dash"
0 [main] dash (2296) shared_info::initialize: size of shared memory 
region
changed from 49080 to 40888
2021/02/09 17:48:20 abnormal exit: exit code=-1073741819 ...

Installing under Program\ Files causes issues because of space in path names
and BLODA-like AV protections on those paths.


The installation is performed by powershell script that runs with the super 
admin (system user/nt authority) from local repository that normally bypasses 
all those kind of AV restrictions. I start it from the Cygwin icon that runs 
mintty under the hood. I don't know who took those 8KB from the script's shared 
memory, but indeed it looks like a BLODA interference. I will ask the package 
to be re-installed.

I have checked the installation logs and there was no error returned from the 
setup program. Shouldn't return non-zero value so that the package manager is 
notified about that issue? Or maybe it Is returned and I failed to propagate 
that in my .bat file:

-
@echo off
@echo Starting Cygwin installation

"%cd%\setup-x86_64.exe" -q -A -L -l "%cd%\cygwin-repo" -R "C:\Program 
Files\Cygwin" -P 
autoconf,automake,bash-completion,binutils,curl,dos2unix,emacs,git,git-svn,gnupg2,inetutils,jq,konsole,mc,openssh,patchutils,perl,psmisc,python2,python3,rsync,ruby,subversion,tcsh,tmux,unzip,vim,vim-common,wget,xinit,xlaunch,xorg-server,xorg-server-common,xorg-server-xorg,xorg-x11-fonts-dpi100,xorg-x11-fonts-dpi75,xorg-x11-fonts-Type1,xorg-x11-fonts-misc,xterm,zip
-

Does it need "exit /b %errorlevel%"?

We are running Cygwin from "C:\Program Files" for years without issue. A space in the directory 
name is a very supported character for Unix and Unix-like systems as well. A quoted path that includes a 
space character is enough to resolve any possible issues. Unfortunately on an enterprise environment, program 
execution is only allowed under "C:\Program Files", so we haven't left many options. We do have 
prepared another directory without spaces for programs that even refuse to be installed on a path containing 
spaces (call me Weblogic and ColdFusion servers), but Cygwin accepts happily to be installed on a directory 
with spaces with a small warning. I would need to justify the non-compliance of Cygwin to be moved off 
"C:\Program Files" and so far I don't have any evidence.


You have just stated that there are at least two exceptions that you are aware 
of installation under Program Files, so installation and execution is not "only 
allowed" there.
Cygwin includes a lot of data files and your home directories under there and 
Windows now, and moreso in the future, disables and disallows modifications and 
changes there without elevation, or bypass of the policies requiring elevation.


The "small" warning is your interpretation, but feel free to downplay that 
evidence and ignore it at your peril, as you may not soon notice the security 
and/or integrity problems that occur because of programs and all the scripts 
that don't handle spaces safely, especially in crafted path names and argument 
values, or the problems that occur because Windows security may silently prevent 
user changes or file creation, or require security policy bypasses to allow them 
to do whatever they like under those paths.


Read up on OS/command/shell injection vulnerabilities and why patching bash for 
shellshock was just the start of a massive effort required to change every 
command in every script, and every program invoked by every script, to support 
and use features that limit the opportunities for, and effects of, vulnerability 
injections into directory and file paths and names, program and script names, 
options, and argument values.


--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


RE: Home directory was not created

2021-03-05 Thread KAVALAGIOS Panagiotis (EEAS-EXT)
> -Original Message-
> From: Cygwin  On Behalf Of KAVALAGIOS
> Panagiotis (EEAS-EXT)
> Sent: 03 March 2021 12:23
> 
> > -Original Message-
> > From: Cygwin  On Behalf Of Brian Inglis
> > Sent: 02 March 2021 19:57
> >
> > All postinstall steps failed because of BLODA or installation path:
> >
> > 2021/02/09 17:48:06 running: C:\Program Files\Cygwin\bin\dash.exe
> > "/etc/postinstall/0p_000_autorebase.dash"
> >0 [main] dash (2296) shared_info::initialize: size of shared
> > memory region changed from 49080 to 40888
> > 2021/02/09 17:48:20 abnormal exit: exit code=-1073741819 ...
> >
> > Installing under Program\ Files causes issues because of space in path
> > names and BLODA-like AV protections on those paths.
> 
> The installation is performed by powershell script that runs with the super
> admin (system user/nt authority) from local repository that normally
> bypasses all those kind of AV restrictions. I start it from the Cygwin icon 
> that
> runs mintty under the hood. I don't know who took those 8KB from the
> script's shared memory, but indeed it looks like a BLODA interference. I will
> ask the package to be re-installed.
> 
> I have checked the installation logs and there was no error returned from the
> setup program. Shouldn't return non-zero value so that the package
> manager is notified about that issue? Or maybe it Is returned and I failed to
> propagate that in my .bat file:
> 
> -
> @echo off
> @echo Starting Cygwin installation
> 
> "%cd%\setup-x86_64.exe" -q -A -L -l "%cd%\cygwin-repo" -R "C:\Program
> Files\Cygwin" -P autoconf,automake,bash-
> completion,binutils,curl,dos2unix,emacs,git,git-
> svn,gnupg2,inetutils,jq,konsole,mc,openssh,patchutils,perl,psmisc,python2,
> python3,rsync,ruby,subversion,tcsh,tmux,unzip,vim,vim-
> common,wget,xinit,xlaunch,xorg-server,xorg-server-common,xorg-server-
> xorg,xorg-x11-fonts-dpi100,xorg-x11-fonts-dpi75,xorg-x11-fonts-Type1,xorg-
> x11-fonts-misc,xterm,zip
> -
> 
> Does it need "exit /b %errorlevel%"?

I have requested the Cygwin package to be re-installed on my laptop and now it 
works fine and in the first execution:

--
Copying skeleton files.
These files are for the users to personalise their cygwin experience.

They will never be overwritten nor automatically updated.

'./.bashrc' -> '/home/kavalpa//.bashrc'
'./.bash_profile' -> '/home/kavalpa//.bash_profile'
'./.inputrc' -> '/home/kavalpa//.inputrc'
'./.profile' -> '/home/kavalpa//.profile'

kavalpa@BELBRU-L1922205 ~
$
--

My /var/log/setup.log.full is also clean and the postinstall scripts were 
successfully completely:

--
2021/03/05 09:18:07 running: C:\Program Files\Cygwin\bin\bash.exe --norc 
--noprofile "/etc/postinstall/emacs.sh"
2021/03/05 09:18:09 running: C:\Program Files\Cygwin\bin\bash.exe --norc 
--noprofile "/etc/postinstall/librsvg2.sh"
2021/03/05 09:18:55 running: C:\Program Files\Cygwin\bin\bash.exe --norc 
--noprofile "/etc/postinstall/openssh.sh"
...
--

All good now thanks!

Panos
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory was not created

2021-03-03 Thread Brian Inglis

On 2021-03-03 06:07, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

-Original Message-
From: Thomas Wolff 
Sent: 03 March 2021 13:59

Am 03.03.2021 um 13:43 schrieb KAVALAGIOS Panagiotis (EEAS-EXT):

-Original Message-
From: Thomas Wolff 
Sent: 03 March 2021 12:58

Am 03.03.2021 um 12:22 schrieb KAVALAGIOS Panagiotis (EEAS-EXT):

-Original Message-
From: Cygwin  On Behalf Of Brian Inglis
Sent: 02 March 2021 19:57

On 2021-03-02 01:08, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

-Original Message-
From: KAVALAGIOS Panagiotis (EEAS-EXT)
Sent: 02 March 2021 08:15
zip 358KB > 256KB too big I think

OK, the mystery has been resolved. There should be at least an
e-mail

notification to indicate that limitation. It is not polite for the
list to simply ignore the submissions without saying anything :)
There have been 3 responses on the list so what are you complaining

about?

I couldn't send the log file "setup.log.full" as attachment to the list. I tried

both plain and zip version to no avail.


I have manage to sent it only as a private e-mail to Brian. There was no e-

mail returned to indicate any error. It was silently ignored whereas there
should be an error notification, or if there was it never reached my mailbox.
You seem to have a novice understanding of how many open source projects
and mailing lists work.
You cannot *expect* anybody to respond to you within a certain time, or
even less than a day, unless you had a paid service contract. So reduce your
expectations. This is a volunteer project, free for all users after all.


I am sorry Thomas for not being clear. I didn't get any automated error 
response for my rejected e-mail with the attachment to the list. That was my 
complain about. In no case, there was no complain about the responses on the 
issue from the list members. I apologise for the misunderstanding.
Don't expect mailing lists that don't post emails for policy reasons to reply 
because of HTML, size, etc. That mail bombs a third party if the return address 
is spoofed. At one point corporate boilerplate with certain keywords caused drops.


If a post does not appear on the list, you check the list, notice, and mention 
that, with stats, in a post and you will be enlightened. ;^>


It would be nice to document the size limit on the Cygwin ML web page.
I can provide a patch, if someone provides an attachment size limit?
If not, I can provide a patch, and have someone fill in the actual size limit.

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


RE: Home directory was not created

2021-03-03 Thread KAVALAGIOS Panagiotis (EEAS-EXT)
> -Original Message-
> From: Thomas Wolff 
> Sent: 03 March 2021 13:59
> 
> Am 03.03.2021 um 13:43 schrieb KAVALAGIOS Panagiotis (EEAS-EXT):
> >> -Original Message-
> >> From: Thomas Wolff 
> >> Sent: 03 March 2021 12:58
> >>
> >> Am 03.03.2021 um 12:22 schrieb KAVALAGIOS Panagiotis (EEAS-EXT):
>  -Original Message-
>  From: Cygwin  On Behalf Of Brian Inglis
>  Sent: 02 March 2021 19:57
> 
>  On 2021-03-02 01:08, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> > -Original Message-
> > From: KAVALAGIOS Panagiotis (EEAS-EXT)
> > Sent: 02 March 2021 08:15
> > zip 358KB > 256KB too big I think
> >>> OK, the mystery has been resolved. There should be at least an
> >>> e-mail
> >> notification to indicate that limitation. It is not polite for the
> >> list to simply ignore the submissions without saying anything :)
> >> There have been 3 responses on the list so what are you complaining
> about?
> > I couldn't send the log file "setup.log.full" as attachment to the list. I 
> > tried
> both plain and zip version to no avail.
> >
> > I have manage to sent it only as a private e-mail to Brian. There was no e-
> mail returned to indicate any error. It was silently ignored whereas there
> should be an error notification, or if there was it never reached my mailbox.
> You seem to have a novice understanding of how many open source projects
> and mailing lists work.
> You cannot *expect* anybody to respond to you within a certain time, or
> even less than a day, unless you had a paid service contract. So reduce your
> expectations. This is a volunteer project, free for all users after all.

I am sorry Thomas for not being clear. I didn't get any automated error 
response for my rejected e-mail with the attachment to the list. That was my 
complain about. In no case, there was no complain about the responses on the 
issue from the list members. I apologise for the misunderstanding.

Panos
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


RE: Home directory was not created

2021-03-03 Thread KAVALAGIOS Panagiotis (EEAS-EXT)
> -Original Message-
> From: Andrey Repin 
> Sent: 03 March 2021 12:56
> 
> Greetings, KAVALAGIOS Panagiotis (EEAS-EXT)!
> 
> >> All postinstall steps failed because of BLODA or installation path:
> >>
> >> 2021/02/09 17:48:06 running: C:\Program Files\Cygwin\bin\dash.exe
> >> "/etc/postinstall/0p_000_autorebase.dash"
> >>0 [main] dash (2296) shared_info::initialize: size of shared
> >> memory region changed from 49080 to 40888
> >> 2021/02/09 17:48:20 abnormal exit: exit code=-1073741819 ...
> >>
> >> Installing under Program\ Files causes issues because of space in
> >> path names and BLODA-like AV protections on those paths.
> 
> > The installation is performed by powershell script that runs with the
> > super admin (system user/nt authority) from local repository that
> > normally bypasses all those kind of AV restrictions. I start it from
> > the Cygwin icon that runs mintty under the hood. I don't know who took
> > those 8KB from the script's shared memory, but indeed it looks like a
> > BLODA interference. I will ask the package to be re-installed.
> 
> In such (administrative install) case, the Cygwin user directories should be
> redirected, f.e. to the user's profile, IMO.
> See nsswitch.conf for examples and possible options of such redirection.

Yes, I am aware of this, but I prefer separate home directories to avoid 
confusion with the Windows programs. For example, we have Git for Windows and 
Git of Cygwin. The former consults %USERPROFILE%\.gitconfig and the latter 
$HOME/.gitconfig. You might need to set different options according to the 
environment you are running git and if they are the same, this is not possible.

> > We are running Cygwin from "C:\Program Files" for years without issue.
> 
> Coincidence, I'm sure.
> 
> > A space in the directory name is a very supported character for Unix
> > and Unix-like systems as well.
> 
> Except script writers rarely account for that. Unfortunately.

That's true, but instead of advising for non-space installation paths, let's 
all install Cygwin under a space-containing path and identify all those 
individual cases. The space character in the path deserves more respect :)

Panos
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory was not created

2021-03-03 Thread Thomas Wolff




Am 03.03.2021 um 13:43 schrieb KAVALAGIOS Panagiotis (EEAS-EXT):

-Original Message-
From: Thomas Wolff 
Sent: 03 March 2021 12:58

Am 03.03.2021 um 12:22 schrieb KAVALAGIOS Panagiotis (EEAS-EXT):

-Original Message-
From: Cygwin  On Behalf Of Brian Inglis
Sent: 02 March 2021 19:57

On 2021-03-02 01:08, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

-Original Message-
From: KAVALAGIOS Panagiotis (EEAS-EXT)
Sent: 02 March 2021 08:15
zip 358KB > 256KB too big I think

OK, the mystery has been resolved. There should be at least an e-mail

notification to indicate that limitation. It is not polite for the list to 
simply
ignore the submissions without saying anything :)
There have been 3 responses on the list so what are you complaining about?

I couldn't send the log file "setup.log.full" as attachment to the list. I 
tried both plain and zip version to no avail.

I have manage to sent it only as a private e-mail to Brian. There was no e-mail 
returned to indicate any error. It was silently ignored whereas there should be 
an error notification, or if there was it never reached my mailbox.
You seem to have a novice understanding of how many open source projects 
and mailing lists work.
You cannot *expect* anybody to respond to you within a certain time, or 
even less than a day, unless you had a paid service contract. So reduce 
your expectations. This is a volunteer project, free for all users after 
all.

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


RE: Home directory was not created

2021-03-03 Thread KAVALAGIOS Panagiotis (EEAS-EXT)
> -Original Message-
> From: Thomas Wolff 
> Sent: 03 March 2021 12:58
> 
> Am 03.03.2021 um 12:22 schrieb KAVALAGIOS Panagiotis (EEAS-EXT):
> >> -Original Message-
> >> From: Cygwin  On Behalf Of Brian Inglis
> >> Sent: 02 March 2021 19:57
> >>
> >> On 2021-03-02 01:08, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> >>> -Original Message-
> >>> From: KAVALAGIOS Panagiotis (EEAS-EXT)
> >>> Sent: 02 March 2021 08:15
> >>> zip 358KB > 256KB too big I think
> > OK, the mystery has been resolved. There should be at least an e-mail
> notification to indicate that limitation. It is not polite for the list to 
> simply
> ignore the submissions without saying anything :)
> There have been 3 responses on the list so what are you complaining about?

I couldn't send the log file "setup.log.full" as attachment to the list. I 
tried both plain and zip version to no avail.

I have manage to sent it only as a private e-mail to Brian. There was no e-mail 
returned to indicate any error. It was silently ignored whereas there should be 
an error notification, or if there was it never reached my mailbox.

Panos
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory was not created

2021-03-03 Thread Andrey Repin
Greetings, KAVALAGIOS Panagiotis (EEAS-EXT)!

>> All postinstall steps failed because of BLODA or installation path:
>> 
>> 2021/02/09 17:48:06 running: C:\Program Files\Cygwin\bin\dash.exe
>> "/etc/postinstall/0p_000_autorebase.dash"
>>0 [main] dash (2296) shared_info::initialize: size of shared memory 
>> region
>> changed from 49080 to 40888
>> 2021/02/09 17:48:20 abnormal exit: exit code=-1073741819 ...
>> 
>> Installing under Program\ Files causes issues because of space in path names
>> and BLODA-like AV protections on those paths.

> The installation is performed by powershell script that runs with the super
> admin (system user/nt authority) from local repository that normally
> bypasses all those kind of AV restrictions. I start it from the Cygwin icon
> that runs mintty under the hood. I don't know who took those 8KB from the
> script's shared memory, but indeed it looks like a BLODA interference. I
> will ask the package to be re-installed.

In such (administrative install) case, the Cygwin user directories should be
redirected, f.e. to the user's profile, IMO.
See nsswitch.conf for examples and possible options of such redirection.

> We are running Cygwin from "C:\Program Files" for years without issue.

Coincidence, I'm sure.

> A space in the directory name is a very supported character for Unix and
> Unix-like systems as well.

Except script writers rarely account for that. Unfortunately.


-- 
With best regards,
Andrey Repin
Wednesday, March 3, 2021 14:52:49

Sorry for my terrible english...

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory was not created

2021-03-03 Thread Thomas Wolff



Am 03.03.2021 um 12:22 schrieb KAVALAGIOS Panagiotis (EEAS-EXT):

-Original Message-
From: Cygwin  On Behalf Of Brian Inglis
Sent: 02 March 2021 19:57

On 2021-03-02 01:08, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

-Original Message-
From: KAVALAGIOS Panagiotis (EEAS-EXT)
Sent: 02 March 2021 08:15
zip 358KB > 256KB too big I think

OK, the mystery has been resolved. There should be at least an e-mail 
notification to indicate that limitation. It is not polite for the list to 
simply ignore the submissions without saying anything :)

There have been 3 responses on the list so what are you complaining about?

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


RE: Home directory was not created

2021-03-03 Thread KAVALAGIOS Panagiotis (EEAS-EXT)
> -Original Message-
> From: Cygwin  On Behalf Of Brian Inglis
> Sent: 02 March 2021 19:57
> 
> On 2021-03-02 01:08, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> > -Original Message-
> > From: KAVALAGIOS Panagiotis (EEAS-EXT)
> > Sent: 02 March 2021 08:15
> 
> > zip 358KB > 256KB too big I think

OK, the mystery has been resolved. There should be at least an e-mail 
notification to indicate that limitation. It is not polite for the list to 
simply ignore the submissions without saying anything :)

> All postinstall steps failed because of BLODA or installation path:
> 
> 2021/02/09 17:48:06 running: C:\Program Files\Cygwin\bin\dash.exe
> "/etc/postinstall/0p_000_autorebase.dash"
>0 [main] dash (2296) shared_info::initialize: size of shared memory 
> region
> changed from 49080 to 40888
> 2021/02/09 17:48:20 abnormal exit: exit code=-1073741819 ...
> 
> Installing under Program\ Files causes issues because of space in path names
> and BLODA-like AV protections on those paths.

The installation is performed by powershell script that runs with the super 
admin (system user/nt authority) from local repository that normally bypasses 
all those kind of AV restrictions. I start it from the Cygwin icon that runs 
mintty under the hood. I don't know who took those 8KB from the script's shared 
memory, but indeed it looks like a BLODA interference. I will ask the package 
to be re-installed.

I have checked the installation logs and there was no error returned from the 
setup program. Shouldn't return non-zero value so that the package manager is 
notified about that issue? Or maybe it Is returned and I failed to propagate 
that in my .bat file:

-
@echo off
@echo Starting Cygwin installation

"%cd%\setup-x86_64.exe" -q -A -L -l "%cd%\cygwin-repo" -R "C:\Program 
Files\Cygwin" -P 
autoconf,automake,bash-completion,binutils,curl,dos2unix,emacs,git,git-svn,gnupg2,inetutils,jq,konsole,mc,openssh,patchutils,perl,psmisc,python2,python3,rsync,ruby,subversion,tcsh,tmux,unzip,vim,vim-common,wget,xinit,xlaunch,xorg-server,xorg-server-common,xorg-server-xorg,xorg-x11-fonts-dpi100,xorg-x11-fonts-dpi75,xorg-x11-fonts-Type1,xorg-x11-fonts-misc,xterm,zip
-

Does it need "exit /b %errorlevel%"?

We are running Cygwin from "C:\Program Files" for years without issue. A space 
in the directory name is a very supported character for Unix and Unix-like 
systems as well. A quoted path that includes a space character is enough to 
resolve any possible issues. Unfortunately on an enterprise environment, 
program execution is only allowed under "C:\Program Files", so we haven't left 
many options. We do have prepared another directory without spaces for programs 
that even refuse to be installed on a path containing spaces (call me Weblogic 
and ColdFusion servers), but Cygwin accepts happily to be installed on a 
directory with spaces with a small warning. I would need to justify the 
non-compliance of Cygwin to be moved off "C:\Program Files" and so far I don't 
have any evidence.

Panos

Application Architect
CONSULIAT (under contract with the EEAS)
BA.BS.3.IS
Office: EEAS B100 Floor 5 Area 048
Rue Belliard 100, 1000 Brussels
Phone: +32 2 584 6017

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory was not created

2021-03-02 Thread Brian Inglis

On 2021-03-02 01:08, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

-Original Message-
From: KAVALAGIOS Panagiotis (EEAS-EXT)
Sent: 02 March 2021 08:15
To: cygwin@cygwin.com
Subject: RE: Home directory was not created


-Original Message-
From: On Behalf Of Brian Inglis
Sent: 01 March 2021 18:38

On 2021-03-01 08:33, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

Something went wrong to my Cygwin installation update (update is
performed by removing everything and installing again the new
version). The home directory of my user was not created, when you
run

Cygwin for the first time.

When I start Cygwin it defaults to the evil C:\Windows\System32!?!?
-bash-4.4$ pwd
/cygdrive/c/WINDOWS/System32
-bash-4.4$ cd
-bash: cd: /home/kavalpa: No such file or directory -bash-4.4$ How
this can be fixed in proper way, without causing any permission issues.


By figuring out what went wrong during setup.
Please respond attaching /var/log/setup.log.full and terminal or
console log if possible.

Otherwise just run setup-x86/_64 [-g] to upgrade without wiping
everything to avoid such problems.


The log is attached. I couldn't see any error except for the libgpg-error0 package that 
matches the "error" search term :)

The home directory is created afterwards anyway at the first Cygwin execution, 
if it does not exist. Are you sure it is an installation error? I would rather 
avoid re-installing and fix the issue by creating the conditions and force 
Cygwin to create the home directory.



[Hi Brian, I apologise for this personal e-mail. I have tried to send it twice 
to the list to no avail. It's not HTML and it does not appear to list's mail 
archive either. I have no idea what is going wrong.]



zip 358KB > 256KB too big I think


All postinstall steps failed because of BLODA or installation path:

2021/02/09 17:48:06 running: C:\Program Files\Cygwin\bin\dash.exe 
"/etc/postinstall/0p_000_autorebase.dash"
  0 [main] dash (2296) shared_info::initialize: size of shared memory 
region changed from 49080 to 40888

2021/02/09 17:48:20 abnormal exit: exit code=-1073741819
...

Installing under Program\ Files causes issues because of space in path names and 
BLODA-like AV protections on those paths.


--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory was not created

2021-03-02 Thread Adam Dinwoodie
On Mon, 1 Mar 2021 at 15:33, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> Dear all,
>
> Something went wrong to my Cygwin installation update (update is performed by 
> removing everything and installing again the new version). The home directory 
> of my user was not created, when you run Cygwin for the first time. When I 
> start Cygwin it defaults to the evil C:\Windows\System32!?!?
>
> -bash-4.4$ pwd
> /cygdrive/c/WINDOWS/System32
> -bash-4.4$ cd
> -bash: cd: /home/kavalpa: No such file or directory
> -bash-4.4$
>
> How this can be fixed in proper way, without causing any permission issues.

These directories aren't normally created by the install scripts, but
by the /etc/profile script the first time you create a login shell.
You should see a message saying "Copying skeleton files. // These
files are for the users to personalise their cygwin experience." when
that happens.

Therefore the key question here: how are you starting Cygwin?

Adam
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory was not created

2021-03-01 Thread Brian Inglis

On 2021-03-01 08:33, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

Something went wrong to my Cygwin installation update (update is performed
by removing everything and installing again the new version). The home
directory of my user was not created, when you run Cygwin for the first time.
When I start Cygwin it defaults to the evil C:\Windows\System32!?!?
-bash-4.4$ pwd
/cygdrive/c/WINDOWS/System32
-bash-4.4$ cd
-bash: cd: /home/kavalpa: No such file or directory
-bash-4.4$
How this can be fixed in proper way, without causing any permission issues.


By figuring out what went wrong during setup.
Please respond attaching /var/log/setup.log.full and terminal or console log if 
possible.


Otherwise just run setup-x86/_64 [-g] to upgrade without wiping everything to 
avoid such problems.


--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Home directory not accessible but really there...

2019-08-28 Thread cygwin
Silly me -- problem was due to a typo in an old (and forgotten)
fstab.d file.
Never mind. Sorry for the troubles...

"" wrote at about 15:47:59 -0400 on Tuesday, August 27, 2019:
 > In summary:
 > 1. Home directory is not accessible via: 'cd ' or 'cd ~' (it
 >takes me to /tmp) and 'ls -al /home' shows my home directory as
 >having corrupted permissions, UID and GID (all are ???)
 > 
 > 2. Home directory is accessible and shows proper perms/UID/GID when I
 >go there with the full path from /cygdrive/c
 > 
 > Specifically, 
 > 
 > After installing cygwin (using --noadmin flag), rebooting, and
 > launching a cygwin shell, I get the message:
 > mkdir: cannot create directory '/home/myname': No such file or directory
 > /home/myname could not be created.
 > Setting HOME to /tmp
 > 
 > Then, if I go to /home and type:
 >   #ls -al
 >   ls: cannot access 'myname': No such file or directory
 >   total 4
 >   drwxrwxrwt+ 1 myname somegroup(513) 0 Aug 27 15:35 .
 >   drwx--+ 1 myname somegroup(513) 0 Aug 25 17:55 ..
 >   d?? ? ?  ?  ?? myname
 > 
 > And, indeed from there, I can't ls/cd into the 'myname' home directory
 > - nor can I change the perms or uid/gid.
 > 
 > HOWEVER, if I go manually to the home directory using the full path
 > relative to C:, everything seems fine.
 > 
 > #cd /cygdrive/c/Users/myname/Desktop/cygwin/home
 > #ls -al
 > drwxrwxrwt+ 1 myname somegroup(513) 0 Aug 27 15:35 .
 > drwx--+ 1 myname somegroup(513) 0 Aug 25 17:55 ..
 > drwxr-xr-x+ 1 myname somegroup(513) 0 Aug 27 14:55 myname
 > 
 > And I can then ls/cd into the intact 'myname' home directory.
 > 
 > Note I don't have admin permission on this machine so I used
 > 'cygwin-setup --no-admin' to install Cygwin.
 > 
 > --
 > Problem reports:   http://cygwin.com/problems.html
 > FAQ:   http://cygwin.com/faq/
 > Documentation: http://cygwin.com/docs.html
 > Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 > 

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Home directory has blank space, X resources not recognized

2016-04-07 Thread Jon Turney

On 06/04/2016 17:48, Jim Reisert AD1C wrote:

My employer is making us use Box Sync for backup.  We have to move all
directories we want backed up into the Box Sync folder.

So I have moved my Cygwin ~ (home) directory to that folder.  I
configured nsswitch.conf as follows:

 db_home:  /cygdrive/c/Users/reisert/Box%_Sync/Home

Most things are working. However, my Xterms are coming up in the
default 80x24 format with black text on a white background.  The Xwin
server does not seem to recognize my ~/.xserverrc file which contains
simply:

 exec /usr/bin/XWin -notrayicon "$@"


~/.xserverrc is not read by the X server, it used to invoke the X server 
by the startxwin script.


I'm not sure how this connects to the problem with Xresources.

> I did not state this correctly.  I should have written:
>
> The Xwin server does not seem to recognize my ~/.Xresources file.
>
> I can do this from an xterm:
>
>xrdb ~/.Xresources
>
> Then my X resources will get loaded properly.

Likewise, ~/.Xresources is not loaded by the server, but by the scripts 
which startxwin invokes to start the X session.



What can I do to fix this?


Following the twisty path

/usr/bin/startxwin -> /etc/X11/xinit/startxwinrc -> 
/etc/X11/xinit/xinitrc-common


does the actual loading of ~/.Xresources, and I guess is possibly 
missing some needed quotation?


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Home directory has blank space, X resources not recognized

2016-04-06 Thread Jim Reisert AD1C
> So I have moved my Cygwin ~ (home) directory to that folder.  I
> configured nsswitch.conf as follows:
>
> db_home:  /cygdrive/c/Users/reisert/Box%_Sync/Home
>
> Most things are working. However, my Xterms are coming up in the
> default 80x24 format with black text on a white background.  The Xwin
> server does not seem to recognize my ~/.xserverrc file which contains
> simply:

I did not state this correctly.  I should have written:

The Xwin server does not seem to recognize my ~/.Xresources file.

I can do this from an xterm:

  xrdb ~/.Xresources

Then my X resources will get loaded properly.

-- 
Jim Reisert AD1C, , http://www.ad1c.us

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Home directory issue

2013-07-08 Thread Larry Hall (Cygwin)

On 7/2/2013 7:50 PM, L. V. Lammert wrote:

After installing Cygwin on a new system that is in a domain, there is
something that is breaking with user setup.

  * The user home directory is not getting created
  * /usr/loca/bin  /usr/bin are not prepended to PATH
  * The user home directory is/cygdrive/Users/user,
 instead of/home/user
  * The path IS correct in/etc/passwd (/home/user)


snip

Is the HOME environment variable set in your Windows environment?  If not,
check the postinstall scripts in '/etc/postinstall', paying particular
attention to those that don't end in '.done'.  If you have some of these,
run them yourself with 'sh scriptname' and then move the script to
'scriptname.done'  Run the scripts in the order they appear.  Otherwise,
if HOME is defined in the Windows environment, just remove the definition.
You may find you have to rerun some of the postinstall scripts to recover,
particularly '000-cygwin-post-install.sh'.  Or you can try wiping the
installation and starting over.


--
Larry

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Home directory issue

2013-07-08 Thread Alan W. Irwin

On 2013-07-08 11:09-0400 Larry Hall (Cygwin) wrote:


On 7/2/2013 7:50 PM, L. V. Lammert wrote:

After installing Cygwin on a new system that is in a domain, there is
something that is breaking with user setup.

  * The user home directory is not getting created
  * /usr/loca/bin  /usr/bin are not prepended to PATH
  * The user home directory is/cygdrive/Users/user,
 instead of/home/user
  * The path IS correct in/etc/passwd (/home/user)


snip

Is the HOME environment variable set in your Windows environment?  If not,
check the postinstall scripts in '/etc/postinstall', paying particular
attention to those that don't end in '.done'.  If you have some of these,
run them yourself with 'sh scriptname' and then move the script to
'scriptname.done'  Run the scripts in the order they appear.  Otherwise,
if HOME is defined in the Windows environment, just remove the definition.
You may find you have to rerun some of the postinstall scripts to recover,
particularly '000-cygwin-post-install.sh'.  Or you can try wiping the
installation and starting over.



I experienced all the same symptoms reported by the OP with my
setup.exe on Wine attempt.  So you have given me hope that some of the
errors I saw were due to not setting HOME.  Could you be more specific
about exactly how HOME should be set in your Windows environment.

Under Wine I can get into a cmd environment.  From there the top-level
directory of the Cygwin installation directory that I usually create
with setup.exe is designated as

z:\home\wine\newstart\cygwin

That same directory is designated as

/z/home/wine/newstart/cygwin

from the bash/wine environment.

What exact cmd command should I use to set HOME for user wine before
I run a setup.exe from cmd to establish a Cygwin installation tree
from scratch whose top-level is given above? Would it be

set HOME=z:\home\wine\newstart\cygwin\home\wine

or something else?

I prefer the bash environment so if I set the HOME environment
variable from there would setup.exe (run from bash) pick that up
and use it?  If so, would it be set by

export HOME=/z/home/wine/newstart/cygwin/home/wine

or something else?   (As you can probably tell, I am having some
difficulty in sorting out the differences in the way directories and
environment variables are specified, at the bash/linux, bash/wine,
cmd/wine, and cygwin/wine levels.)

Are there any other environment variables that should be set as well
before running setup.exe for a fresh install?

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__

Linux-powered Science
__

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Home directory issue

2013-07-08 Thread Larry Hall (Cygwin)

On 7/8/2013 12:17 PM, Alan W. Irwin wrote:

On 2013-07-08 11:09-0400 Larry Hall (Cygwin) wrote:


On 7/2/2013 7:50 PM, L. V. Lammert wrote:

After installing Cygwin on a new system that is in a domain, there is
something that is breaking with user setup.

  * The user home directory is not getting created
  * /usr/loca/bin  /usr/bin are not prepended to PATH
  * The user home directory is/cygdrive/Users/user,
 instead of/home/user
  * The path IS correct in/etc/passwd (/home/user)


snip

Is the HOME environment variable set in your Windows environment?  If not,
check the postinstall scripts in '/etc/postinstall', paying particular
attention to those that don't end in '.done'.  If you have some of these,
run them yourself with 'sh scriptname' and then move the script to
'scriptname.done'  Run the scripts in the order they appear.  Otherwise,
if HOME is defined in the Windows environment, just remove the definition.
You may find you have to rerun some of the postinstall scripts to recover,
particularly '000-cygwin-post-install.sh'.  Or you can try wiping the
installation and starting over.



I experienced all the same symptoms reported by the OP with my
setup.exe on Wine attempt.  So you have given me hope that some of the
errors I saw were due to not setting HOME.  Could you be more specific
about exactly how HOME should be set in your Windows environment.


snip


Are there any other environment variables that should be set as well
before running setup.exe for a fresh install?


I believe you have drawn the opposite conclusion from what I was trying
to convey.  It is best to _not_ have HOME set in your Windows environment
prior to running 'setup.exe'.  If you do have it set, 'setup.exe' will
use that directory as your home rather than the default '/home/username'.

--
Larry

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Home directory issue

2013-07-08 Thread Alan W. Irwin

On 2013-07-08 13:21-0400 Larry Hall (Cygwin) wrote:


I believe you have drawn the opposite conclusion from what I was trying
to convey.  It is best to _not_ have HOME set in your Windows environment
prior to running 'setup.exe'.  If you do have it set, 'setup.exe' will
use that directory as your home rather than the default '/home/username'.


Your original message (especially the last part) was pretty clear, but
I just reversed the meaning.  Sorry.

I actually ran setup.exe from a bash/wine environment, and for that
the HOME environment variable (as printed out by

printenv |grep HOME

) was not set.  So there is likely some other reason (which may or may
not be related to a Wine bug) that I got the same symptoms as the OP.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__

Linux-powered Science
__

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: HOME directory has somehow been overridden

2012-08-07 Thread Andrey Repin
Greetings, Soumya Roy!

Please, don't top-post.

 Howver as it turns out, previously when I was typing $ ls ~I was
 getting the contents of Documents and Settings/Valntbut now
 however $ ls ~   gives me the actual proper content of
 /cygwin/home/Valntwhich is perfect...however the basic problem
 still remains i.e the initial directory(after starting cygwin) that I
 am in is Documents and Settings/Valnt...
 so this is what I want to fix...
 Any suggestion is much appreciated.

You can define HOME in windows evironment. But that would also affect other
programs, that totally don't expect such action.
I mean, if you say $HOME, programs expect it to point you your user's profile.


--
WBR,
Andrey Repin (anrdae...@freemail.ru) 07.08.2012, 12:15

Sorry for my terrible english...


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: HOME directory has somehow been overridden

2012-08-03 Thread Soumya Roy
Hi Andrey !

I get what you mean
I definitely must have made a mistake while trying to fix the problem,
the analogy of what I was doing is like that of black box testing, I
try to fix in some way but I don't really know what is going on
inside and I just check the result...;-)
Howver as it turns out, previously when I was typing $ ls ~I was
getting the contents of Documents and Settings/Valntbut now
however $ ls ~   gives me the actual proper content of
/cygwin/home/Valntwhich is perfect...however the basic problem
still remains i.e the initial directory(after starting cygwin) that I
am in is Documents and Settings/Valnt...
so this is what I want to fix...
Any suggestion is much appreciated.

On 8/3/12, Andrey Repin anrdae...@freemail.ru wrote:
 Greetings, Soumya Roy!

 Just to give the last few lines of my /etc/passwd file:-

 /home/SUPPORT_388945a0:/bin/bash
 VALNT:unused:1003:513:U-SMEI-EC058E66\VALNT,S-1-5-21-1614895754-178822364\
 8-725345543-1003:/home/VALNT:/bin/bash

 My only question: Why you're doing this?
 Isn't your profile directory is a logical location for your $HOME?
 Other than that, check all settings that may affect it.
 Environment variable, as suggested, being one of them.


 --
 WBR,
 Andrey Repin (anrdae...@freemail.ru) 03.08.2012, 01:27

 Sorry for my terrible english...



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: HOME directory has somehow been overridden

2012-08-02 Thread Earnie Boyd
On Thu, Aug 2, 2012 at 1:28 PM, Soumya Roy wrote:
 Well my life went fine until later on I fired up cygwin and realized
 that my intial directory has now been changed from
 c:/cygwin/home/username to c:/Documents and Settings/username...

Look for a HOME environment variable set in the Windows environment.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: HOME directory has somehow been overridden

2012-08-02 Thread Soumya Roy
Just to give the last few lines of my /etc/passwd file:-

/home/SUPPORT_388945a0:/bin/bash
VALNT:unused:1003:513:U-SMEI-EC058E66\VALNT,S-1-5-21-1614895754-178822364\
8-725345543-1003:/home/VALNT:/bin/bash

thanks

On 8/2/12, Soumya Roy roy.valm...@gmail.com wrote:
 Hi everybody,
 first of all I'm not a 'knows the ins and outs' user of
 cygwin(although I absolutely love using it and would like to become
 one!!).
 My problems began(I think) when I installed heroku toolbelt for
 facebook app creation...I went through some initial hiccups(with ssh
 etc) and had to solve them (while working with cmd.exe).
 Well my life went fine until later on I fired up cygwin and realized
 that my intial directory has now been changed from
 c:/cygwin/home/username to c:/Documents and Settings/username...
 I tried to fix the problem by googling around(mkpasswd and all that)
 and I think I've made the problem no better(if not worse)
 I really need some help guys.
 Thanks.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: HOME directory has somehow been overridden

2012-08-02 Thread Andrey Repin
Greetings, Soumya Roy!

 Just to give the last few lines of my /etc/passwd file:-

 /home/SUPPORT_388945a0:/bin/bash
 VALNT:unused:1003:513:U-SMEI-EC058E66\VALNT,S-1-5-21-1614895754-178822364\
 8-725345543-1003:/home/VALNT:/bin/bash

My only question: Why you're doing this?
Isn't your profile directory is a logical location for your $HOME?
Other than that, check all settings that may affect it.
Environment variable, as suggested, being one of them.


--
WBR,
Andrey Repin (anrdae...@freemail.ru) 03.08.2012, 01:27

Sorry for my terrible english...


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: HOME directory has somehow been overridden

2012-08-02 Thread Andrew DeFaria

On 8/2/2012 2:28 PM, Andrey Repin wrote:

Greetings, Soumya Roy!


Just to give the last few lines of my /etc/passwd file:-
/home/SUPPORT_388945a0:/bin/bash
VALNT:unused:1003:513:U-SMEI-EC058E66\VALNT,S-1-5-21-1614895754-178822364\
8-725345543-1003:/home/VALNT:/bin/bash

My only question: Why you're doing this?
Isn't your profile directory is a logical location for your $HOME?
Other than that, check all settings that may affect it.
Environment variable, as suggested, being one of them.
My logical location for my $HOME is usually off on some filter, where 
it's the $HOME for Windows and the $HOME for Unix/Linux. I could care 
less about [C:\Documents and Settings|C:\Users]\$USERNAME.

--
Andrew DeFaria http://defaria.com
If all the world is a stage, where is the audience sitting?


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Home directory

2007-10-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Gmane User on 10/3/2007 10:30 PM:
 
 
 I did indeed check that before posting to ask about where release notes can be
 found.  In fact, they can be found peicemeal at http://tinyurl.com/2dxno3, but
 it makes it hard to quickly scan for changes to mv.  Many software systems
 have cumulative release notes with each new release...

Why not look at the coreutils source repository, then?
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=blob;f=NEWS

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHBNe384KuGfSFAYARAsFTAKCaUOpF/eqfa5Du5mL2aJvyQ66F0gCeMAqX
hq3Odrs7P9moFSiPlzP+B5A=
=h86W
-END PGP SIGNATURE-

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



Re: Home directory

2007-10-04 Thread DePriest, Jason R.
On 10/3/07, Gmane User  wrote:
 Dave Korn wrote:
  On 02 October 2007 15:26, Gmain User wrote:
 
  Brian Dessent  writes:
  Gmane User wrote:
 
  it makes it hard to quickly scan for changes to mv.  Many software
  systems have cumulative release notes with each new release...would the
  release notes can be findable in such a form online?
  less /usr/share/doc/Cygwin/coreutils-*.README
  Thanks, Brian.  I was actually asking in the context of not updating cygwin
  right away.  Whether or not one could access up-to-date accumulation of
  release notes, possibly on the web.
 
Yes, absolutely.  See http://cygwin.com/ml/cygwin-announce/.


 I did indeed check that before posting to ask about where release notes can be
 found.  In fact, they can be found peicemeal at http://tinyurl.com/2dxno3, but
 it makes it hard to quickly scan for changes to mv.  Many software systems
 have cumulative release notes with each new release...would the release notes
 can be findable in such a form online?  I am referring to an accumulation of
 release notes for coreutils, all rolled up in one notice.


A Google search with
site:cygwin.com inurl:/ml/cygwin-announce mv

turns up useful stuff, too

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



RE: Home directory

2007-10-03 Thread Dave Korn
On 02 October 2007 15:26, Gmain User wrote:

 Brian Dessent brian at dessent.net writes:
 
 Gmane User wrote:
 
 it makes it hard to quickly scan for changes to mv.  Many software
 systems have cumulative release notes with each new release...would the
 release notes can be findable in such a form online?
 
 less /usr/share/doc/Cygwin/coreutils-*.README
 
 Thanks, Brian.  I was actually asking in the context of not updating cygwin
 right away.  Whether or not one could access up-to-date accumulation of
 release notes, possibly on the web.

  Yes, absolutely.  See http://cygwin.com/ml/cygwin-announce/.

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: Home directory

2007-10-02 Thread Gmain User
Larry Hall (Cygwin reply-to-list-only-lh at cygwin.com writes:
Gmane User wrote:
 ...it might be worthwhile to
 uninstall cygwin, then reinstall it on a secondary IDE drive (not
 drive c:), along with the cygwin user file/folder tree.  It has a
 lot more space, so I can forget the network drive altogether.  I
 was initially trying to avoid the secondary drive because I fully
 expect suprises and a brand new learning experiences due to the
 unconventional location.  But I can always give it a go.  The only
 issue at hand is time.

There's no reason to fear this.  I have all sorts of Cygwin
installation where the root drive is not C:.  It works just fine.

Er...fear?  _Concern_.  Not a trivial amount of it, granted.  Thanks
for assuaging that


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



Re: Home directory

2007-10-02 Thread Larry Hall (Cygwin)

Paul McFerrin wrote:


Gmain User wrote:

Larry Hall (Cygwin reply-to-list-only-lh at cygwin.com writes:
  

[lines deleted]

There's no reason to fear this.  I have all sorts of Cygwin
installation where the root drive is not C:.  It works just fine.

Larry Hall:

When having multiple copies of Cygwin installed on your hard drive, how 
do you handle the issue of mounts?  With mounts being handled thru the 
registry, how can you handle multiple and completely different set of 
mounts and not affect the other instances of Cygwin?  Or maybe you are 
referring to multiple installations on different machines.



I was actually just referring to having more than 1 machine with a Cygwin
installation that isn't rooted under C:.  Doing this works fine.  There
is, of course, a concern if you're going to keep two separate installs of
Cygwin on the same machine.  This isn't recommended but can handled by a
script that changes your path and mounts to point to one installation or
the other.  Of course, this means you should not be running anything from
one install when switching to the other (or after switching either).  It's
worth noting that it's extremely rare to _need_ to keep two versions of
Cygwin around for active use. Those who may find themselves with such a
need are encouraged to report the problem to the list so a resolution can
be found.  The alternative is being forever stranded in the past, which
isn't a big help to anyone.  Oh and keeping two version of Cygwin around
means you have an unsupported configuration so you're on your own when
problems do pop up.  Not a nice place to be. ;-)


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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



Re: Home directory

2007-10-02 Thread Gmain User
Andrew DeFaria Andrew at DeFaria.com writes:
Gmain User wrote:
 Andrew DeFaria wrote:

 Personally I'd:
 $ mv /home /home.save
 $ mount -bsf //server/homeshare /home
 $ mv -rp /home.save/* /home

 Adjust the output of /etc/passwd to use /home/$USER

 That places all cygwin file trees for all user accounts (including 
 administrators) onto my own domain network file space.
 Yes, isn't it wonderful! 

 Now everybody can log into anybody's machine and feel right at home 
 (pardon the pun). And people's desktops can actually be used at night to 
 assist with nighttime processing like builds and the like - just like if 
 you had a bunch of Linux or Unix boxes. Now imagine that!

Except that network file space with which I am provided is account
specific i.e. for myself only.

 I suspect that it isn't what I'm seeking to realize, though it is
 an interesting way to migrate account file trees.

 If you are that concerned about eveybodys home directory being mounted 
 do this instead:

$ mv /home/$USER /home/$USER.save
$ mount -bsf //server/myhomeshare /home/$USER
$ mv -p /home/$USER/save/* /home/$USER

Of course.  Good way to make the network file space appear the same as
a conventional cygwin installation.  Thanks.

Now it's really a matter of deciding whether to work off the network
file space by default.  It offers mobility, but also vulnerability to
network issues.  Some pondering is due.


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



Re: Home directory

2007-10-02 Thread Warren Young

Gmain User wrote:


Thanks, Brian.  I was actually asking in the context of not updating cygwin
right away.  Whether or not one could access up-to-date accumulation of release
notes, possibly on the web.


Cygwin doesn't have monolithic releases.  Every individual package is 
on its own release schedule.  It's meaningless to talk about release 
notes at a higher level than the package level, in the current scheme.


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



Re: Home directory

2007-10-02 Thread Gmane User
Warren Young wrote:
 Gmain User wrote:
 Thanks, Brian.  I was actually asking in the context of not updating cygwin
 right away.  Whether or not one could access up-to-date accumulation of 
 release
 notes, possibly on the web.
 
 Cygwin doesn't have monolithic releases.  Every individual package is 
 on its own release schedule.  It's meaningless to talk about release 
 notes at a higher level than the package level, in the current scheme.

What you say makes perfect sense.  The specific package I was referring to was
coreutils.  Unfortunately, the quoting containing the relevant thread details
had to be trimmed because of the limit on quoting when posting through gmane,
which was the case in some of my posts.  Don't get me wrong, gmane is great,
it's just a circumstance that needs to be pointed out as a factor contributing
to this confusion.


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



Re: Home directory

2007-10-01 Thread Andrew DeFaria

Gmane User wrote:
ACcording to http://cygwin.com/faq/faq.setup.html#faq.setup.home, the 
cygwin
home directory is determined by the checking the following, in the 
order listed:


1. Windows HOME environment variable
2. /etc/passwd
3. HOMEDRIVE and HOMEPATH variables in the Windows environment
4. /

I recently got a new domain account, and the cygwin home directory is 
a network
drive, instead of c:/cygwin/home/UserName. I am currently trying to 
research
the causes, though I don't have access to the machine in question at 
the moment.
I assume that the path to the home directory was embedded in 
/etc/passwd, which

I created using mkpasswd -d. I am debating on manually changing this in
/etc/passwd back to c:/cygwin/home/UserName, since I might ssh into 
the machine,
in which case the network drive will likely not be accessible. As 
well, working
off a network drive by default makes one more vulnerable to network 
problems.
The only thing which might make the network drive attractive is the 
limited

space on the local drive.

If I were make c:/cygwin/home/UserName my home directory, what is the 
best way?

Ssh only considers /etc/passwd, so it seems best to manually set it there,
though I'd have to manually fix it each time I recreate it. It still 
seems to

be the best way, but opinions are welcome on good practice.

Personally I'd:

   $ mv /home /home.save
   $ mount -bsf //server/homeshare /home
   $ mv -rp /home.save/* /home

Adjust the output of /etc/passwd to use /home/$USER
--
Andrew DeFaria http://defaria.com
There's very little advice in men's magazines, because men think, I know 
what I'm doing. Just show me somebody naked. - Jerry Seinfeld



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



Re: Home directory

2007-10-01 Thread Gmain User
Andrew DeFaria wrote:
Gmane User wrote:
 ACcording to http://cygwin.com/faq/faq.setup.html#faq.setup.home,
 the cygwin home directory is determined by the checking the
 following, in the order listed:

 1. Windows HOME environment variable
 2. /etc/passwd
 3. HOMEDRIVE and HOMEPATH variables in the Windows environment
 4. /

 I recently got a new domain account, and the cygwin home directory
 is a network drive, instead of c:/cygwin/home/UserName. I am
 currently trying to research the causes, though I don't have access
 to the machine in question at the moment.  I assume that the path to
 the home directory was embedded in /etc/passwd, which I created
 using mkpasswd -d. I am debating on manually changing this in
 /etc/passwd back to c:/cygwin/home/UserName, since I might ssh into
 the machine, in which case the network drive will likely not be
 accessible. As well, working off a network drive by default makes
 one more vulnerable to network problems.  The only thing which might
 make the network drive attractive is the limited space on the local
 drive.

 If I were make c:/cygwin/home/UserName my home directory, what is
 the best way?  Ssh only considers /etc/passwd, so it seems best to
 manually set it there, though I'd have to manually fix it each time
 I recreate it. It still seems to be the best way, but opinions are
 welcome on good practice.

 Personally I'd:

$ mv /home /home.save
$ mount -bsf //server/homeshare /home
$ mv -rp /home.save/* /home

Adjust the output of /etc/passwd to use /home/$USER

That places all cygwin file trees for all user accounts (including
administrators) onto my own domain network file space.  I suspect that
it isn't what I'm seeking to realize, though it is an interesting way
to migrate account file trees.

My coreutils 6.7-2 doesn't have a -r option for the mv command.  I
haven't been able to find release notes for the currrent coreutils
6.9-5 to see if it is simply a new switch.  Is there somewhere online
where the release notes can be perused so that I can avoid updating
cygwin right away?  I usually find that an update is followed by a
period of anomalous behaviour.


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



Re: Home directory

2007-10-01 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Gmain User on 10/1/2007 10:04 AM:
 My coreutils 6.7-2 doesn't have a -r option for the mv command.  I
 haven't been able to find release notes for the currrent coreutils
 6.9-5 to see if it is simply a new switch.  Is there somewhere online
 where the release notes can be perused so that I can avoid updating
 cygwin right away?  I usually find that an update is followed by a
 period of anomalous behaviour.

There's no such thing as 'mv -r'.  There is 'cp -r' to make cp recursive,
but mv is already recursive without having to request it.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHAas184KuGfSFAYARAgekAJ9SG1+a8hxVYO7Ajo3CBKdtKo4wkACffTv0
PVl/RsjekFhbTNcJ4xmoWmQ=
=7XzU
-END PGP SIGNATURE-

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



Re: Home directory

2007-10-01 Thread Gmane User
Eric Blake wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 According to Gmain User on 10/1/2007 10:04 AM:
 Is there somewhere online
 where the release notes can be perused so that I can avoid updating
 cygwin right away?  I usually find that an update is followed by a
 period of anomalous behaviour.
 
 [Phooey.  Hit send too soon.]
 
 Yes - it is called the release announcements:
 http://cygwin.com/ml/cygwin-announce/

I did indeed check that before posting to ask about where release notes can be
found.  In fact, they can be found peicemeal at http://tinyurl.com/2dxno3, but
it makes it hard to quickly scan for changes to mv.  Many software systems
have cumulative release notes with each new release...would the release notes
can be findable in such a form online?


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



Re: Home directory

2007-10-01 Thread Gmane User
Brian Dessent wrote:
 Gmane User wrote:
 
 If I were make c:/cygwin/home/UserName my home directory, what is the best 
 way?
  Ssh only considers /etc/passwd, so it seems best to manually set it there,
 though I'd have to manually fix it each time I recreate it.  It still seems 
 to
 be the best way, but opinions are welcome on good practice.
 
 Well you already said it -- sshd only considers the entry in passwd so
 that's pretty much the only option if you plan to connect remotely. 
 However, you should use a POSIX path like /home/UserName not
 c:/whatever.

Indeed.  I guess that's it.

On the other hand, it occurred to me that it might be worthwhile to uninstall
cygwin, then reinstall it on a secondary IDE drive (not drive c:), along with
the cygwin user file/folder tree.  It has a lot more space, so I can forget the
network drive altogether.  I was initially trying to avoid the secondary drive
because I fully expect suprises and a brand new learning experiences due to the
unconventional location.  But I can always give it a go.  The only issue at hand
is time.


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



Re: Home directory

2007-10-01 Thread Brian Dessent
Gmane User wrote:

 it makes it hard to quickly scan for changes to mv.  Many software systems
 have cumulative release notes with each new release...would the release notes
 can be findable in such a form online?

less /usr/share/doc/Cygwin/coreutils-*.README

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



Re: Home directory

2007-10-01 Thread Andrew DeFaria

Gmain User wrote:

Andrew DeFaria wrote:

Gmane User wrote:

ACcording to http://cygwin.com/faq/faq.setup.html#faq.setup.home,
the cygwin home directory is determined by the checking the
following, in the order listed:

1. Windows HOME environment variable
2. /etc/passwd
3. HOMEDRIVE and HOMEPATH variables in the Windows environment
4. /

I recently got a new domain account, and the cygwin home directory
is a network drive, instead of c:/cygwin/home/UserName. I am
currently trying to research the causes, though I don't have access
to the machine in question at the moment. I assume that the path to
the home directory was embedded in /etc/passwd, which I created
using mkpasswd -d. I am debating on manually changing this in
/etc/passwd back to c:/cygwin/home/UserName, since I might ssh into
the machine, in which case the network drive will likely not be
accessible. As well, working off a network drive by default makes
one more vulnerable to network problems. The only thing which might
make the network drive attractive is the limited space on the local
drive.

If I were make c:/cygwin/home/UserName my home directory, what is
the best way? Ssh only considers /etc/passwd, so it seems best to
manually set it there, though I'd have to manually fix it each time
I recreate it. It still seems to be the best way, but opinions are
welcome on good practice.

Personally I'd:

$ mv /home /home.save
$ mount -bsf //server/homeshare /home
$ mv -rp /home.save/* /home

Adjust the output of /etc/passwd to use /home/$USER
That places all cygwin file trees for all user accounts (including 
administrators) onto my own domain network file space.

Yes, isn't it wonderful! ;-)

Now everybody can log into anybody's machine and feel right at home 
(pardon the pun). And people's desktops can actually be used at night to 
assist with nighttime processing like builds and the like - just like if 
you had a bunch of Linux or Unix boxes. Now imagine that!
I suspect that it isn't what I'm seeking to realize, though it is an 
interesting way

to migrate account file trees.
If you are that concerned about eveybodys home directory being mounted 
do this instead:


$ mv /home/$USER /home/$USER.save
$ mount -bsf //server/myhomeshare /home/$USER
$ mv -p /home/$USER/save/* /home/$USER
My coreutils 6.7-2 doesn't have a -r option for the mv command. I 
haven't been able to find release notes for the currrent coreutils 
6.9-5 to see if it is simply a new switch. Is there somewhere online 
where the release notes can be perused so that I can avoid updating 
cygwin right away? I usually find that an update is followed by a 
period of anomalous behaviour.

Oops! I got confused/conflicted between mv and cp. Please excuse me.
--
Andrew DeFaria http://defaria.com
Adults are just kids who owe money.


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



RE: home directory

2005-01-20 Thread Green, Keith
 On Wed, 19 Jan 2005, Green, Keith wrote:
 
  New problem. Never had this one before.
  In Windows, I define the HOME variable to C:\etc.
 
  However, my cygwin.bat file reads
 @echo off
 set HOME=/home/kgreen (also tried set 
 HOME=H:\cygwin\home\kgreen )
 H:
 chdir H:\cygwin\bin
 bash --login -i
 
  and the pertinent line from /etc/passwd reads:
 
  
 kgreen:unused_by_nt/2000/xp:12447:10545:kgreen,U-BBB\kgreen,S-
 1-5-21-748114381-82326301-405542714-2447:/home/kgreen:/bin/bash
 
  BUT ... when I double click on icon (cygwin.bat), it keeps 
 bringing me
  up in /usr/bin.
  I've tried disabling ~/.bashrc and ~/.bash_login (just in 
 case).  Same
  thing.
  The odd thing is that in the cygwin.bat file, regardless of 
 how I set it
  (with POSIX or DOS path name), when the cygwin window comes up and I
  type echo $HOME, it has the right value in it.  That is, $HOME says
  /home/kgreen.
  Also, when I put a ~/.bashrc and ~/.bash_login inside 
 /home/kgreen, it
  uses them!  So it's getting there somehow ... and then 
 deciding on its
  own that it would rather be in /usr/bin!
 

Igor suggested:
 You could try to start bash with --login -i -v, which 
 should show the
 commands that are executed, and possibly explain why the directory is
 changed to /usr/bin.
 HTH,

Igor, I tried that.  No new information.  Strange thing indeed.
Last line of my .bash_profile reads
echo Inside .bash_profile $HOME
When it gets to that line it prints the line (because of -v) and
then executes the line ... the value for $HOME is correct (/home/kgreen).
Immediately following that line is the prompt (because the login is complete).
At that point my directory is /usr/bin.

thanks,
k


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



RE: home directory

2005-01-20 Thread Green, Keith
BTW, this is an easy enough problem to 'fix'.  I just tell
it to cd /home/kgreen at the end of .bashrc .  That works fine.
But I shouldn't have to do this.

k

  BUT ... when I double click on icon (cygwin.bat), it keeps 
 bringing me
  up in /usr/bin.
  I've tried disabling ~/.bashrc and ~/.bash_login (just in 
 case).  Same
  thing.
  The odd thing is that in the cygwin.bat file, regardless of 
 how I set it
  (with POSIX or DOS path name), when the cygwin window comes up and I
  type echo $HOME, it has the right value in it.  That is, $HOME says
  /home/kgreen.
  Also, when I put a ~/.bashrc and ~/.bash_login inside 
 /home/kgreen, it
  uses them!  So it's getting there somehow ... and then 
 deciding on its
  own that it would rather be in /usr/bin!
 
 You could try to start bash with --login -i -v, which 
 should show the
 commands that are executed, and possibly explain why the directory is
 changed to /usr/bin.
 HTH,
   Igor
 -- 
   http://cs.nyu.edu/~pechtcha/
   |\  _,,,---,,_  [EMAIL PROTECTED]
 ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
 '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
 
 The Sun will pass between the Earth and the Moon tonight for a total
 Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
 
 


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



RE: home directory

2005-01-20 Thread Molle Bestefich
Keith Green wrote:
 The Sun will pass between the Earth and the Moon tonight for a total
 Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

The universe do not work that way!  Goodnight!

--Molle

===
Morbo (shouting): Windmills do not work that way!  Goodnight!
-- Futurama, season 5 episode 1

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



Re: home directory

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, Green, Keith wrote:

 New problem. Never had this one before.
 In Windows, I define the HOME variable to C:\etc.

 However, my cygwin.bat file reads
@echo off
set HOME=/home/kgreen (also tried set HOME=H:\cygwin\home\kgreen )
H:
chdir H:\cygwin\bin
bash --login -i

 and the pertinent line from /etc/passwd reads:

 kgreen:unused_by_nt/2000/xp:12447:10545:kgreen,U-BBB\kgreen,S-1-5-21-748114381-82326301-405542714-2447:/home/kgreen:/bin/bash

 BUT ... when I double click on icon (cygwin.bat), it keeps bringing me
 up in /usr/bin.
 I've tried disabling ~/.bashrc and ~/.bash_login (just in case).  Same
 thing.
 The odd thing is that in the cygwin.bat file, regardless of how I set it
 (with POSIX or DOS path name), when the cygwin window comes up and I
 type echo $HOME, it has the right value in it.  That is, $HOME says
 /home/kgreen.
 Also, when I put a ~/.bashrc and ~/.bash_login inside /home/kgreen, it
 uses them!  So it's getting there somehow ... and then deciding on its
 own that it would rather be in /usr/bin!

You could try to start bash with --login -i -v, which should show the
commands that are executed, and possibly explain why the directory is
changed to /usr/bin.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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



Re: home directory.

2004-06-16 Thread Vince Hoffman


On Wed, 16 Jun 2004, Chris W wrote:

 It seems that somewhere $HOME is getting set to /cygdrive/c.  I want it
 to be /home/$USER like the /etc/profile would set it to if it wasn't
 already set to /cygdrive/c.  So where do I change that?

Have a look at your windows environment variables. (type set from a
windows command prompt) or to see and change them (if on 2k/xp not sure
for 9x its been too long,) right click my computer, select
properties, then select the advanced' tab, then select environment
variables.


 --
 Chris W

 Bring Back the HP 15C
 http://hp15c.org

 Not getting the gifts you want?  The Wish Zone can help.
 http://thewishzone.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/


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



Re: home directory.

2004-06-16 Thread Ronald Landheer-Cieslak
Vince Hoffman wrote:
On Wed, 16 Jun 2004, Chris W wrote:

It seems that somewhere $HOME is getting set to /cygdrive/c.  I want it
to be /home/$USER like the /etc/profile would set it to if it wasn't
already set to /cygdrive/c.  So where do I change that?
Have a look at your windows environment variables. (type set from a
windows command prompt) or to see and change them (if on 2k/xp not sure
for 9x its been too long,) right click my computer, select
properties, then select the advanced' tab, then select environment
variables.
When you've done that, if HOME is set there, some program you've already 
installed probably needs it for something. You should probably edit your
cygwin.bat to set it to something more appropriate for Cygwin and leave 
the one in your Windows environment alone..

Unless, of course, you know what you're doing and/or you want to use 
Cygwin applications that use the HOME environment variable outside of 
the shell presented by cygwin.bat, in which case your Windows settings 
is what you want to change..

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


Re: home directory.

2004-06-16 Thread Chris W
Vince Hoffman wrote:
On Wed, 16 Jun 2004, Chris W wrote:
 

It seems that somewhere $HOME is getting set to /cygdrive/c.  I want it
to be /home/$USER like the /etc/profile would set it to if it wasn't
already set to /cygdrive/c.  So where do I change that?
   

Have a look at your windows environment variables. (type set from a
windows command prompt) or to see and change them (if on 2k/xp not sure
for 9x its been too long,) right click my computer, select
properties, then select the advanced' tab, then select environment
variables.
 

I run set|grep HOME and sure enough HOME is set to cygdrive/c.  So I go 
to the environment vars from the my computer properties dialog but I 
can't find an entry for HOME in fact when I type set I get a MUCH longer 
list of environment vars than I see in the dialog box.  I also looked in 
the cygwin.bat file and all that is in there is this...
@echo off

C:
chdir \cygwin\bin
bash --login -i
so where might that HOME var be getting set?  BTW I am runing win2k
--
Chris W
Bring Back the HP 15C
http://hp15c.org
Not getting the gifts you want?  The Wish Zone can help.
http://thewishzone.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/


Re: home directory.

2004-06-16 Thread Larry Hall
At 02:46 PM 6/16/2004, you wrote:
Vince Hoffman wrote:

On Wed, 16 Jun 2004, Chris W wrote:

 

It seems that somewhere $HOME is getting set to /cygdrive/c.  I want it
to be /home/$USER like the /etc/profile would set it to if it wasn't
already set to /cygdrive/c.  So where do I change that?

   
Have a look at your windows environment variables. (type set from a
windows command prompt) or to see and change them (if on 2k/xp not sure
for 9x its been too long,) right click my computer, select
properties, then select the advanced' tab, then select environment
variables.
 

I run set|grep HOME and sure enough HOME is set to cygdrive/c.  So I go to the 
environment vars from the my computer properties dialog but I can't find an entry for 
HOME in fact when I type set I get a MUCH longer list of environment vars than I see 
in the dialog box.  I also looked in the cygwin.bat file and all that is in there is 
this...
@echo off

C:
chdir \cygwin\bin

bash --login -i

so where might that HOME var be getting set?  BTW I am runing win2k


Look at 'etc/defaults/etc/profile'.  It explains how Cygwin looks for
and determines what to set HOME to.  You should be able to track what's
going on from there.



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


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



Re: home directory.

2004-06-16 Thread Chris W
Larry Hall wrote:
Look at 'etc/defaults/etc/profile'.  It explains how Cygwin looks for
and determines what to set HOME to.  You should be able to track what's
going on from there.
 

From what I read there it seems it is setting home based on the values 
of HOMEDRIVE/HOMEPATH but before it does that it first checks the 
/etc/passwd file for a path entry for the user and by default there 
isn't one, and now I can't find where HOMEDRIVE and HOMEPATH get set, I 
just added /home/administrator to the appropriate line in the 
/etc/passwd file and that took care of it.

Now if I could just figure out why, when I hit the [Delete] key in bash, 
I get a '~' character instead of deleting the character the cursor is 
at, I would be set.  At least as far as cygwin goes anyway.

--
Chris W
Bring Back the HP 15C
http://hp15c.org
Not getting the gifts you want?  The Wish Zone can help.
http://thewishzone.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/


Re: home directory.

2004-06-16 Thread Thorsten Kampe
* Chris W (2004-06-16 22:13 +0100)
 Larry Hall wrote:
Look at 'etc/defaults/etc/profile'.  It explains how Cygwin looks for
and determines what to set HOME to.  You should be able to track what's
going on from there.

  From what I read there it seems it is setting home based on the values 
 of HOMEDRIVE/HOMEPATH but before it does that it first checks the 
 /etc/passwd file for a path entry for the user and by default there 
 isn't one,

By default there is one (generated by 'mkpasswd').

 and now I can't find where HOMEDRIVE and HOMEPATH get set [...]

These are Windows defaults.

 Now if I could just figure out why, when I hit the [Delete] key in
 bash,  I get a '~' character instead of deleting the character the
 cursor is  at, I would be set.  At least as far as cygwin goes
 anyway.

Just read the beginning of /etc/profile again. There you get answer
and also to your bashrc question.

Thorsten


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



Re: home directory not created in cygwin installation

2003-10-01 Thread John Morrison

On Tue, 30 Sep 2003, Igor Pechtchanski wrote:
 On Tue, 30 Sep 2003, Ji-Wei Wu wrote:

  I downloaded and installed the latest cygwin today on my computer.  I
  followed all defaults during installation (in c:\cygwin).  After that, I
  started a cygwin bash shell but found that it did not start in the
  /home/$USER directory ($USER means the user name I use to log onto my
  computer).  The actual directory is /sygdrive/c, which means the c: drive
  on my computer.  What went wrong in my installation and can anyone help me?
 
  Thanks.

 At a guess, your HOME is set incorrectly in Windows.

Igor, think there's anything /etc/profile could do about this?

J.


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



Re: home directory not created in cygwin installation

2003-10-01 Thread Igor Pechtchanski
On Wed, 1 Oct 2003, John Morrison wrote:


 On Tue, 30 Sep 2003, Igor Pechtchanski wrote:
  On Tue, 30 Sep 2003, Ji-Wei Wu wrote:
 
   I downloaded and installed the latest cygwin today on my computer.  I
   followed all defaults during installation (in c:\cygwin).  After that, I
   started a cygwin bash shell but found that it did not start in the
   /home/$USER directory ($USER means the user name I use to log onto my
   computer).  The actual directory is /sygdrive/c, which means the c: drive
   on my computer.  What went wrong in my installation and can anyone help me?
  
   Thanks.
 
  At a guess, your HOME is set incorrectly in Windows.

 Igor, think there's anything /etc/profile could do about this?

 J.

John,

This is thin ice...  On one hand, we want to make things work pretty
seamlessly.  On the other, we don't want to limit the more advanced users
by not letting them change the home directory on the fly (anyone doing
that, anyway?).  One solution I can see is to ignore the $HOME setting
completely, and always go by /etc/passwd.  I think this was discussed
before, but can't recall the details.  One caveat I see is that this would
require an existing (and valid) /etc/passwd, whereas nowadays it's
optional (with nontsec or in Win9x).  I don't know if this will daunt
the advanced users, but it's probably something to discuss.  Opinions?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

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



RE: home directory not created in cygwin installation

2003-10-01 Thread Hughes, Bill
Sent: 01 October 2003 14:27 From: Igor Pechtchanski
 This is thin ice...  On one hand, we want to make things work pretty
 seamlessly.  On the other, we don't want to limit the more advanced users
 by not letting them change the home directory on the fly (anyone doing
 that, anyway?).  One solution I can see is to ignore the $HOME setting
 completely, and always go by /etc/passwd.  I think this was discussed
 before, but can't recall the details.  One caveat I see is that this would
 require an existing (and valid) /etc/passwd, whereas nowadays it's
 optional (with nontsec or in Win9x).  I don't know if this will daunt
 the advanced users, but it's probably something to discuss.  Opinions?

Is it possible to:
use /etc/passwd if running with ntsec and file exists, 
else if /etc/passwd not present, nontsec or on 9X use $HOME.
Furthermore could $HOME be defaulted to \home\'current_user' if not
explicitly set?

I can also see a case for using /etc/passwd if it exists whether, or not
ntsec is used or running on Win9x.
i.e. Whichever happens first:
1) Current user has entry in /etc/passwd, use value from here.
2) $HOME set by user.
3) Default $HOME to /home/'current_user'.

Is the current user set in 9X? It's been a long time since I used this.

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



RE: home directory not created in cygwin installation

2003-10-01 Thread Igor Pechtchanski
On Wed, 1 Oct 2003, Hughes, Bill wrote:

 Sent: 01 October 2003 14:27 From: Igor Pechtchanski
  This is thin ice...  On one hand, we want to make things work pretty
  seamlessly.  On the other, we don't want to limit the more advanced users
  by not letting them change the home directory on the fly (anyone doing
  that, anyway?).  One solution I can see is to ignore the $HOME setting
  completely, and always go by /etc/passwd.  I think this was discussed
  before, but can't recall the details.  One caveat I see is that this would
  require an existing (and valid) /etc/passwd, whereas nowadays it's
  optional (with nontsec or in Win9x).  I don't know if this will daunt
  the advanced users, but it's probably something to discuss.  Opinions?

 Is it possible to:
 use /etc/passwd if running with ntsec and file exists,
 else if /etc/passwd not present, nontsec or on 9X use $HOME.

In other words, you're suggesting that the /etc/passwd entry take
precedence over the existing $HOME setting...  That could work.

 Furthermore could $HOME be defaulted to \home\'current_user' if not
 explicitly set?

It already is, except it's /home/$USER, not \home\$USER (read up on
POSIX vs Win32 paths in Cygwin if you don't see the difference).

 I can also see a case for using /etc/passwd if it exists whether, or not
 ntsec is used or running on Win9x.

You can have an /etc/passwd even with nontsec...  The only problem is that
there is no way that I know of to check it for validity...

 i.e. Whichever happens first:
 1) Current user has entry in /etc/passwd, use value from here.
 2) $HOME set by user.
 3) Default $HOME to /home/'current_user'.

 Is the current user set in 9X? It's been a long time since I used this.

It is (or should be).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

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



RE: home directory not created in cygwin installation

2003-10-01 Thread Hughes, Bill
Sent: 01 October 2003 16:16 From: Igor Pechtchanski
 On Wed, 1 Oct 2003, Hughes, Bill wrote:

  Furthermore could $HOME be defaulted to \home\'current_user' if not
  explicitly set?
It already is, except it's /home/$USER, not \home\$USER (read up on
POSIX vs Win32 paths in Cygwin if you don't see the difference).
Doh! (Hits head on wall) Of course - I've been using an NT command prompt
all afternoon and can't type straight.

  I can also see a case for using /etc/passwd if it exists whether, or not
  ntsec is used or running on Win9x.

 You can have an /etc/passwd even with nontsec...  The only problem is that
 there is no way that I know of to check it for validity...
If you're using nontsec does it matter if it's invalid?
You're then only using it to look up the home directory of the current user.
Of course if it's just missing then you start playing with $HOME instead.

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



Re: home directory not created in cygwin installation

2003-10-01 Thread Ji-Wei Wu
My computer runs Windows 2000 Professional.  I verified $USER is correct 
from cygwin but $HOME was not set during installation (I don't know 
why).  I also noticed that the file /etc/profile does not seem to have the 
lines to set HOME (comparing to other people's profile).  Now I have to set 
HOME every time I start a cygwin shell.  Is there a way I can run the 
profile to set HOME permanently after installation? Thanks.

At 06:32 PM 9/30/2003 -0400, you wrote:
On Tue, 30 Sep 2003, Ji-Wei Wu wrote:

 I downloaded and installed the latest cygwin today on my computer.  I
 followed all defaults during installation (in c:\cygwin).  After that, I
 started a cygwin bash shell but found that it did not start in the
 /home/$USER directory ($USER means the user name I use to log onto my
 computer).  The actual directory is /sygdrive/c, which means the c: drive
 on my computer.  What went wrong in my installation and can anyone help me?

 Thanks.
At a guess, your HOME is set incorrectly in Windows.
Please read and follow the Cygwin problem reporting guidelines at
http://cygwin.com/problems.html.  This will provide enough information
to venture a better guess or to find a solution for your problem.
Igor
--
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


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


Re: home directory not created in cygwin installation

2003-10-01 Thread Monique Y. Herman
On Wed, 01 Oct 2003 16:08:39 -0400, Ji-Wei Wu [EMAIL PROTECTED] penned:
 My computer runs Windows 2000 Professional.  I verified $USER is correct 
 from cygwin but $HOME was not set during installation (I don't know 
 why).  I also noticed that the file /etc/profile does not seem to have the 
 lines to set HOME (comparing to other people's profile).  Now I have to set 
 HOME every time I start a cygwin shell.  Is there a way I can run the 
 profile to set HOME permanently after installation? Thanks.
 

On your windows desktop:

Right-click on My Computer and go to properties.  Click on Advanced
tab.  Punch Environment Variables button.  Create new user variable
HOME with value something like C:\cygwin\home\user where user is the
username you want for your home.

-- 
monique


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



Re: home directory not created in cygwin installation

2003-10-01 Thread Pierre A. Humblet
On Wed, Oct 01, 2003 at 09:27:25AM -0400, Igor Pechtchanski wrote:
 On Wed, 1 Oct 2003, John Morrison wrote:

  Igor, think there's anything /etc/profile could do about this?
 
  J.
 
 John,
 
 This is thin ice...  On one hand, we want to make things work pretty
 seamlessly.  On the other, we don't want to limit the more advanced users
 by not letting them change the home directory on the fly (anyone doing
 that, anyway?).  One solution I can see is to ignore the $HOME setting
 completely, and always go by /etc/passwd.  I think this was discussed
 before, but can't recall the details.  One caveat I see is that this would
 require an existing (and valid) /etc/passwd, whereas nowadays it's
 optional (with nontsec or in Win9x).  I don't know if this will daunt
 the advanced users, but it's probably something to discuss.  Opinions?
   Igor

Having HOME from Windows different from /etc/passwd is useful for domain
users. HOME can be set to a directory on a shared drive for use while 
working at the console, while /etc/passwd points a local directory to allow 
passwordless network access. I use that all the time.

Note that /etc/passwd is optional even with ntsec, as long as you don't
mind having a funny group name and as long as you don't need to chown, 
use cron, log in from the network, etc.. That's important for people 
who don't use Cygwin as a Unix-like work environment but only to
run standalone programs.

Pierre

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



Re: home directory not created in cygwin installation

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Ji-Wei Wu wrote:

 I downloaded and installed the latest cygwin today on my computer.  I
 followed all defaults during installation (in c:\cygwin).  After that, I
 started a cygwin bash shell but found that it did not start in the
 /home/$USER directory ($USER means the user name I use to log onto my
 computer).  The actual directory is /sygdrive/c, which means the c: drive
 on my computer.  What went wrong in my installation and can anyone help me?

 Thanks.

At a guess, your HOME is set incorrectly in Windows.
Please read and follow the Cygwin problem reporting guidelines at
http://cygwin.com/problems.html.  This will provide enough information
to venture a better guess or to find a solution for your problem.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

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



Re: home directory problems

2002-02-10 Thread Mattias Brändström

Thanks! Now it works!

:.:: brasse


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: home directory problems

2002-02-09 Thread fergus at bonhard dot uklinux dot net

Yes. You are probably installing on W98? I believe the problem has been
identified and solved in principle and (presumably?) the solution will at
some stage be implemented. For the moment you can get round things as
follows:

mkdir /home/{yourname}

and move anything there that you need to, in the way of your own
.bash_profile, .bashrc, .inputrc, etc. (There may be none of these; but
whatever's currently in /usr/bin/{yourname}/ is probably specific to you.
When I experienced this problem, /usr/bin/{myname}/ was empty.)

Then edit the file /etc/passwd which probably looks something like this

 {yourname}::500:544::{yourname}:/bin/bash

to this:

 {yourname}::500:544::/home/{yourname}:/bin/bash


If you then close Cygwin and then start it up again everything should work
fine.

Fergus


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: $HOME Directory Relocation

2002-02-06 Thread Schaible, Jörg

Hi Laurence,

I tried to correlate Window's home and Cygwin's home by the following lines
in /etc/profile. I end up mounting /home to the Profile directory of
Windows (wherever it may be in the different versions) and set home
according to $USERPROFILE that is set by the system. This gives a quite
natural Unix feeling for ls /home, although ls ~User just works for my
own account.

== snip = snap =
COMMON_DESKTOP=`regtool get
'\HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders\Common Desktop'`
ALLHOME=`cygpath -u $COMMON_DESKTOP/../..`
ALLHOME=`cygpath -wsa $ALLHOME | tr [a-z] [A-Z]`
if [ ! -d /home ]; then
mkdir /home
fi
if [ $ALLHOME != `cygpath -wsa /home` ]; then
echo Mounting `cygpath -wsa $ALLHOME` to /home
mount -s -b -f `cygpath -wsa $ALLHOME` /home  /dev/null 21
fi
unset ALLHOME COMMON_DESKTOP

USER=`id -un`

# Set up USER's home directory
if [ -z $HOME ]; then
HOME=`cygpath -ua $USERPROFILE`
fi
HOME=`cygpath -wsa $USERPROFILE`
HOME=`cygpath -ua $HOME`
export HOME USER
== snip = snap =

Another benefit: Your settings are part of the Window's profile, i.e. can be
shared for your account automatically in a server environment for different
machines.

Regards,
Jörg

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: $HOME Directory Relocation

2002-02-06 Thread Joshua Franklin

 COMMON_DESKTOP=`regtool get

'\HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
 Folders\Common Desktop'`
 ALLHOME=`cygpath -u $COMMON_DESKTOP/../..`

Don't know if you care, but the latest version of 
cygpath has -D and -A options that will output the
All Users' Desktop
directory. Not sure about the ../.. though.

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: $HOME Directory Relocation

2002-02-05 Thread Michael A Chase

- Original Message -
From: Greg Mosier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 05, 2002 13:55
Subject: Re: $HOME Directory Relocation


 From: Michael A Chase [EMAIL PROTECTED]
 Subject: Re: $HOME Directory Relocation


  The problem with setting HOME to a fixed value in cygwin.bat or
 /etc/profile
  is that limits your cygwin installation to a single user.  That's why
the
  default /etc/profile allows $HOME to be passed through from the user's
  Windows environment.

 Ummm, I set this up in /etc/profile, defined several users, had then
connect
 through telnetd, and it worked fine.  Matter of fact, without this setup
in
 /etc/profile, when you telnet in your $HOME is set to: /

Good point.  I don't provide telnetd services to other machines, so I tend
to think in terms of local users.  Doesn't /etc/passwd help with
telnetd/login?
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/