Gautham Banasandra created YETUS-1117:
-----------------------------------------

             Summary: Add user according to the platform
                 Key: YETUS-1117
                 URL: https://issues.apache.org/jira/browse/YETUS-1117
             Project: Yetus
          Issue Type: Bug
          Components: Precommit
    Affects Versions: 0.13.0
         Environment: Centos7, Centos8, Debian10
            Reporter: Gautham Banasandra
            Assignee: Gautham Banasandra


The adduser command needs to called with the correct parameters that are 
specific to the environment, right now this call fails silently -

{code}
[2021-08-14T11:21:14.978Z] #7 [ 4/11] RUN if [ "10051" != -1 ]; then (groupadd 
--non-unique --gid 10051 dockersock && adduser "jenkins" dockersock ) || true; 
fi

[2021-08-14T11:21:14.978Z] #7 
sha256:c647fe30c8a1f93c6df9518c1674166c7cab06b337083a65b5ec2aedecfda3af

[2021-08-14T11:21:16.741Z] #7 1.313 Usage: adduser [options] LOGIN

[2021-08-14T11:21:16.741Z] #7 1.313        adduser -D

[2021-08-14T11:21:16.741Z] #7 1.313        adduser -D [options]

[2021-08-14T11:21:16.741Z] #7 1.313 

[2021-08-14T11:21:16.741Z] #7 1.313 Options:

[2021-08-14T11:21:16.741Z] #7 1.313   -b, --base-dir BASE_DIR       base 
directory for the home directory of the

[2021-08-14T11:21:16.741Z] #7 1.313                                 new account

[2021-08-14T11:21:16.741Z] #7 1.313   -c, --comment COMMENT         GECOS field 
of the new account

[2021-08-14T11:21:16.742Z] #7 1.313   -d, --home-dir HOME_DIR       home 
directory of the new account

[2021-08-14T11:21:16.742Z] #7 1.313   -D, --defaults                print or 
change default useradd configuration

[2021-08-14T11:21:16.742Z] #7 1.313   -e, --expiredate EXPIRE_DATE  expiration 
date of the new account

[2021-08-14T11:21:16.742Z] #7 1.313   -f, --inactive INACTIVE       password 
inactivity period of the new account

[2021-08-14T11:21:16.742Z] #7 1.313   -g, --gid GROUP               name or ID 
of the primary group of the new

[2021-08-14T11:21:16.742Z] #7 1.313                                 account

[2021-08-14T11:21:16.742Z] #7 1.313   -G, --groups GROUPS           list of 
supplementary groups of the new

[2021-08-14T11:21:16.742Z] #7 1.313                                 account

[2021-08-14T11:21:16.742Z] #7 1.313   -h, --help                    display 
this help message and exit

[2021-08-14T11:21:16.742Z] #7 1.313   -k, --skel SKEL_DIR           use this 
alternative skeleton directory

[2021-08-14T11:21:16.742Z] #7 1.313   -K, --key KEY=VALUE           override 
/etc/login.defs defaults

[2021-08-14T11:21:16.742Z] #7 1.313   -l, --no-log-init             do not add 
the user to the lastlog and

[2021-08-14T11:21:16.742Z] #7 1.313                                 faillog 
databases

[2021-08-14T11:21:16.742Z] #7 1.313   -m, --create-home             create the 
user's home directory

[2021-08-14T11:21:16.742Z] #7 1.313   -M, --no-create-home          do not 
create the user's home directory

[2021-08-14T11:21:16.742Z] #7 1.313   -N, --no-user-group           do not 
create a group with the same name as

[2021-08-14T11:21:16.742Z] #7 1.313                                 the user

[2021-08-14T11:21:16.742Z] #7 1.313   -o, --non-unique              allow to 
create users with duplicate

[2021-08-14T11:21:16.742Z] #7 1.313                                 
(non-unique) UID

[2021-08-14T11:21:16.742Z] #7 1.313   -p, --password PASSWORD       encrypted 
password of the new account

[2021-08-14T11:21:16.742Z] #7 1.313   -r, --system                  create a 
system account

[2021-08-14T11:21:16.742Z] #7 1.313   -R, --root CHROOT_DIR         directory 
to chroot into

[2021-08-14T11:21:16.742Z] #7 1.313   -P, --prefix PREFIX_DIR       prefix 
directory where are located the /etc/* files

[2021-08-14T11:21:16.742Z] #7 1.313   -s, --shell SHELL             login shell 
of the new account

[2021-08-14T11:21:16.742Z] #7 1.313   -u, --uid UID                 user ID of 
the new account

[2021-08-14T11:21:16.742Z] #7 1.313   -U, --user-group              create a 
group with the same name as the user

[2021-08-14T11:21:16.742Z] #7 1.313   -Z, --selinux-user SEUSER     use a 
specific SEUSER for the SELinux user mapping


{code}





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to