AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

non-root user error with entstat (AIX 5.3)

  • 1.  non-root user error with entstat (AIX 5.3)

    Posted Thu March 01, 2012 01:10 PM

    Originally posted by: KellyClowers


    When a non-root user tries to use entstat, they get this message: “entstat: 0909-002 Unable to open device ent0, errno = 13”.

    Also applies to ent1. Another machine, which should have a similar setup, does not have this problem.

    So far the network has been working fine (nfs, telnet, ftp). With the rest working I might not care too much about entstat failing, but catia v4 needs it to run...

    Looking in smitty and at lsdev, chdev, etc, I cannot see that there are any permissions that could be set on the device. The user and group structure is cloned from the other machine that works.

    It is probably worth noting that the machine with this issue also has an issue creating the X0 socket with 700 permissions instead of 777, preventing non-root users from doing a graphical login until it is changed.

    I tried truss with the entstat command, just see what I could see, but there was nothing understandable/obviously wrong that I could see, unlike the case with the X0 socket (which is how I diagnosed that issue).

    Any ideas?

    Thanks,
    Kelly Clowers


  • 2.  Re: non-root user error with entstat (AIX 5.3)

    Posted Fri March 02, 2012 04:16 AM

    Originally posted by: tony.evans


    Does it definitely work as root? It's not a NIC that's part of an EtherChannel device?


  • 3.  Re: non-root user error with entstat (AIX 5.3)

    Posted Fri March 02, 2012 04:19 AM

    Originally posted by: tony.evans


    Can you show us the output from lsdev -Cc adapter.


  • 4.  Re: non-root user error with entstat (AIX 5.3)

    Posted Fri March 02, 2012 04:20 AM

    Originally posted by: tony.evans


    And ifconfig -a

    (I should learn to think before hitting post message)


  • 5.  Re: non-root user error with entstat (AIX 5.3)

    Posted Fri March 02, 2012 01:10 PM

    Originally posted by: KellyClowers


    It isn't EtherChannel, nothing fancy on this server, it isn't really a server at all, just a workstation being used as one, and in sort of a minimal configuration at that.

    catia3:root:/> lsdev -Cc adapter
    ent0 Available 09-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
    ent1 Available 09-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
    ide0 Available 03-08 ATA/IDE Controller Device
    mojl0 Available 01-08 GXT4500P Graphics Adapter
    paud0 Available 0B-08 PCI Audio Adapter (13100560)
    sisscsia0 Available 04-08 PCI-X Dual Channel Ultra320 SCSI Adapter
    sisscsia1 Available 0A-08 PCI-X Dual Channel Ultra320 SCSI Adapter
    usbhc0 Available 08-08 USB Host Controller (33103500)
    usbhc1 Available 08-09 USB Host Controller (33103500)
    vsa0 Available LPAR Virtual Serial Adapter
    vsa1 Available LPAR Virtual Serial Adapter

    catia3:root:/> ifconfig -a
    en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
    inet 10.177.10.53 netmask 0xffff8000 broadcast 10.177.127.255
    tcp_sendspace 131072 tcp_recvspace 65536
    lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT>
    inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
    inet6 ::1/0
    tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1


  • 6.  Re: non-root user error with entstat (AIX 5.3)

    Posted Fri March 02, 2012 02:25 PM

    Originally posted by: ColombianJoker


    Tipical of administrative commands, try it with an user member of "system" group


  • 7.  Re: non-root user error with entstat (AIX 5.3)

    Posted Fri March 02, 2012 02:54 PM

    Originally posted by: KellyClowers


    Added a user to the system group in smitty and su'ed to him and tried it. Same error. And non-system-group users can run entstat on the other server.


  • 8.  Re: non-root user error with entstat (AIX 5.3)

    Posted Mon March 05, 2012 04:15 AM

    Originally posted by: tony.evans


    Yeh, works for me here with a regular user (no additional groups).

    oslevel -s
    5300-08-03-0831

    It's definitely a permission issue, from errno.h

    #define EACCES 13 /* Permission denied */

    Oh hang on, entstat is setuid,

    -r-sr-xr-x 1 root bin 30444 16 Jun 2008 /usr/sbin/entstat

    is yours?


  • 9.  Re: non-root user error with entstat (AIX 5.3)

    Posted Mon March 05, 2012 01:12 PM

    Originally posted by: KellyClowers


    Thank you my good sir! That was indeed the problem.
    I really should have thought to check the perms on that.

    chmod 4555 and away we go!


  • 10.  Re: non-root user error with entstat (AIX 5.3)

    Posted Mon March 05, 2012 01:13 PM

    Originally posted by: KellyClowers


    Although there is still the question of why it wasn't...


  • 11.  Re: non-root user error with entstat (AIX 5.3)

    Posted Tue March 06, 2012 04:49 AM

    Originally posted by: tony.evans


    Usual reason is someone does a chmod -R somewhere they shouldn't and then fixes it the hard way but gets it wrong.

    Does it go someway to explaining the other issue you have? i.e. has someone removed setuid's from other binaries causing obscure permissions issues?

    Anyway, glad we got that one resolved.