This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/src/tacacs
Guohan Lu 99b7910ccf [tacacs]: do not modify local user if there is no priviledge
check the uid before modify local user account.

when run sudo, the process the invoke nss_tacplus library
does not have priviledge to modify the user profile, and
will generate below error messages:

    user_rw@sonic:~$ sudo bash
    usermod: Permission denied.
    usermod: cannot lock /etc/passwd; try again later.
    usermod: Permission denied.
    usermod: cannot lock /etc/passwd; try again later.

Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-06 23:32:40 -08:00
..
nss [tacacs]: do not modify local user if there is no priviledge 2021-02-06 23:32:40 -08:00
pam [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:22:51 -08:00
.gitignore Reorganize .gitignore files (#4707) 2020-06-09 21:04:55 -07:00