What | Removed | Added |
---|---|---|
Flags | needinfo?(fvogt@suse.com) |
(In reply to Stefan Schubert from comment #5) > Ok, thanks for the input. > So the task would be to exchange the call useradd.local by useradd and to > remove the manual copy of the skel because it should be already done by > useradd. > Right, Fabian ? useradd takes care of creating the user, i.e. optionally creating the home directory, calling useradd.local and modifying /etc/passwd,shadow,etc. YaST only appears to call useradd.local, which implies that it does the other steps manually already. So just calling useradd instead of useradd.local would create the user twice. BTW, it seems like YaST edits /etc/passwd and /etc/shadow before the home directory is created and chown is run. This introduces a theoretical race condition, that the user can login and have write access to ~ which is currently being chowned to the new uid. Not sure whether this can be an issue in practice.