Accidentally denied log on locally right to everyone group

NathanBWF

Golden Member
May 29, 2003
1,810
0
0
So we've got an XP pro machine that has denied log on locally rights to the Everyone group. I've downloaded the Windows 2003 resource kit on another XP pro machine and am trying to fix it using the ntrights.exe so I run:

ntrights -m \\computer -u Everyone -r SeDenyInteractiveLogonRight

It says the command completed sucessfully but yet I still can't log on with the Admin account on the XP machine. Anyone know why?
 

NathanBWF

Golden Member
May 29, 2003
1,810
0
0
Figured it out. It wasn't the everyone group that was denied. It was another group that was on there. Also, you can't just fix it my using the command in the above post and applying it to the everyone group. You have to remove it from the group that you assigned it to in the first place.
 

dclive

Elite Member
Oct 23, 2003
5,626
2
81
Originally posted by: NathanBWF
So we've got an XP pro machine that has denied log on locally rights to the Everyone group. I've downloaded the Windows 2003 resource kit on another XP pro machine and am trying to fix it using the ntrights.exe so I run:

ntrights -m \\computer -u Everyone -r SeDenyInteractiveLogonRight

It says the command completed sucessfully but yet I still can't log on with the Admin account on the XP machine. Anyone know why?

I'd try adding SeInteractiveLogonRight (-u Everyone). If still no go, replace the secedit.sdb file on that machine with another's, reboot, & try again. (c:\winnt\security\database) Keep backup copies of all files you touch.
 

dclive

Elite Member
Oct 23, 2003
5,626
2
81
Originally posted by: NathanBWF
Figured it out. It wasn't the everyone group that was denied. It was another group that was on there. Also, you can't just fix it my using the command in the above post and applying it to the everyone group. You have to remove it from the group that you assigned it to in the first place.

Can you detail that a little more?
 

NathanBWF

Golden Member
May 29, 2003
1,810
0
0
Originally posted by: dclive
Originally posted by: NathanBWF
Figured it out. It wasn't the everyone group that was denied. It was another group that was on there. Also, you can't just fix it my using the command in the above post and applying it to the everyone group. You have to remove it from the group that you assigned it to in the first place.

Can you detail that a little more?

Sure.

What I had happend was there was a group created on the XP machine called "Backups". I wanted to deny the right to log on locally to that group, which I did through the local security policy snap in. What I didn't know was that the Administrators group and the Users group had been added into the Backups group, so after I made the change to deny that group the log on locally right and rebooted, all of a suden I couldn't log on locally with any user account, Administrator accounts included. At first I thought that the Everyone group had been added to the Backups group, which wasn't the case.

Anyway, I found out about ntrights.exe and thought by running:

ntrights -m \\computer -u Everyone -r SeDenyInteractiveLogonRight

and applying it to the everyone group that would solve my problem. BUT you can't just apply it to the everyone group, you have to apply it to the group that you intially denied the log on locally right to in the first place, which in my case was the "Backups" group. So after I ran:

ntrights -m \\computer -u Backups -r SeDenyInteractiveLogonRight

I was able to log on locally again. Then I took the administrators and users groups out of the Backups, then denied the Backups group the log on locally right again and now everything is working how it was suppose to in the first place. Everyone else can log on locally except those of the Backups group.

Sorry for the long post, hope it makes sense.