Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create custom users on the login screen? #3

Closed
oldtime54 opened this issue Dec 17, 2021 · 6 comments
Closed

How to create custom users on the login screen? #3

oldtime54 opened this issue Dec 17, 2021 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@oldtime54
Copy link

I added custom user to iso and added to groups but when I boot the live iso and try to login it just brings me back to the login screen.

@oldtime54 oldtime54 added the bug Something isn't working label Dec 17, 2021
@PJ-Singh-001
Copy link
Owner

Please share the following details:

  • OS/Distro Name
  • OS/Distro Version
  • Cubic Version
  • Which *.iso are you customizing in Ubuntu?

I suspect the issue is not related to the users you've added.
Did you make any other customization?

@oldtime54
Copy link
Author

Ubuntu 20.04.3
2021.12.67
Ubuntu 20.04.3

@PJ-Singh-001
Copy link
Owner

I tested using ubuntu-20.04-desktop-amd64.iso.

I created three users and added each user to the sudo group.

You have entered the virtual environment.

root@cubic:~# adduser user_1
Adding user `user_1' ...
Adding new group `user_1' (1000) ...
Adding new user `user_1' (1000) with group `user_1' ...
Creating home directory `/home/user_1' ...
Copying files from `/etc/skel' ...
New password: 
Retype new password: 
passwd: password updated successfully
Changing the user information for user_1
Enter the new value, or press ENTER for the default
    Full Name []: User One
    Room Number []: 
    Work Phone []: 
    Home Phone []: 
    Other []: 
Is the information correct? [Y/n] Y

root@cubic:~# usermod -a -G sudo user_1

root@cubic:~# adduser user_2
Adding user `user_2' ...
Adding new group `user_2' (1001) ...
Adding new user `user_2' (1001) with group `user_2' ...
Creating home directory `/home/user_2' ...
Copying files from `/etc/skel' ...
New password: 
Retype new password: 
passwd: password updated successfully
Changing the user information for user_2
Enter the new value, or press ENTER for the default
    Full Name []: User Two
    Room Number []: 
    Work Phone []: 
    Home Phone []: 
    Other []: 
Is the information correct? [Y/n] Y

root@cubic:~# usermod -a -G sudo user_2

root@cubic:~# adduser user_3
Adding user `user_3' ...
Adding new group `user_3' (1002) ...
Adding new user `user_3' (1002) with group `user_3' ...
Creating home directory `/home/user_3' ...
Copying files from `/etc/skel' ...
New password: 
Retype new password: 
passwd: password updated successfully
Changing the user information for user_3
Enter the new value, or press ENTER for the default
    Full Name []: User Three
    Room Number []: 
    Work Phone []: 
    Home Phone []: 
    Other []: 
Is the information correct? [Y/n] Y

root@cubic:~# usermod -a -G sudo user_3

Cubic successfully generated the custom ISO.

Screenshot from 2021-12-17 22-14-06

The ISO booted without error.

Screenshot from 2021-12-17 22-14-34

I was presented with three users on the GDM screen.

Screenshot from 2021-12-17 22-16-02

I selected "User Three" and entered the password.

Screenshot from 2021-12-17 22-16-15

User Three was able to login. I also verified the user's groups membership, and it was correct.

Screenshot from 2021-12-17 22-18-08

@PJ-Singh-001
Copy link
Owner

PJ-Singh-001 commented Dec 18, 2021

As you can see, I am not able to recreate your issue.

Usually, when there a bug in Cubic, you will see an error message in the Log output in the terminal (if you run Cubic from the command line). Furthermore, your ISO will simply not be bootable.

Since Cubic generated a bootable ISO, I suspect there were additional changes you made on the Terminal page that you were not forthcoming about. It is likely this broke your customized system and this is preventing you from logging in.

Do you have more information you can share?
Did you make other customizations (other than simply adding users and groups)?
Did you add users and groups using a different command?
Did you add any video drivers?
Did you attempt to change the Ubuntu theme or the GDM theme?

@oldtime54
Copy link
Author

I deleted the user and this time it created the user correctly. I can say that the issue isn't really an issue.
One issue I am still having is getting a custom gnome-shell active when I log into the user.

@PJ-Singh-001
Copy link
Owner

Glad it's working.
Getting a custom Gnome Shell to be used is a bit tricky.
Open up a new Issue (make sure you pick "Question"), and I'll share some of the steps I take to make it work.

@PJ-Singh-001 PJ-Singh-001 added question Further information is requested and removed bug Something isn't working labels Dec 27, 2021
@PJ-Singh-001 PJ-Singh-001 changed the title Custom User Login How to create custom users on the login screen Jan 5, 2022
@PJ-Singh-001 PJ-Singh-001 changed the title How to create custom users on the login screen How to create custom users on the login screen? Jan 5, 2022
@PJ-Singh-001 PJ-Singh-001 self-assigned this Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants