[39428] in Kerberos

home help back first fref pref prev next nref lref last post

Error - sudo: account validation failure, is your account locked?

daemon@ATHENA.MIT.EDU (hareesh kumar)
Wed May 29 19:37:06 2024

MIME-Version: 1.0
From: hareesh kumar <hareeshkumarperugupalli@gmail.com>
Date: Wed, 29 May 2024 17:51:20 +0530
Message-ID: <CAJDiwpVyCL_yhoib8AHSCA3bbAi91tU6pVcDrUsw+ndAykfD+Q@mail.gmail.com>
To: kerberos@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

Hi Team

I am upgrading kerberos latest version 1.21.2 from 1.18 version using
docker file .
Basically I am installing the kerberos from the community page, unzip and
use it in our application.

After i installed kerberos and added a new user named kdcuser , gave all
the root access to it in the docker file and when i try to create new
directory as in /etc directory krb5kdc. I am getting this error message as
"sudo: account validation failure, is your account locked?
sudo: a password is required".

Kindly help me out with this issue
here are the docker file steps i am using
ENV PATH=/usr/local/go/bin:/usr/local/bin:$PATH \
LANG=C.UTF-8 \
DEBIAN_FRONTEND=noninteractive
ENV KRB5_KDC_PROFILE=/etc/krb5kdc/kdc.conf

# Setting up variable for Kerberos version
ARG KERBEROS_VERSION=1.21.2
ARG GO_VERSION=1.19.1

# Download and Install Openssl and OpenSSL FIPS Component
RUN set -ex \
&& apt-get update -y \
&& apt-get -y install curl perl build-essential bison flex libssl-dev xinetd
sudo supervisor iputils-ping vim wget git file \
&& mkdir -p /usr/local/src/ \
&& cd /usr/local/src/ \
&& curl -O https://kerberos.org/dist/krb5/1.21/krb5-1.21.2.tar.gz \
&& wget https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz \
&& file krb5-1.21.2.tar.gz \
#&& gunzip krb5-1.21.2.tar.gz \
&& mkdir -p /var/lib/krb5kdc \
&& mkdir -p /etc/krb5kdc \
&& tar -xvf krb5-1.21.2.tar.gz \
&& tar -xzf go${GO_VERSION}.linux-amd64.tar.gz -C /usr/local/ \
&& cd krb5-${KERBEROS_VERSION}/src \
&& ./configure --with-crypto-impl=openssl --with-prng-alg=os
--localstatedir=/var/lib/ \
&& LDFLAGS="-L/usr/local/lib64" CPPFLAGS="-I/usr/local/include" ./configure
--with-crypto-impl=openssl --with-prng-alg=os --localstatedir=/var/lib/ \
&& make \
&& make install \
&& apt-get remove -y build-essential bison flex mailutils-common \
&& apt-get remove -y --purge mysql\* \
&& apt-get autoclean \
&& apt-get clean

RUN adduser --disabled-password --gecos '' kdcuser
RUN echo '%sudo ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
RUN echo "kdcuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN adduser kdcuser sudo
RUN addgroup kdcuser tty
RUN usermod -G root kdcuser

USER kdcuser

# Creating dir to store Go bin and KRB5 Config files
RUN sudo mkdir -p /opt/ibm/go \
&& sudo mkdir -p /etc/krb5kdc
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post