diff --git a/src/modules/users/CreateUserJob.cpp b/src/modules/users/CreateUserJob.cpp index 556ff9d89..92043045c 100644 --- a/src/modules/users/CreateUserJob.cpp +++ b/src/modules/users/CreateUserJob.cpp @@ -155,6 +155,8 @@ CreateUserJob::exec() "-U", "-G", defaultGroups, + "-c", + m_fullName, m_userName } ); if ( ec ) return Calamares::JobResult::error( tr( "Cannot create user %1." ) @@ -162,13 +164,6 @@ CreateUserJob::exec() tr( "useradd terminated with error code %1." ) .arg( ec ) ); - ec = CalamaresUtils::System::instance()->targetEnvCall( { "chfn", "-f", m_fullName, m_userName } ); - if ( ec ) - return Calamares::JobResult::error( tr( "Cannot set full name for user %1." ) - .arg( m_userName ), - tr( "chfn terminated with error code %1." ) - .arg( ec ) ); - ec = CalamaresUtils::System::instance()-> targetEnvCall( { "chown", "-R",