What benefit is there in specifying "-" for limit type versus specifying "hard?"
The man page for limits.conf on CentOS says of the limit type, "hard ... The user cannot raise his requirement of system resources above such values" and "soft ... These limits are ones that the user can move up or down within the permitted range by any pre-existing hard limits."
It sounds like hard is simply more restrictive than soft, so how does specifying both, with "-", make any sense? It's as if you're saying both, "user can't change this" and "user can change this."
FWIW, I'm trying to reduce and restrict the default nice for user logins. I'm currently using * - priority 15
but wondering how that is any different from * hard priority 15
.