LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 10-15-2018, 07:30 AM   #1
serendipity7000
Member
 
Registered: Sep 2013
Posts: 112

Rep: Reputation: Disabled
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? :-)
 
Old 10-15-2018, 08:51 AM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,009

Rep: Reputation: 164Reputation: 164
I don't know how to do it outside of a terminal session; inside it's
Code:
passwd
or
Code:
vipw
.
 
1 members found this post helpful.
Old 10-15-2018, 08:58 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,484

Rep: Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453
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.
 
Old 10-15-2018, 09:29 AM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX
Posts: 2,346
Blog Entries: 5

Rep: Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038
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.
 
Old 10-16-2018, 01:46 AM   #5
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi
Posts: 74

Rep: Reputation: 11
Quote:
Originally Posted by serendipity7000 View Post
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 :/
 
Old 10-16-2018, 02:38 AM   #6
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 255
Blog Entries: 1

Rep: Reputation: 122Reputation: 122
@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.
 
Old 10-16-2018, 02:44 AM   #7
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 144

Rep: Reputation: 80
Quote:
Originally Posted by serendipity7000 View Post
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

Last edited by the_waiter; 10-16-2018 at 02:48 AM.
 
1 members found this post helpful.
Old 10-16-2018, 03:29 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,917
Blog Entries: 7

Rep: Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442
Quote:
Originally Posted by serendipity7000 View Post
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
 
1 members found this post helpful.
Old 10-16-2018, 03:42 AM   #9
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi
Posts: 74

Rep: Reputation: 11
Quote:
Originally Posted by ondoho View Post
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 :/

Last edited by cordx; 10-16-2018 at 06:19 AM. Reason: formatting
 
1 members found this post helpful.
Old 10-16-2018, 04:49 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,917
Blog Entries: 7

Rep: Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442Reputation: 2442
manner?
no offense was intended.
i'm sorry to read that you see so much negativity.
 
1 members found this post helpful.
Old 10-16-2018, 06:13 AM   #11
serendipity7000
Member
 
Registered: Sep 2013
Posts: 112

Original Poster
Rep: Reputation: Disabled
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.

Last edited by serendipity7000; 10-16-2018 at 06:14 AM.
 
1 members found this post helpful.
Old 10-16-2018, 07:19 AM   #12
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 144

Rep: Reputation: 80
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
 
1 members found this post helpful.
Old 10-16-2018, 08:51 AM   #13
serendipity7000
Member
 
Registered: Sep 2013
Posts: 112

Original Poster
Rep: Reputation: Disabled
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 :-)
 
1 members found this post helpful.
Old 10-16-2018, 09:40 AM   #14
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 144

Rep: Reputation: 80
That's the goal of our distribution. To be lean and elegant
 
1 members found this post helpful.
Old 10-16-2018, 10:33 AM   #15
serendipity7000
Member
 
Registered: Sep 2013
Posts: 112

Original Poster
Rep: Reputation: Disabled
It certainly is both - I love it :-) Fast as well.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete/Change Username and password fami1sa Linux - Newbie 8 01-07-2016 09:24 AM
change username and password CurtisMills Linux - Newbie 4 01-19-2014 06:54 PM
change mysql username and password on ec2 lamp ggalan Linux - Newbie 4 04-04-2012 08:43 PM
How to change username and password in Squint joms18 Linux - Newbie 1 01-28-2010 02:12 AM
Get/Change the username & password in a CUSTOM Ubuntu LiveCD tuxhats Ubuntu 0 10-18-2007 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration