Bug 17720 - Add option to drakxtools (includes installer) to give a user sudo access
Summary: Add option to drakxtools (includes installer) to give a user sudo access
Status: REOPENED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard: MGA8TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-09 11:22 CET by Nic Baxter
Modified: 2022-05-13 09:38 CEST (History)
2 users (show)

See Also:
Source RPM: drakxtools
CVE:
Status comment: See comment 2


Attachments
fedora add user screen (104.63 KB, image/png)
2016-02-09 11:22 CET, Nic Baxter
Details
User creation classic installer (169.86 KB, image/png)
2022-05-12 05:42 CEST, sturmvogel
Details
User management in MCC (140.90 KB, image/png)
2022-05-12 05:44 CEST, sturmvogel
Details

Description Nic Baxter 2016-02-09 11:22:54 CET
Created attachment 7437 [details]
fedora add user screen

after installation it is necessary to open terminal 
su - and then use visudo to add a user to sudo

In Fedora 23 during the installation there is a checkbox to allow the new user become administrator.
It would reduce installation tasks by one
Comment 1 Marja Van Waes 2016-02-10 20:58:17 CET
(In reply to Nic Baxter from comment #0)
> Created attachment 7437 [details]
> fedora add user screen


Hi Nic :-)

That's a live installer... do you request this for both Live and traditional installs?  

This report has Component Installer, which is for traditional install.

To more easily file the same report for Live installs, you can clone this report by clicking on "Clone This Bug" at the bottom right. For Live installer, Component needs to be changed to "RPM packages", "RPM package" to "draklive" and "Assigned To" to "Thomas Backlund"

HTH

Marja

Source RPM: (none) => drakx-installer-stage2
Summary: add option to make installer administrator => add option to installer to give a user sudo root access
CC: (none) => marja11
Assignee: bugsquad => thierry.vignaud

Comment 2 Rémi Verschelde 2016-02-11 10:48:35 CET
IMO one report is enough, if this is implemented it would be done in the drakxtools and share by the traditional installer, the live installer and the MCC (i.e. you'd have a checkbox "add as sudoer" when creating a new user).
Comment 3 Mageia Robot 2016-06-30 16:32:05 CEST
commit 41611f474e8cf755f5b74fb98ef33ab8d830d081
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Thu Jun 30 11:08:57 2016 +0200

    offer again to add user to admin group (mga#17720)
    
    default security level is 1 those days
    we should probably only keep "adm" & "wheel" (eg: rip "xgrp" & the like)
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=41611f474e8cf755f5b74fb98ef33ab8d830d081
Comment 4 Thierry Vignaud 2016-06-30 16:37:03 CEST
Closing
Thoug as stated in the commit log, we probably want to remove some of the extra groups listed at http://gitweb.mageia.org/software/drakx/tree/perl-install/any.pm?id=41611f474e8cf755f5b74fb98ef33ab8d830d081#n868
Comment 5 Thierry Vignaud 2016-07-04 22:30:25 CEST
Really closing

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 6 Morgan Leijström 2022-05-11 22:38:39 CEST
In Mageia 8 I can't see an option to add user to admin / wheel neither at install nor when and creating another user.

What I do see is sudo seem to be installed per default.

Comment 2 seem like a nice goal.

CC: (none) => fri
Resolution: FIXED => (none)
Source RPM: drakx-installer-stage2 => drakxtools
Whiteboard: (none) => MGA8TOO
Status: RESOLVED => REOPENED

Morgan Leijström 2022-05-11 22:44:51 CEST

Status comment: (none) => See comment 2
Component: Installer => RPM Packages
Assignee: thierry.vignaud => mageiatools
Summary: add option to installer to give a user sudo root access => Add option to drakxtools (includes installer) to give a user sudo access

Comment 7 sturmvogel 2022-05-12 05:42:55 CEST
Created attachment 13245 [details]
User creation classic installer

(In reply to Morgan Leijström from comment #6)
> In Mageia 8 I can't see an option to add user to admin / wheel neither at
> install nor when and creating another user.

Hm, that's not correct. The classic installer has this point at user creation under tab "advanced". See attachment.
Comment 8 sturmvogel 2022-05-12 05:44:34 CEST
Created attachment 13246 [details]
User management in MCC

(In reply to Morgan Leijström from comment #6)
> In Mageia 8 I can't see an option to add user to admin / wheel neither at
> install nor when and creating another user.

And you can also add users in MCC to different groups in a really easy way. See attachment.
Comment 9 Morgan Leijström 2022-05-13 09:27:12 CEST
Exactly: it is not offered in an easily understandable way.

We often suggest users to use sudo, so it should not mean another hard step for a new user.

Some other distros even enable sudo by default.

Currently user need to be experienced enough to know
* sudo need wheel (in this method)
* how to set it
* that i is hidden in "advanced"


There was another discussion some months ago, i dont remember where, where we discussed having a prominent setting not hidden under extra tab, and that actually use the word sudo.


(In reply to Rémi Verschelde from comment #2)
> i.e. you'd have a checkbox "add as sudoer" when creating a new user).
Comment 10 Morgan Leijström 2022-05-13 09:38:51 CEST
An easy text-only improvement to installer would be to extend the text 
"Advanced" -> "Advanced, such as enabling sudo"

And in that popup extend "allow su" -> "allow su, enable sudo"


See this with the eyes of new users.


For MCC it would be nice with some guidance for the myriad of groups. Not all need to be explained, but i.e "To easily enable sudo, check wheel."  Just an idea.

Note You need to log in before you can comment on or make changes to this bug.