I just installed a brand new VM with Debian 10 (buster) and joined it to our active directory using pbis
.
what I encountered now is, that:
- as the root user, I can
su
to every other available user in our AD WITHOUT being asked for a password - as a normal user I can
only
su
to other users if I have the correct password and type it in
In previous versions of Debian (like 9) it was not possible do do that.
What I did to join the AD:
apt install gnupg -y
wget -O - http://repo.pbis.beyondtrust.com/apt/RPM-GPG-KEY-pbis | apt-key add
wget -O /etc/apt/sources.list.d/pbiso.list http://repo.pbis.beyondtrust.com/apt/pbiso.list
apt-get update
apt-get install pbis-open -y
pbis join full.domain.name.de $ADMINUSER $ADMINPW
pbis set-default-domain full.domain.name.de
/opt/pbis/bin/config UserDomainPrefix PREFIX
/opt/pbis/bin/config AssumeDefaultDomain true
/opt/pbis/bin/config LoginShellTemplate "/bin/bash"
/opt/pbis/bin/config RequireMembershipOf "PREFIX\\admingoup" "PREFIX\\${HOST}-admin" "PREFIX\\${HOST}-user"
/opt/pbis/bin/config HomeDirTemplate "%H/%U"
sed -i '23a%admingroup ALL=(ALL) ALL' /etc/sudoers
sed -i '23a%'${HOST}'-admin ALL=(ALL) ALL' /etc/sudoers
so the other settings are basically standard. This is driving me crazy and I can't find out where to look what has changed since Debian 9 to the su
command.
edit:
so basically I become root with
sudo su
and then go for su other.user
and it just works without a password prompt.
If I'm a non root user e.g. "normal.user" and go for su other.user
it asks for the password and only lets me do it if I type in the correct one.
admingroup
?su other.user
- soadmin.user@vmname: su other.user
gives me the password prompt for other.user,root@vmname: su other.user
doesnt and just continues toother.user@vmname: