Launched thanks sudo or with SUID bit set, bash drops its privileges. To keep root id, use -p option.
bash -p