LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 09-11-2015, 01:28 PM   #1
Cegar31
LQ Newbie
 
Registered: Sep 2015
Location: Costa Rica
Distribution: Linux Lite 2.6 LTS, 4MLinux 13.1 Stable, Ubuntu 15.04 LTS, Puppy Linux 5.2.8, Lubuntu 15.04 LTS.
Posts: 27

Rep: Reputation: Disabled
Change the "Root" Username


How to change the username? "root" is default.
And, I want to change it.
 
Old 09-11-2015, 01:45 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Leave root it is the system administrator.

DO NOT try to change it.

DO NOT try to delete it.

Add a new user via the useradd command.
 
1 members found this post helpful.
Old 09-11-2015, 01:54 PM   #3
Cegar31
LQ Newbie
 
Registered: Sep 2015
Location: Costa Rica
Distribution: Linux Lite 2.6 LTS, 4MLinux 13.1 Stable, Ubuntu 15.04 LTS, Puppy Linux 5.2.8, Lubuntu 15.04 LTS.
Posts: 27

Original Poster
Rep: Reputation: Disabled
How to do it?
 
Old 09-11-2015, 01:58 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by Cegar31 View Post
How to do it?
Add a new user via the useradd(8) click on the link command.
 
Old 09-11-2015, 02:44 PM   #5
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Rep: Reputation: 220Reputation: 220Reputation: 220
Please leave this root alone. You are able to add a new user in the way described by @rtmistler, but you would also have to grant privileges to this new user. It's not easy when you must do it with BusyBox.

PS.
4MLinux automatically creates users (and sets their privileges) for server software and some desktop applications (e.g. Chrome).
 
1 members found this post helpful.
Old 09-11-2015, 02:56 PM   #6
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,256

Rep: Reputation: 220Reputation: 220Reputation: 220
Oops!
There is no "useradd" applet in BusyBox. The "adduser" applet must be used instead.
 
1 members found this post helpful.
Old 09-11-2015, 02:59 PM   #7
Cegar31
LQ Newbie
 
Registered: Sep 2015
Location: Costa Rica
Distribution: Linux Lite 2.6 LTS, 4MLinux 13.1 Stable, Ubuntu 15.04 LTS, Puppy Linux 5.2.8, Lubuntu 15.04 LTS.
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zk1234 View Post
Oops!
There is no "useradd" applet in BusyBox. The "adduser" applet must be used instead.


Thanks!
 
Old 09-11-2015, 03:18 PM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by zk1234 View Post
Oops!
There is no "useradd" applet in BusyBox. The "adduser" applet must be used instead.
Reason #237 for "Why I hate Busybox"

OK I'm exaggerating.

Honestly over recent years I've given it some thumbs up because it's seemed to have improved and really followed the system commands way better. Example years ago things like ls, or grep did not adhere to the real system calls and hence if you used them in a script you could not use certain features, sometimes the very features you needed. But that was like 10+ years ago and I've encountered it on systems and found it to be improved.

Good detection zk1234! I'm disappointed that they felt necessary to swap the command name around though.
 
Old 09-12-2015, 09:56 AM   #9
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
They didn't just swap the name around. Useradd and adduser do things differently. Adduser is easier to use, since it's interactive and does more and better housekeeping. Useradd isn't used as much these days, AFAICT. I haven't bothered with it in years.
 
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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Stop bash from replacing "~" with "/home/username" when TAB is pressed dedec0 Linux - Software 3 06-04-2015 01:24 PM
please jeremy, can you change my username to "fbov" ? fbov LQ Suggestions & Feedback 6 07-18-2014 09:47 PM
Can not change user to root with "su" or login as root anymore d1s4st3r *BSD 3 05-05-2010 07:43 AM
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

All times are GMT -5. The time now is 03:27 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