LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 06:30 AM   #1
Stella456
Member
 
Registered: Sep 2013
Posts: 219

Rep: Reputation: 82
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, 07:51 AM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,971

Rep: Reputation: 271Reputation: 271Reputation: 271
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, 07:58 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
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, 08:29 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,603
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
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, 12:46 AM   #5
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
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, 01:38 AM   #6
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
@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, 01:44 AM   #7
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 864

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
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 01:48 AM.
 
1 members found this post helpful.
Old 10-16-2018, 02:29 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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, 02:42 AM   #9
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
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 05:19 AM. Reason: formatting
 
1 members found this post helpful.
Old 10-16-2018, 03:49 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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, 05:13 AM   #11
Stella456
Member
 
Registered: Sep 2013
Posts: 219

Original Poster
Rep: Reputation: 82
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 Stella456; 10-16-2018 at 05:14 AM.
 
1 members found this post helpful.
Old 10-16-2018, 06:19 AM   #12
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 864

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
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, 07:51 AM   #13
Stella456
Member
 
Registered: Sep 2013
Posts: 219

Original Poster
Rep: Reputation: 82
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, 08:40 AM   #14
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 864

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

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


Reply



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 08:24 AM
change username and password CurtisMills Linux - Newbie 4 01-19-2014 05:54 PM
change mysql username and password on ec2 lamp ggalan Linux - Newbie 4 04-04-2012 07:43 PM
How to change username and password in Squint joms18 Linux - Newbie 1 01-28-2010 01:12 AM
Get/Change the username & password in a CUSTOM Ubuntu LiveCD tuxhats Ubuntu 0 10-18-2007 09:32 PM

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

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

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
Open Source Consulting | Domain Registration