Closed idefixcert closed 1 year ago
Hi idefixcert,
I had a similar scenario and it worked perfectly fine.
Please check the groups of the mapped local user belong to:
tac_user@b508b319e119:~$ sudo id tacacs15
uid=1015(tac_user) gid=27(sudo) groups=27(sudo)
tac_user@b508b319e119:~$ groups
sudo
tac_user@b508b319e119:~$ pwd
/home/tacacs15
tac_user@b508b319e119:~$ sudo service --status-all
[sudo] password for tac_user:
[ - ] cron
[ - ] dbus
[ ? ] dpdk
[ ? ] hwclock.sh
[ - ] procps
[ + ] rsyslog
[ + ] ssh
[ - ] unattended-upgrades
tac_user@b508b319e119:~$
In the above scenario I have a tacacs user(tac_user) with privilege15 and belongs to mapped user tacacs15.
RUN dpkg -i deb/libtacplus-map1_1.0.1-cl3u3_amd64.deb
Hi idefixcert, mentioned deb packages will compatible with ubuntu 22.04 or not?
Not sure, I am not working actively on this project anymore, I think we can close the card.
The sudo issue requires a patch that most people would be unlikely to accept. I think I posted it, but never tried to push it upstream.
I have not been involved with tacacs since late 2019, and do not plan to be involved in the future.
I just try the following example
the start.sh file contains:
then I run these command:
and also this to get the ssh port
if I login with
ssh chris@localhost -p 32821
everything works as expected. The only thing which does not work issudo less
for example. Than I get:chris is not in the sudoers file. This incident will be reported.
and in the logFeb 4 17:25:34 f74107dbf05f sudo: chris : user NOT in sudoers ; TTY=pts/1 ; PWD=/home/tacacs15 ; USER=root ; COMMAND=/usr/bin/less
But the sudoers config looks good:
tacacs15 ALL=(ALL:ALL) ALL
For me it looks like the request is made with user chris and not tacacs15. Also the prompt shows the username chris.
echo $USER
also. Butpwd
shows:/home/tacacs10
.Any help appreciated.