Comments (16)
@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.
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.
@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.
@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.
@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.
Unfortunately logs don't show anything useful. I just created a new user (Admin Test) then I clicked on it.
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.
@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.
sure, just let me know what I should do!
from user-admin.
@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.
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
- Application crashes when creating 2 new users in a row
- 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.
@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.
@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.
@kyrios123 Any questions?
from user-admin.
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.
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.
@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)
- Please synchronize translations before tagging next release
- Characters with accents aren't displayed properly éèàçùî ... HOT 2
- Main window width HOT 1
- Polkit authentication window is not translated HOT 1
- build failure with gcc10 HOT 1
- Segfault because I couldn't get the permission HOT 3
- PID file is not deleted when leaving the application HOT 3
- Changing user locale does not work HOT 3
- Version update HOT 1
- some warnings in terminal with 1.6.0 HOT 4
- Dark themes, some fonts color should become white instead of black HOT 2
- user-admin does not install HOT 5
- mate-user-admin package for Debian and Ubuntu is needed HOT 5
- Do not add user to audio group in MATE User Manager HOT 4
- mate-user-admin Switch Bug HOT 5
- Not working in Arch? HOT 27
- Default language problem HOT 19
- Can't enable Auto-login HOT 2
- "user count is 0" on 22.04 based Live environment HOT 1
- Some systems have stricter regex for valid usernames HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from user-admin.