AIX

AIX

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


#Power
#Power
 View Only
  • 1.  Errors 3004-307 and 3004-501 when trying to su to root

    Posted Mon August 08, 2011 05:59 PM

    Originally posted by: Riker


    Group,

    Hi, all. I'm hoping someone can tell me what am I missing here?

    I receive the following errors when trying to su to root:

    3004-307 You are not allowed to su to this account.
    3004-501 Cannot su to "root" : Account is not accessible.

    I can login directly as root so I know I have the correct password and I can su to another user account.

    Thanks in advance for you help.

    Jason
    #AIX-Forum


  • 2.  Re: Errors 3004-307 and 3004-501 when trying to su to root

    Posted Mon August 08, 2011 06:14 PM

    Originally posted by: SystemAdmin


    Check the su parameter for the root user.

    "lsuser -c -a su root"

    It would be disabled on the machine where you are getting this error.

    As per the security norms the su options for root will be disabled on some environments. If you don't bother about that and you want to use su - root then.

    From root prompt - "chuser su=true root"

    Check you have sudo installed and configured on your machine. If yes, try login to root using sudo.
    Kannan
    #AIX-Forum


  • 3.  Re: Errors 3004-307 and 3004-501 when trying to su to root

    Posted Mon August 08, 2011 06:25 PM

    Originally posted by: Riker


    Kannan,

    Thanks for the quick reply. The lsuser command you provided returns "root:false" so I guess it's being blocked on purpose. Has sudo overtaken su as the preferred method of performing root level tasks? If so, it's odd that sudo isn't installed on this server. :-)

    Regards,

    Jason
    #AIX-Forum


  • 4.  Re: Errors 3004-307 and 3004-501 when trying to su to root

    Posted Mon August 08, 2011 06:41 PM

    Originally posted by: SystemAdmin


    sudo is recommended. Check on the others servers on your environment whether you have su disabled on all or not. If its disbled on all the servers and you don't have sudo installed, then you will not have options to login as root except through console.

    Its better to have sudo in place.
    Kannan.
    #AIX-Forum