18 Commits (01ff1efc5dc2b054db1c4bd5ccdc8f1bef269795)

Author SHA1 Message Date
Adriaan de Groot 01ff1efc5d [users] Improve explanation when useradd fails 8 years ago
Adriaan de Groot 0d24c1db6c [users] Introduce userShell setting
- Add a *userShell* key, which can be left out (default, backwards-
   compatible) to retain the old /bin/bash behavior, or explicitly
   set to empty to defer to useradd-configuration, or explicitly
   set to something non-empty to use that shell.
8 years ago
Adriaan de Groot 3a59574128 [users] Factor out command-line to useradd
- This is prep-work for #964, which was caused by #955
 - Original assumption was that distro's would have a working
   useradd configuration; @abucodonosor already pointed out that
   this was probably not the case, but I ignored that.
8 years ago
Frede H f2677b0879
Update CreateUserJob.cpp
Removal of the hardcoded shell, letting the `/etc/default/useradd` be responsible for the shell.
8 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
Gabriel C 5d241f8e09 CreateUserJob: do not force any autologin group
There is no need to force folks haing a random group
 bc that is a Distro think. SDDM/GDM works just fine without
 having a group for the user to autologin.
 Just setup a group in users.conf .. is why we have a configuration
 option for that.
8 years ago
Teo Mrnjavac de979f8528 Add user to groups separately from useradd. 9 years ago
Kevin Kofler 0ad215bcca users: Drop dependency on chfn. (#260)
Pass the full name directly to useradd instead, using the "-c" (comment)
parameter, which is "currently used as the field for the user's full
name" according to the documentation.

The chfn utility is no longer installed by default on current Fedora
releases due to its dependency on libuser. (They split out chfn and chsh
from util-linux into an optional subpackage.) It could be added as a
dependency of Calamares, but since it is needed inside the chroot, it
has to be on the base live image, not the overlay. Thus, to allow
testing Calamares with a simple "dnf install calamares" again, the
dependency needs to go away. And it is unnecessary anyway.
9 years ago
Teo Mrnjavac d65df112dd If reuseHome is set and if /home/<username> exists, backup dotfiles. 10 years ago
codeworkx b412937699 don't set default "users" group on home dirs
Fixes CAL-345.

Changing group of home dir to the default "users" group might be a security risk
because every user which belongs to the default "users" group
might be able to access private data on home dirs of other users.
10 years ago
Teo Mrnjavac c1ea86c48e Add new users to a group with the same name. 10 years ago
Teo Mrnjavac 42e465aa10 CalamaresUtils::System is now a class. 10 years ago
Teo Mrnjavac bf885d65db chroot calls are now generic "target env" calls. 10 years ago
Teo Mrnjavac 079fa3624b Update pretty{Description,StatusMessage} for users module jobs. 11 years ago
Teo Mrnjavac 9e84581354 Only add wheel to sudoers if a wheel group is defined in conf. 11 years ago
Teo Mrnjavac ad68ce0187 Make default groups, users group and autologin group configurable. 11 years ago
Teo Mrnjavac 70691068cb Fix sudoers setup in users module. 12 years ago
Teo Mrnjavac 46f5dab7fd CreateUserJob for Users viewmodule 12 years ago