BodhiThis forum is for the discussion of Bodhi Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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? :-)
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.
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.
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 :/
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.
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
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.
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 :/
Last edited by cordx; 10-16-2018 at 05:19 AM.
Reason: formatting
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.