public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Launch cygwin as non-domain user
@ 2016-08-06 21:25 Bob Van
  2016-08-08 10:02 ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Van @ 2016-08-06 21:25 UTC (permalink / raw)
  To: cygwin

I'm attempting to work with ruby on rails in cygwin, though I know
it's a difficult path to go down. I have a windoz7 laptop which is
connected to a company domain sometimes, and which pushes security
updates down sometimes. Normally, when I launch cygwin, my console is
for user rvanover@RVANOVERMEIREN, and my user can create rails apps
and install bundles - even if they are dropped in from windows and
owned by Administrators.

Recently, after an update I imagine, when I launch cygwin, my console
is now for user CHI+User(14497)@RVANOVERMEIREN, and starts in the root
(/) directly rather than my user. To cygwin.bat, I added 'set
HOME=\C:cygwin64\home\rvanover', and the console will load at my
normal home and my bashrc aliases are available, but when I run
'bundle install' for a rails app (dropped in from windoz explorer), I
get error 'EINVAL: Invalid argument @ chmod_internal {path to some gem
bin script}'.

I don't have users/groups in /etc. Sometimes when I'm off the company
network/vpn, cygwin will come up in my normal user console, and work
normally, but I can't tell why that happens.

I just want to know how to launch cygwin as my non-domain user so I
don't get these chmod problems?

-- 
Best Regards,

Bob Van

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Launch cygwin as non-domain user
  2016-08-06 21:25 Launch cygwin as non-domain user Bob Van
@ 2016-08-08 10:02 ` Corinna Vinschen
  0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2016-08-08 10:02 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1916 bytes --]

On Aug  6 09:27, Bob Van wrote:
> I'm attempting to work with ruby on rails in cygwin, though I know
> it's a difficult path to go down. I have a windoz7 laptop which is
> connected to a company domain sometimes, and which pushes security
> updates down sometimes. Normally, when I launch cygwin, my console is
> for user rvanover@RVANOVERMEIREN, and my user can create rails apps
> and install bundles - even if they are dropped in from windows and
> owned by Administrators.
> 
> Recently, after an update I imagine, when I launch cygwin, my console
> is now for user CHI+User(14497)@RVANOVERMEIREN, and starts in the root
> (/) directly rather than my user. To cygwin.bat, I added 'set
> HOME=\C:cygwin64\home\rvanover', and the console will load at my
> normal home and my bashrc aliases are available, but when I run
> 'bundle install' for a rails app (dropped in from windoz explorer), I
> get error 'EINVAL: Invalid argument @ chmod_internal {path to some gem
> bin script}'.
> 
> I don't have users/groups in /etc. Sometimes when I'm off the company
> network/vpn, cygwin will come up in my normal user console, and work
> normally, but I can't tell why that happens.
> 
> I just want to know how to launch cygwin as my non-domain user so I
> don't get these chmod problems?

Do you have old /etc/passwd and /etc/group files?  I suggest removing
them for a start and see how Cygwin comes up.  After that we can go
into details what to change so that your account info is to your liking
again (perhaps even with new /etc/passwd and /etc/group files in certain
scenarios).

For the time being I also suggest to read the documentation on the
new account handling: https://cygwin.com/cygwin-ug-net/ntsec.html.


HTH,
Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Launch cygwin as non-domain user
  2016-08-15 23:41 Bob Van
@ 2016-08-16 11:40 ` Corinna Vinschen
  0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2016-08-16 11:40 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]

On Aug 15 11:53, Bob Van wrote:
> I didn't realize there was a response (on aug 8th to aug 6th) to this
> since didn't get a mail, but am subscribed to digest now.
> 
> I have no passwd or group files. When I echo username, it's as I expect...
> 
> CHI+User(14497)@RVANOVERMEIREN ~/ror
  ^^^^^^^^^^^^^^^

  This does not look like a local user account.  Is CHI your AD domain
  or your local machine name?

The above occurs if a Windows system call fails, i. e.  LookupAccountSid
probably returns with an error code outlining that it can't contact the
DC.

If you want to use your AD username even when disconnected from the
DC, it really makes sense to generate an /etc/passwd entry for your
user account, as well as /etc/group entries for the AD groups you're
member in.

To create these entries you can use the mkpasswd/mkgroup tools or,
alternatively, the getent tool.  Either way, obviously you must be
connected to your DC when doing so.

Then, if you're disconnected, Cygwin can easily fetch this information
from the local files.


HTH,
Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Launch cygwin as non-domain user
@ 2016-08-15 23:41 Bob Van
  2016-08-16 11:40 ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Van @ 2016-08-15 23:41 UTC (permalink / raw)
  To: cygwin

I didn't realize there was a response (on aug 8th to aug 6th) to this
since didn't get a mail, but am subscribed to digest now.

I have no passwd or group files. When I echo username, it's as I expect...

CHI+User(14497)@RVANOVERMEIREN ~/ror
$ echo $USERNAME
rvanover

I've read/scanned through chapter 3 but don't see anything so explain
why my shell has changed or how to revert it back.

I tried creating a new rails app, thinking it would own it and not
have permission problems, but it does...

      ....
      create  bin/rails
      create  bin/rake
      create  bin/setup
/usr/share/ruby/2.2.0/fileutils.rb:1344:in `chmod': Invalid argument @
chmod_internal - /home/
rvanover/ror/item_cart/bin (Errno::EINVAL)
        from /usr/share/ruby/2.2.0/fileutils.rb:1344:in `chmod'

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-16  9:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-06 21:25 Launch cygwin as non-domain user Bob Van
2016-08-08 10:02 ` Corinna Vinschen
2016-08-15 23:41 Bob Van
2016-08-16 11:40 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).