Post by senioruser on Oct 18, 2021 14:09:55 GMT
I am new to Bodhi so wanted to create a ‘test’ userid so I could play around and if I caused any major issues it would be easy to just delete the test id and start over again.
Here is how I created a test id.
When I installed Bodhi it created a new userid which I named ‘newuser’ with a password of newuser. To begin, there are a couple of commands you can use to check your system first. Start terminology and use the following command line commands...
'whoami' - this will tell you the name of the userid which in my case is newuser
'groups newuser' – the groups command will list all the groups that a user is a member of.
The output of this command was – adm, cdrom, sudo, dip, plugdev, lpadmin, sambashare.
This means that newuser is a member of all those groups.
adm – system monitoring tasks
cdrom – CD Rom support
dip – dial up IP
plugdev – mount/unmount removable devices
lpadmin – printer functions
sambashares – samba support
To create a new user, start with the following command
'sudo usermod -a -G xxx test' where xxx is adm, plugdev, cdrom
You have to do each group separatly.
If you have done it correctly then you can check by using the groups command
'groups test' and it should show the groups that test is a member of. I did not include all the groups because it is only a test userid which requires just some basic groups.
When you reboot, there should be a new user id in the log in screen.
To delete the test id
'userdel test' should remove the user id.
Hope this of some assistance.
Here is how I created a test id.
When I installed Bodhi it created a new userid which I named ‘newuser’ with a password of newuser. To begin, there are a couple of commands you can use to check your system first. Start terminology and use the following command line commands...
'whoami' - this will tell you the name of the userid which in my case is newuser
'groups newuser' – the groups command will list all the groups that a user is a member of.
The output of this command was – adm, cdrom, sudo, dip, plugdev, lpadmin, sambashare.
This means that newuser is a member of all those groups.
adm – system monitoring tasks
cdrom – CD Rom support
dip – dial up IP
plugdev – mount/unmount removable devices
lpadmin – printer functions
sambashares – samba support
To create a new user, start with the following command
'sudo adduser test sudo' – this should create a new user with id test and it will be a member of sudo group.
It should now ask you to create a password for the new userid and I just used 'test' so it would be easy to remember.
Now that we have created the new user we need to make it a member of some groups. Because its just a test system I only used the following groups.'sudo usermod -a -G xxx test' where xxx is adm, plugdev, cdrom
You have to do each group separatly.
If you have done it correctly then you can check by using the groups command
'groups test' and it should show the groups that test is a member of. I did not include all the groups because it is only a test userid which requires just some basic groups.
When you reboot, there should be a new user id in the log in screen.
To delete the test id
'userdel test' should remove the user id.
Hope this of some assistance.