This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Globally creating a user and a group "root"


On Thu, Nov 27, 2003 at 11:37:11AM -0000, Morrison, John wrote:
> Corinna Vinschen wrote:
> > On Thu, Nov 27, 2003 at 11:24:55AM +0100, Corinna Vinschen wrote:
> >> On Thu, Nov 27, 2003 at 09:58:52AM -0000, Morrison, John wrote:
> >>> Corinna Vinschen wrote:
> >>>>   I don't know exactly
> >>>> but it's possible that W2K doesn't have these SeDenyWhatever user
> >>>> rights.
> >>> 
> >>> editrights -a SeDenyRemoteInteractiveLogonRight -u root
> >>> 
> >>> was the one that failed.  Would it be best (assuming these
> >>> last 3 are optional) to 2> /dev/null them?  Is there any other info
> >>> that would help?
> >> 
> >> Er... only this one?  Hmm, that makes sense, sort of.  Look like
> >> this right only exist since XP.
> >> 
> >> I'm reluctant to devnull them.  There might be a real error covered
> >> when doing this.  I'll better add another variable to check if
> >> running under XP or newer.
> 
> OK :)
> 
> > ping! ping! ping!
> > 
> > New create-root script attached!
> > 
> > This script should do it right now.  Additionally I changed the way
> > how the password is read to using the `read -s' option to hide what's
> > actually typed in. 
> 
> But you display it in the next echo...

Ouch!  I'll fix that.

> > Can you give this script another test?
> 
> Other than that it works fine :)
> 
> Shame theres no way of setting the password to never expire :(

There is!  The passwd tool in the current snapshots already have the
option -e to switch expiry off.  If you have another look into the
script, you'll see that I check the version number of passwd, so I
know if it already has that functionality or not ;-)

Corinna

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]