LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bodhi (https://www.linuxquestions.org/questions/bodhi-92/)
-   -   Change username and password (https://www.linuxquestions.org/questions/bodhi-92/change-username-and-password-4175640407/)

Stella456 10-15-2018 06:30 AM

Change username and password
 
Is there a way to do this without using the terminal please? I have set up a netbook with Bodhi for someone else and about to post it - they may want to change the username and/or password.

Or if it does mean using the terminal - how do you do it please? :-)

RandomTroll 10-15-2018 07:51 AM

I don't know how to do it outside of a terminal session; inside it's
Code:

passwd
or
Code:

vipw
.

pan64 10-15-2018 07:58 AM

probably better to create a new user instead (and remove the old one?).
probably you can change the user name in /etc/passwd, but I think that is not recommended at all and may have strange side effects.

hazel 10-15-2018 08:29 AM

I think editing /etc/passwd would probably work if you edited /etc/sudoers afterwards using visudo. You'd need to check for the old name and replace it where necessary with the new one. And, to be safe, you'd need to do it using a proper root login, not sudo. I don't know if you have that possibility on Bodhi. Isn't it based on Ubuntu?

If you create a new user, you will then need to do the following:
1) use chown -R to change ownership of the home directory tree to the new user.
2) use visudo to add the new user to the sudoers file with the same rights as the old user.
3) log out and then in again as the new user.
4) use visudo again to remove the old user from sudoers, and userdel to remove him/her from the passwd file.

cordx 10-16-2018 12:46 AM

Quote:

Originally Posted by serendipity7000 (Post 5914982)
Is there a way to do this without using the terminal please?

i have taken a look in most all of the settings menus that i could find and haven't found a way to do either. i used the passwd command as suggested. it was very easy and straightforward. enter old password then enter new one twice. no idea about changing username though :/

Honest Abe 10-16-2018 01:38 AM

@serendipity7000,

How about forcing the user to change his password on first login ?

chage -d 0 USER would force USER to change password after first login. If this is supported by the GUI, I think it'd be a pretty acceptable thing to do.

Any mode of adding new user/deleting old user might put a newbie off, and they might just lock themselves out of the machine.

the_waiter 10-16-2018 01:44 AM

Quote:

Originally Posted by serendipity7000 (Post 5914982)
Is there a way to do this without using the terminal please? I have set up a netbook with Bodhi for someone else and about to post it - they may want to change the username and/or password.

Or if it does mean using the terminal - how do you do it please? :-)

There does exist the GUI for changing password. You have to install gnome-system-tools package and go to menu-applications-preferences and look up Users and Groups. But I also agree, the command line is the best way :)

Stefan

https://i.imgur.com/5yfIbd0.jpg

ondoho 10-16-2018 02:29 AM

Quote:

Originally Posted by serendipity7000 (Post 5914982)
Is there a way to do this without using the terminal please? I have set up a netbook with Bodhi for someone else and about to post it - they may want to change the username and/or password.

Or if it does mean using the terminal - how do you do it please? :-)

you're asking the wrong question!

i did this once with a Xubuntu install, and iirc it's called an "OEM install".
this will do exactly what you want:
  • install ubuntu
  • on first boot, some setup routines like choose username & password will run.

since bodhi is based on ubuntu, chances are this option is available in the installer.
https://help.ubuntu.com/community/Ub...aller_Overview

cordx 10-16-2018 02:42 AM

Quote:

Originally Posted by ondoho (Post 5915280)
you're asking the wrong question!

not op nor a linux master, but i had the very same question and think it is valid. while your approach at a solve also seems valid (though it would require an entirely fresh re-install), i'm sorry to read that you needed to state it in such a manner :/

ondoho 10-16-2018 03:49 AM

manner?
no offense was intended.
i'm sorry to read that you see so much negativity.

Stella456 10-16-2018 05:13 AM

I see the points! Yes I could reinstall and ask the new user what they want as username and password - but thought there might be another way as I set it up with all the basic software to just turn on and use :-)

Ah the gnome tools package. That might be the thing to do - will it cause any conflicts with other software? Also like the idea of forcing to choose a password when turning on. I agree the terminal is the best way - but some people are freaked by it if they haven't used it before.

I used "Me" as the username which is better than "User" I reckon! Even so people seem to instinctively want to personalise it.

the_waiter 10-16-2018 06:19 AM

Gnome stuff is OK as KDE, MATE, XFCE and other stuff is OK under Bodhi Linux. Those desktop apps are compatible. But yes, the account manager tool made under E/Moksha is missing. There is a personal project called Swami control by Jeff (the BL leader) but he lacks free time to continue. I think it could be a part of it.

Stefan

Stella456 10-16-2018 07:51 AM

Thank you. I'll check out the Gnome tools package :-) Personally though I like that Bodhi is so lean and simple and prefer using the terminal :-)

the_waiter 10-16-2018 08:40 AM

That's the goal of our distribution. To be lean and elegant :)

Stella456 10-16-2018 09:33 AM

It certainly is both - I love it :-) Fast as well.


All times are GMT -5. The time now is 12:03 PM.