public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* how to create a new user
@ 2002-02-12 10:35 Alex BATKO
  2002-02-12 10:46 ` Corinna Vinschen
  0 siblings, 1 reply; 9+ messages in thread
From: Alex BATKO @ 2002-02-12 10:35 UTC (permalink / raw)
  To: cygwin


Where in the documentation on the cygwin site is there information
about how to create a new user ?

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

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

* Re: how to create a new user
  2002-02-12 10:35 how to create a new user Alex BATKO
@ 2002-02-12 10:46 ` Corinna Vinschen
  2002-02-12 10:58   ` Alex BATKO
  0 siblings, 1 reply; 9+ messages in thread
From: Corinna Vinschen @ 2002-02-12 10:46 UTC (permalink / raw)
  To: cygwin

On Tue, Feb 12, 2002 at 01:35:06PM -0500, Alex BATKO wrote:
> 
> Where in the documentation on the cygwin site is there information
> about how to create a new user ?

Nowhere.  It's in the Windows documentation.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

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

* Re: how to create a new user
  2002-02-12 10:46 ` Corinna Vinschen
@ 2002-02-12 10:58   ` Alex BATKO
  2002-02-12 13:17     ` Ryan T. Sammartino
  0 siblings, 1 reply; 9+ messages in thread
From: Alex BATKO @ 2002-02-12 10:58 UTC (permalink / raw)
  To: cygwin


OK.  I have a particular user who already has a windows account,
but now i'd like to be able to allow that user (username: billy)
to ssh into the domain controller (to be able to use cygwin).

What I did so far is `mkpasswd -d | grep billy >> /etc/passwd`.

Then billy tries to do `ssh host_name -l billy`, but billy gets
permission denied.

So then i thought that billy might need a new password, so i ran
`passwd billy`, and gave him a new password.  Still no luck.

This is why I was asking about documentation about creating a new
user.  Windows documentation is not enough;  this is cygwin related.

Do you have any idea about what I should try to let this user log in ?

Thanks for your time.


+-------------------
| On Tue, Feb 12, 2002 at 01:35:06PM -0500, Alex BATKO wrote:
| > 
| > Where in the documentation on the cygwin site is there information
| > about how to create a new user ?
| 
| Nowhere.  It's in the Windows documentation.
| 
| Corinna
+-------------------


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

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

* Re: how to create a new user
  2002-02-12 10:58   ` Alex BATKO
@ 2002-02-12 13:17     ` Ryan T. Sammartino
  2002-02-12 14:27       ` Alex BATKO
  0 siblings, 1 reply; 9+ messages in thread
From: Ryan T. Sammartino @ 2002-02-12 13:17 UTC (permalink / raw)
  To: cygwin

On Tue, Feb 12, 2002 at 01:57:48PM -0500, Alex BATKO wrote:
> 
> OK.  I have a particular user who already has a windows account,
> but now i'd like to be able to allow that user (username: billy)
> to ssh into the domain controller (to be able to use cygwin).
> 


This is what I do:


#! /bin/bash

mkpasswd -d -u $1 | sed -e 's/:\([A-Za-z0-9_-]\+\),\([A-Za-z0-9_-]\+\),U-/:\2\1,U-/g' >> /etc/passwd



Save that as "adduser.sh", then you can just "adduser.sh billy".

The sed script is to turn real names from Lastname, Firstname
to Firstname Lastname, since the extra comma causes issues.  If that
isn't an issue for you, then remove the sed script.



-- 
Ryan T. Sammartino
http://members.shaw.ca/ryants/
Good day to avoid cops.  Crawl to school.

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

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

* Re: how to create a new user
  2002-02-12 13:17     ` Ryan T. Sammartino
@ 2002-02-12 14:27       ` Alex BATKO
  2002-02-12 20:11         ` Gary R. Van Sickle
  2002-02-12 22:56         ` Ryan T. Sammartino
  0 siblings, 2 replies; 9+ messages in thread
From: Alex BATKO @ 2002-02-12 14:27 UTC (permalink / raw)
  To: cygwin


+-------------------
| On Tue, Feb 12, 2002 at 01:57:48PM -0500, Alex BATKO wrote:
| > 
| > OK.  I have a particular user who already has a windows account,
| > but now i'd like to be able to allow that user (username: billy)
| > to ssh into the domain controller (to be able to use cygwin).
| > 
| 
| 
| This is what I do:
| 
| 
| #! /bin/bash
| 
| mkpasswd -d -u $1 | sed -e 's/:\([A-Za-z0-9_-]\+\),\([A-Za-z0-9_-]\+\),U-/:\2\1,U-/g' >> /etc/passwd
| 
| 
| 
| Save that as "adduser.sh", then you can just "adduser.sh billy".
| 
| The sed script is to turn real names from Lastname, Firstname
| to Firstname Lastname, since the extra comma causes issues.  If that
| isn't an issue for you, then remove the sed script.
+-------------------

Thanks for replying...

Fortunately there is no comma in my case, so i don't really need to
do any substitutions.

I'm not sure if you made a mistake or not, in typing the '-u' flag,
because my mkpasswd doesn't support that option.

We are doing pretty much the same things (in creating a user), but
I get permission denied after entering the password (during an ssh
attempt).  You don't have this problem ?  Can you think of anything
that might be responsible for this ?

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

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

* RE: how to create a new user
  2002-02-12 14:27       ` Alex BATKO
@ 2002-02-12 20:11         ` Gary R. Van Sickle
  2002-02-12 22:56         ` Ryan T. Sammartino
  1 sibling, 0 replies; 9+ messages in thread
From: Gary R. Van Sickle @ 2002-02-12 20:11 UTC (permalink / raw)
  To: cygwin

> I'm not sure if you made a mistake or not, in typing the '-u' flag,
> because my mkpasswd doesn't support that option.
>

You have an old mkpasswd.  "-u,--username username  only return information for
the specified user" is relatively new.

--
Gary R. Van Sickle
Brewer.  Patriot.


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

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

* Re: how to create a new user
  2002-02-12 14:27       ` Alex BATKO
  2002-02-12 20:11         ` Gary R. Van Sickle
@ 2002-02-12 22:56         ` Ryan T. Sammartino
  2002-02-13  6:41           ` Larry Hall (RFK Partners, Inc)
  2002-02-13 13:38           ` Alex BATKO
  1 sibling, 2 replies; 9+ messages in thread
From: Ryan T. Sammartino @ 2002-02-12 22:56 UTC (permalink / raw)
  To: cygwin

On Tue, Feb 12, 2002 at 05:26:54PM -0500, Alex BATKO wrote:
> I'm not sure if you made a mistake or not, in typing the '-u' flag,
> because my mkpasswd doesn't support that option.

I have the latest greatest Cygwin possible (don't have
version numbers in front of me at the moment), but mkpasswd -u <user>
means "make a password entry just for the given user"

> 
> We are doing pretty much the same things (in creating a user), but
> I get permission denied after entering the password (during an ssh
> attempt).  You don't have this problem ?  Can you think of anything
> that might be responsible for this ?

/usr/doc/Cygwin/openssh-***.README solved all of my problems when I
actually read and followed the direction given therein.

-- 
Ryan T. Sammartino
http://members.shaw.ca/ryants/
Receiving a million dollars tax free will make you feel better than
being flat broke and having a stomach ache.
		-- Dolph Sharp, "I'm O.K., You're Not So Hot"

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

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

* Re: how to create a new user
  2002-02-12 22:56         ` Ryan T. Sammartino
@ 2002-02-13  6:41           ` Larry Hall (RFK Partners, Inc)
  2002-02-13 13:38           ` Alex BATKO
  1 sibling, 0 replies; 9+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-02-13  6:41 UTC (permalink / raw)
  To: Ryan T. Sammartino, cygwin

At 01:56 AM 2/13/2002, Ryan T. Sammartino wrote:
>On Tue, Feb 12, 2002 at 05:26:54PM -0500, Alex BATKO wrote:
> > We are doing pretty much the same things (in creating a user), but
> > I get permission denied after entering the password (during an ssh
> > attempt).  You don't have this problem ?  Can you think of anything
> > that might be responsible for this ?
>
>/usr/doc/Cygwin/openssh-***.README solved all of my problems when I
>actually read and followed the direction given therein.



Isn't it nice to have such good Cygwin documentation? (asked 
rhetorically) :-)



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


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

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

* Re: how to create a new user
  2002-02-12 22:56         ` Ryan T. Sammartino
  2002-02-13  6:41           ` Larry Hall (RFK Partners, Inc)
@ 2002-02-13 13:38           ` Alex BATKO
  1 sibling, 0 replies; 9+ messages in thread
From: Alex BATKO @ 2002-02-13 13:38 UTC (permalink / raw)
  To: cygwin


+-------------------
| I have the latest greatest Cygwin possible (don't have
| version numbers in front of me at the moment), but mkpasswd -u <user>
| means "make a password entry just for the given user"
| 
OK, thanks for pointing that out.  Although I think that other then the
amount of time required to fetch a given user password entry, there's no
difference between `mkpasswd -u username` and `mkpasswd -d | grep username`.
(With exception of the comma).



| > We are doing pretty much the same things (in creating a user), but
| > I get permission denied after entering the password (during an ssh
| > attempt).  You don't have this problem ?  Can you think of anything
| > that might be responsible for this ?
| 
| /usr/doc/Cygwin/openssh-***.README solved all of my problems when I
| actually read and followed the direction given therein.
| 
I think that sshd is setup correctly - I am able to ssh into the windows
machine (running cygwin/sshd) with another account.  The problem is that
billy can't log in using password authentication.

PasswordAuthentication is set to 'yes'.

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

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

end of thread, other threads:[~2002-02-13 21:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-12 10:35 how to create a new user Alex BATKO
2002-02-12 10:46 ` Corinna Vinschen
2002-02-12 10:58   ` Alex BATKO
2002-02-12 13:17     ` Ryan T. Sammartino
2002-02-12 14:27       ` Alex BATKO
2002-02-12 20:11         ` Gary R. Van Sickle
2002-02-12 22:56         ` Ryan T. Sammartino
2002-02-13  6:41           ` Larry Hall (RFK Partners, Inc)
2002-02-13 13:38           ` Alex BATKO

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