Questions tagged [shadow-utils]

3 questions
1
vote
0 answers

Can `su` preserve resource limits?

I am under user t and then switch to t again via su t: $ ulimit -c -H; ulimit -c 1000 1000 $ su t Password: $ ulimit -c -H; ulimit -c unlimited 0 Is it possible to request su to preserve resource limit, just like sudo which can: $ ulimit -c -H;…
Tim
  • 98,580
  • 191
  • 570
  • 977
0
votes
1 answer

Shell for only changing password

I need to restrict all access to a user on a RHEL 8 system and allow them to only change their own password. I thought that I could do [root]$ usermod -s /bin/passwd but this is not working. What am I missing? Update: To be clear, the…
Katerl3s
  • 143
  • 1
  • 1
  • 5
-3
votes
1 answer

When the user of a shell is `root`, does running `su` on another user name ask for password of the other user?

When the user of a shell isn't root, running su on another user name will ask for password of the other user. When the user of a shell is root, running su on another user name doesn't ask for password of the other user. Is it correct? I searched in…
Tim
  • 98,580
  • 191
  • 570
  • 977