Weird privilege problem

Weird privilege problem

NewsGroups | Search | Tools
 comp.dcom.sys.cisco  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Weird privilege problem GregG 06-24-2008
Posted by GregG on June 24, 2008, 3:18 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Ok, I'm new to this so bear with me.

When I connect to one of our switches running ios vs 12.0 via the
console, I am able to type commands normally.

However, when I log in on a VTY via telnet, the login is successful
but almost any command I type results in a "Command authorization
failed." I can check my privilege level, however, and it says I am
level 15.

Can anyone point me in the right direction?

Our lines are configured thusly:

!
line con 0
exec-timeout 99 0
privilege level 15
password <blah>
transport input none
stopbits 1
line vty 0 2
access-class 112 in
exec-timeout 4 30
password <blah>
line vty 3 4
access-class 101 in
password <blah>
line vty 5 15
access-class 10 in
!

Spring Sale Save 20% Banner - Sale Ended 5/3/07 So Updated to NonPromo Ad
Posted by Lars Christensen on June 24, 2008, 5:14 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
67dbd544ee0c@x41g2000hsb.googlegroups.com:

> Ok, I'm new to this so bear with me.
>
> When I connect to one of our switches running ios vs 12.0 via the
> console, I am able to type commands normally.
>
> However, when I log in on a VTY via telnet, the login is successful
> but almost any command I type results in a "Command authorization
> failed." I can check my privilege level, however, and it says I am
> level 15.
>
> Can anyone point me in the right direction?
>
> Our lines are configured thusly:
>
> !
> line con 0
> exec-timeout 99 0
> privilege level 15
> password <blah>
> transport input none
> stopbits 1
> line vty 0 2
> access-class 112 in
> exec-timeout 4 30
> password <blah>
> line vty 3 4
> access-class 101 in
> password <blah>
> line vty 5 15
> access-class 10 in
> !
>

Hi Greg

What does your aaa section say about authorization of commands?

Regards,
Lars C.
CCIE #20292

Posted by GregG on June 24, 2008, 5:47 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Thanks, Lars.

aaa new-model
aaa authentication login default group tacacs+ local enable
aaa authorization config-commands
aaa authorization exec default group tacacs+ local
aaa authorization commands 15 default group tacacs+ if-authenticated

So, it's a tacacs problem, right?



On Jun 24, 5:14=A0pm, Lars Christensen <you-dont-wanna-k...@your-
face.ddd> wrote:
> 67dbd544e...@x41g2000hsb.googlegroups.com:
>
>
>
> > Ok, I'm new to this so bear with me.
>
> > When I connect to one of our switches running ios vs 12.0 via the
> > console, I am able to type commands normally.
>
> > However, when I log in on a VTY via telnet, the login is successful
> > but almost any command I type results in a "Command authorization
> > failed." =A0I can check my privilege level, however, and it says I am
> > level 15.
>
> > Can anyone point me in the right direction?
>
> > Our lines are configured thusly:
>
> > !
> > line con 0
> > =A0exec-timeout 99 0
> > =A0privilege level 15
> > =A0password <blah>
> > =A0transport input none
> > =A0stopbits 1
> > line vty 0 2
> > =A0access-class 112 in
> > =A0exec-timeout 4 30
> > =A0password <blah>
> > line vty 3 4
> > =A0access-class 101 in
> > =A0password <blah>
> > line vty 5 15
> > =A0access-class 10 in
> > !
>
> Hi Greg
>
> What does your aaa section say about authorization of commands?
>
> Regards,
> Lars C.
> CCIE #20292


Posted by J.Cottingim on June 24, 2008, 8:01 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
> Thanks, Lars.
>
> aaa new-model
> aaa authentication login default group tacacs+ local enable
> aaa authorization config-commands
> aaa authorization exec default group tacacs+ local
> aaa authorization commands 15 default group tacacs+ if-authenticated
>
> So, it's a tacacs problem, right?
>
> On Jun 24, 5:14=A0pm, Lars Christensen <you-dont-wanna-k...@your-
>
> face.ddd> wrote:
> > 67dbd544e...@x41g2000hsb.googlegroups.com:
>
> > > Ok, I'm new to this so bear with me.
>
> > > When I connect to one of our switches running ios vs 12.0 via the
> > > console, I am able to type commands normally.
>
> > > However, when I log in on a VTY via telnet, the login is successful
> > > but almost any command I type results in a "Command authorization
> > > failed." =A0I can check my privilege level, however, and it says I am
> > > level 15.
>
> > > Can anyone point me in the right direction?
>
> > > Our lines are configured thusly:
>
> > > !
> > > line con 0
> > > =A0exec-timeout 99 0
> > > =A0privilege level 15
> > > =A0password <blah>
> > > =A0transport input none
> > > =A0stopbits 1
> > > line vty 0 2
> > > =A0access-class 112 in
> > > =A0exec-timeout 4 30
> > > =A0password <blah>
> > > line vty 3 4
> > > =A0access-class 101 in
> > > =A0password <blah>
> > > line vty 5 15
> > > =A0access-class 10 in
> > > !
>
> > Hi Greg
>
> > What does your aaa section say about authorization of commands?
>
> > Regards,
> > Lars C.
> > CCIE #20292
>
>

Yes... At least it looks like it at this point.
You should check your TACACS server to be sure the username you login
with is authorized to perform the commands you are trying.

-JC

Posted by Thrill5 on June 24, 2008, 9:40 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Per your AAA config, TACACs is used for authorization. The privilege level
you have specified on the VTY's is only used if TACACs is not working. I
also see from your config that you have different access-class's applied to
each of the VTY groups. This is not good practice and very poor security.
The lowest available VTY is always used for new telnet connections. VTY 0
is always used, unless someone else is already logged in. The second logged
in person will use VTY 1. Now if the user on VTY 0 logs out, the third
person to log in will again use VTY 0.


> Thanks, Lars.
>
> aaa new-model
> aaa authentication login default group tacacs+ local enable
> aaa authorization config-commands
> aaa authorization exec default group tacacs+ local
> aaa authorization commands 15 default group tacacs+ if-authenticated
>
> So, it's a tacacs problem, right?
>
> On Jun 24, 5:14 pm, Lars Christensen <you-dont-wanna-k...@your-
>
> face.ddd> wrote:
> > 67dbd544e...@x41g2000hsb.googlegroups.com:
>
> > > Ok, I'm new to this so bear with me.
>
> > > When I connect to one of our switches running ios vs 12.0 via the
> > > console, I am able to type commands normally.
>
> > > However, when I log in on a VTY via telnet, the login is successful
> > > but almost any command I type results in a "Command authorization
> > > failed." I can check my privilege level, however, and it says I am
> > > level 15.
>
> > > Can anyone point me in the right direction?
>
> > > Our lines are configured thusly:
>
> > > !
> > > line con 0
> > > exec-timeout 99 0
> > > privilege level 15
> > > password <blah>
> > > transport input none
> > > stopbits 1
> > > line vty 0 2
> > > access-class 112 in
> > > exec-timeout 4 30
> > > password <blah>
> > > line vty 3 4
> > > access-class 101 in
> > > password <blah>
> > > line vty 5 15
> > > access-class 10 in
> > > !
>
> > Hi Greg
>
> > What does your aaa section say about authorization of commands?
>
> > Regards,
> > Lars C.
> > CCIE #20292
>
>

Yes... At least it looks like it at this point.
You should check your TACACS server to be sure the username you login
with is authorized to perform the commands you are trying.

-JC



Similar ThreadsPosted
Weird ARP problem October 20, 2005, 11:22 am
Weird PIX problem again November 6, 2006, 11:06 pm
Weird problem with pix 6.3(5) February 26, 2007, 3:13 pm
Weird Network Problem June 21, 2005, 10:23 am
Weird Netflow problem... January 28, 2008, 7:56 pm
Weird traffic problem - might be PIX 520 related. February 2, 2007, 4:53 am
Weird 3640 Boot Up Problem December 12, 2007, 8:35 pm
weird problem from 2511 console switch to 6509 October 14, 2005, 1:15 pm
weird problem with using a Cisco 1751 as a home office router October 23, 2006, 8:17 pm
PIX + privilege command December 7, 2006, 10:58 am

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map