Giter Club home page Giter Club logo

Comments (16)

zhuyaliang avatar zhuyaliang commented on August 20, 2024

@JoshStrobl
That's a good idea. But I think it would be more perfect to design an interactive graphical interface, such as:
An advanced button can be added to the window where a new user is created. When the user clicks on the button, the default add group can be set.But will this be the same as what group management provides function?

from user-admin.

kyrios123 avatar kyrios123 commented on August 20, 2024

This would indeed make the application more convenient for non technical users (and even for advanced users actually) as it allows to have sane defaults.
If you don't want to set the default groups at build time, there could maybe be defined in a properties file that each distribution could ship with the application to set their defaults ?

@zhuyaliang have you decided on what could be the best approach for this already? (I'd really have to have this feature implemented so the application can be added in our repository)

from user-admin.

zhuyaliang avatar zhuyaliang commented on August 20, 2024

@kyrios123 I've done this, and I load the default settings for new users by reading configuration files. I'm currently testing。The configuration file looks like this

# /etc/mate-user-admin/nuconfig 
# Default configuration for new users 
[nudefault]
#Default language for new users
nulanguage = en_US.utf8

#Default Type for New User, 0 Ordinary User 1 Manage User
nutype = 0    

#Default Add Groups for New Users
nugroups =mail;audio;video;lightdm

from user-admin.

kyrios123 avatar kyrios123 commented on August 20, 2024

@zhuyaliang Thanks!
nugroups and nutype are working fine but the language field of newly created users is set to No Settings on main screen although nulanguage is set to en_US.utf8 , is this normal ?

PS: Would it be possible to also add default groups for Administrators ? I agree it's not as important as for Standard users, but it's convenient.

from user-admin.

zhuyaliang avatar zhuyaliang commented on August 20, 2024

@kyrios123 For language ineffectiveness, you can check the /tmp/ log-(timestamp) log to see if there are useful messages. Set nutype to 1, and the new user created is the administrator type,nugroups is his default group (administrator)

from user-admin.

kyrios123 avatar kyrios123 commented on August 20, 2024

Unfortunately logs don't show anything useful. I just created a new user (Admin Test) then I clicked on it.
image

What I meant regarding the default groups for the Administrators is that perhaps it would be a good idea to have the possibility to provide default groups for new Standard accounts and for Administrators. For example for some reasons, I may want newly created Administrators to be member of the wheel group but not Standard accounts. Currently you can just specify default groups but they are the same regardless if the account is Standard or Administrator.

from user-admin.

zhuyaliang avatar zhuyaliang commented on August 20, 2024

@kyrios123 Thank you for your test. I'll solve this problem.But it needs your cooperation, because I don't have the problem of language setup failure here.

from user-admin.

kyrios123 avatar kyrios123 commented on August 20, 2024

sure, just let me know what I should do!

from user-admin.

zhuyaliang avatar zhuyaliang commented on August 20, 2024

@kyrios123
I added some debugging information,The generated log (/ TMP / log*) is sent to me after compilation and run, so I can analyze the cause of the problem.
What would happen if you set up other languages in the configuration file?
Can Manual Language Settings Succeed?

from user-admin.

kyrios123 avatar kyrios123 commented on August 20, 2024

Here are the logs, although it says "English (United States)", on the Screen it displays "No Setttings".

level:[Info]  message: mate-user-admin user 1
level:[Info]  message: mate-user-admin Current user name Pierre-Yves
level:[Debug]  message: nuLang = en_US.utf8
level:[Debug]  message: NewUserlang = English (United States)
level:[Debug]  message: username testuser realname Test User usertype 1 langname English (United States) passwod 1
level:[Info]  message: mate-user-admin Current user name Pierre-Yves
level:[Info]  message: mate-user-admin Current user name Test User
level:[Debug]  message: nuLang = en_US.utf8
level:[Debug]  message: NewUserlang = English (United States)
level:[Debug]  message: username testuser2 realname Test User II usertype 1 langname English (United States) passwod 1

Here are the logs. I found some more bugs

  1. Application crashes when creating 2 new users in a row
  2. When you set a language to a user then navigate on other users, it keeps on showing the language that was set on all users (like if the field is not refreshed/reloaded), but it correctly sets the language on the user.

from user-admin.

zhuyaliang avatar zhuyaliang commented on August 20, 2024

@kyrios123 I solved the problem of language.

Application crashes when creating 2 new users in a row

I haven't encountered such a situation. Is there any error message if you start-up from the command line?

from user-admin.

kyrios123 avatar kyrios123 commented on August 20, 2024

@zhuyaliang I confirm the language problem is solved :)
I'll open another issue for the crash.

To get back to the original topic, what about the suggestion of having the possibility to set default groups for "Standard Users" and to set different default groups for "Administrtors" ?

from user-admin.

zhuyaliang avatar zhuyaliang commented on August 20, 2024

@kyrios123 Any questions?

from user-admin.

kyrios123 avatar kyrios123 commented on August 20, 2024

Hi @zhuyaliang I still would love to see a setting similar to nugroups but for setting default groups for Admin users
That would be a nice enhancement imho

from user-admin.

zhuyaliang avatar zhuyaliang commented on August 20, 2024

OK, I will change the /etc/mate-user-admin/nuconfig configuration file to add new options

administrator user group
standard user group

from user-admin.

zhuyaliang avatar zhuyaliang commented on August 20, 2024

@kyrios123
Try this commit, adding default groups for different types of users
7011404a
This is the modified configuration file

#Default Add Groups for New Users (Administrtors)
nuadmingroups =mail;audio;video;lightdm
#Default Add Groups for New Users (Standard)
nustandgroups =mail;audio;video;cdrom;sshd

from user-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.