Re: Username hassles

2009-07-16 Thread Paul Mead
Larry Hall (Cygwin) reply-to-list-only...@cygwin.com writes:


 And the problem is that you want the files installed by Cygwin's setup.exe
 to use paul instead of MEAD8998.  Yeah, that will happen because
 setup.exe is a Windows program and is going to use the Windows SID of
 the user installing it.  If you prefer paul to be used, you need to do
 one of two things:

   1. Remove the MEAD8998 user from your '/etc/passwd'.  It's presumably
  before the paul user in the file and has the same SID.

   2. chmod -R paul / /usr/bin /usr/lib

 If MEAD8998 and paul exist in your '/etc/passwd' file and share the
 same SID, use (1).  Otherwise, use (2).
I seem to have 'MEAD8998' and not 'paul'. And I'm guessing that your
option 2 would have do be done more than once, as it doesn't change how
setup.exe is installing files.

In that case, it would probably be better all round if I use MEAD8998
throughout and drop 'paul', at least on that machine.

So, I've tried to find where the user 'paul' is coming from and can't
find anywhere to change that either. Where is the current username held,
and how can I change it?

Paul


--
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: Username hassles

2009-07-16 Thread Larry Hall (Cygwin)

Paul Mead wrote:

Larry Hall (Cygwin) reply-to-list-only...@cygwin.com writes:


And the problem is that you want the files installed by Cygwin's setup.exe
to use paul instead of MEAD8998.  Yeah, that will happen because
setup.exe is a Windows program and is going to use the Windows SID of
the user installing it.  If you prefer paul to be used, you need to do
one of two things:

  1. Remove the MEAD8998 user from your '/etc/passwd'.  It's presumably
 before the paul user in the file and has the same SID.

  2. chmod -R paul / /usr/bin /usr/lib

If MEAD8998 and paul exist in your '/etc/passwd' file and share the
same SID, use (1).  Otherwise, use (2).

I seem to have 'MEAD8998' and not 'paul'. And I'm guessing that your
option 2 would have do be done more than once, as it doesn't change how
setup.exe is installing files.


'setup.exe' installs files with the user name of the user that invoked
'setup.exe' so depending on who you update your Cygwin installation as,
you may need to do this again.  Obviously, it would be preferable to do
the updates as the same user as you want to own the files. ;-)


In that case, it would probably be better all round if I use MEAD8998
throughout and drop 'paul', at least on that machine.

So, I've tried to find where the user 'paul' is coming from and can't
find anywhere to change that either. Where is the current username held,
and how can I change it?


Cygwin gets user names from the '/etc/passwd' file.

Perhaps you have a local user 'paul' on your machine?

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

--
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: Username hassles

2009-07-16 Thread Paul Mead
Larry Hall (Cygwin) reply-to-list-only...@cygwin.com writes:


 'setup.exe' installs files with the user name of the user that invoked
 'setup.exe' so depending on who you update your Cygwin installation as,
 you may need to do this again.  Obviously, it would be preferable to do
 the updates as the same user as you want to own the files. ;-)

 In that case, it would probably be better all round if I use MEAD8998
 throughout and drop 'paul', at least on that machine.

 So, I've tried to find where the user 'paul' is coming from and can't
 find anywhere to change that either. Where is the current username held,
 and how can I change it?

 Cygwin gets user names from the '/etc/passwd' file.

 Perhaps you have a local user 'paul' on your machine?

I've just found it in my .profile. Must have put it there ages ago when
I was having trouble with the emacs install.

Now I'll try to see whether that cures my problem running cron...

thanks for your help!

Paul


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



Username hassles

2009-07-13 Thread Paul Mead
Hi, I've got cygwin running on a work machine with a weird username allocated by
IS dept. Somehow I managed to make the user name on cygwin to be 'paul' but all
the files loaded by cygwin setup are owned by 'MEAD8998'. 

Is there any way (short of complete reinstallation) of changing cygwin so that
it uses 'paul' as the user for these files?

Thanks
Paul


--
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: Username hassles

2009-07-13 Thread Thorsten Kampe
* Paul Mead (Mon, 13 Jul 2009 12:38:39 + (UTC))
 Hi, I've got cygwin running on a work machine with a weird username 
allocated by
 IS dept. Somehow I managed to make the user name on cygwin to be 'paul' but 
 all
 the files loaded by cygwin setup are owned by 'MEAD8998'. 
 
 Is there any way (short of complete reinstallation) of changing cygwin so that
 it uses 'paul' as the user for these files?

Untested: /etc/passwd?


--
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: Username hassles

2009-07-13 Thread Paul Mead
Thorsten Kampe thors...@thorstenkampe.de writes:


 Untested: /etc/passwd?
What should that do, I ran it but I'm none the wiser!


--
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: Username hassles

2009-07-13 Thread Corinna Vinschen
On Jul 13 15:29, Paul Mead wrote:
 Thorsten Kampe thors...@thorstenkampe.de writes:
 
 
  Untested: /etc/passwd?
 What should that do, I ran it but I'm none the wiser!

You *ran* /etc/passwd?  It's not a script.  Maybe this helps:
http://cygwin.com/1.7/cygwin-ug-net/ntsec.html


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: Username hassles

2009-07-13 Thread Paul Mead
Corinna Vinschen corinna-cyg...@cygwin.com writes:

 On Jul 13 15:29, Paul Mead wrote:
 Thorsten Kampe thors...@thorstenkampe.de writes:
 
 
  Untested: /etc/passwd?
 What should that do, I ran it but I'm none the wiser!

 You *ran* /etc/passwd?  It's not a script.  Maybe this helps:
 http://cygwin.com/1.7/cygwin-ug-net/ntsec.html
OK, so I wasn't supposed to type /etc/passwd then... Hopefully I haven't
broken anything in the process. Thanks for the link, I'll check it out
before I do anything else.

Paul


--
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: Username hassles

2009-07-13 Thread Paul Mead
Corinna Vinschen corinna-cyg...@cygwin.com writes:
 http://cygwin.com/1.7/cygwin-ug-net/ntsec.html


 Corinna
OK, so if I'm reading this right, I need to edit /etc/passwd to
translate my 'paul' cygwin login to my XP 'MEAD8998' username. Then
ownership of file owned by 'MEAD8998' will no longer be a problem.

Is that about right? 

Paul


--
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: Username hassles

2009-07-13 Thread Larry Hall (Cygwin)

Paul Mead wrote:

Corinna Vinschen corinna-cyg...@cygwin.com writes:

http://cygwin.com/1.7/cygwin-ug-net/ntsec.html


Corinna

OK, so if I'm reading this right, I need to edit /etc/passwd to
translate my 'paul' cygwin login to my XP 'MEAD8998' username. Then
ownership of file owned by 'MEAD8998' will no longer be a problem.

Is that about right? 


Ownerships won't change.  You're only telling Cygwin that the name
to display for your user is MEAD8998 rather than paul.  The user
id (or SID in Windows) will not change (and you shouldn't change it
in '/etc/passwd').  This is all details but since you asked the
question, I figured the details where what you wanted. ;-)

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

--
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: Username hassles

2009-07-13 Thread Paul Mead
Larry Hall (Cygwin) reply-to-list-only...@cygwin.com writes:

 Ownerships won't change.  You're only telling Cygwin that the name
 to display for your user is MEAD8998 rather than paul.  The user
 id (or SID in Windows) will not change (and you shouldn't change it
 in '/etc/passwd').  This is all details but since you asked the
 question, I figured the details where what you wanted. ;-)
Thanks Larry, I'll avoid changing the file in that case.

Is there any way of dealing with this problem? 


--
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: Username hassles

2009-07-13 Thread Larry Hall (Cygwin)

Paul Mead wrote:

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

 
http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.


Ownerships won't change.  You're only telling Cygwin that the name
to display for your user is MEAD8998 rather than paul.  The user
id (or SID in Windows) will not change (and you shouldn't change it
in '/etc/passwd').  This is all details but since you asked the
question, I figured the details where what you wanted. ;-)

Thanks Larry, I'll avoid changing the file in that case.

Is there any way of dealing with this problem? 


And the problem is that you want the files installed by Cygwin's setup.exe
to use paul instead of MEAD8998.  Yeah, that will happen because
setup.exe is a Windows program and is going to use the Windows SID of
the user installing it.  If you prefer paul to be used, you need to do
one of two things:

  1. Remove the MEAD8998 user from your '/etc/passwd'.  It's presumably
 before the paul user in the file and has the same SID.

  2. chmod -R paul / /usr/bin /usr/lib

If MEAD8998 and paul exist in your '/etc/passwd' file and share the
same SID, use (1).  Otherwise, use (2).

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

--
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: Username hassles

2009-07-13 Thread Mark J. Reed
On Mon, Jul 13, 2009 at 6:07 PM, Larry Hall wrote:
  If you prefer paul to be used, you need to do
 one of two things:

  1. Remove the MEAD8998 user from your '/etc/passwd'.  It's presumably
     before the paul user in the file and has the same SID.

  2. chmod -R paul / /usr/bin /usr/lib

Correction: that should be chown, not chmod.

 If MEAD8998 and paul exist in your '/etc/passwd' file and share the
 same SID, use (1).  Otherwise, use (2).

-- 
Mark J. Reed markjr...@gmail.com

--
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: Username hassles

2009-07-13 Thread Larry Hall (Cygwin)

Mark J. Reed wrote:

On Mon, Jul 13, 2009 at 6:07 PM, Larry Hall wrote:

 If you prefer paul to be used, you need to do
one of two things:

 1. Remove the MEAD8998 user from your '/etc/passwd'.  It's presumably
before the paul user in the file and has the same SID.

 2. chmod -R paul / /usr/bin /usr/lib


Correction: that should be chown, not chmod.


Indeed.  I meant to correct that before I sent it out.  Thanks.

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

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