Opened 4 years ago
#16611 new bug
registrar: broken /etc/passwd and etc/shadow files are created if string fields contains colon character
Reported by: | X512 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Servers/registrar | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
This is hrev54723.
Steps to reproduce:
- Run
useradd "user:::"
. user::::x:1005:100::/boot/home:/bin/sh
invalid entry will be created to/etc/passwd
.- Run
userdel "user:::"
before reboot to avoid system get messed up.
registrar
should perform input data check or escaping.
Related code: ​AuthenticationManager.cpp:1006
I created GUI utility to mange users and groups that can be also useful for investigation: ​Users.
Note:
See TracTickets
for help on using tickets.