LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 10-19-2017, 09:32 PM   #1
llewellen
Member
 
Registered: Oct 2016
Location: Vancouver Island, Canada
Distribution: Crunchbang++ Openbox
Posts: 401

Rep: Reputation: Disabled
Delete Admin User


Mint 18.1

System Settings>Users and Groups - added a new admin user.

Now I want to delete a previous admin user but the Delete button remains greyed out and inoperative even when that user is highlighted in the list of users.

What am I missing?
 
Old 10-20-2017, 12:21 AM   #2
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
You must (I think) add the new one first, then delete 100%not-in-use old.

I'm guessing the logic is: since root has no password, there would be no way to ever do sudo if the 1&only Admin gone.

Also, logout (or reboot) and make sure old isn't owning any process!!!

Btw, what about files owned by old uid?

Maybe trick-edit /etc/{passwd,shadow,?} Be ready to rescue-boot or enable root login, just in case here

Let us know if that's it!!! Edit: maybe not: https://askubuntu.com/questions/9310...admin-accounts

Last edited by !!!; 10-20-2017 at 12:43 AM.
 
Old 10-20-2017, 01:05 AM   #3
llewellen
Member
 
Registered: Oct 2016
Location: Vancouver Island, Canada
Distribution: Crunchbang++ Openbox
Posts: 401

Original Poster
Rep: Reputation: Disabled
OK, I restarted. Now, if I click on the new admin user I added, the Delete button becomes live and I could use it. However, when I click on the original admin user that was set up when I installed Mint 18.l, the Delete button remains greyed out and inactive.

This isn't a big deal, it's just my home computer and all I really wanted to do is change that original user's name.
 
Old 10-20-2017, 01:22 AM   #4
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
what's that first admin user's name? root? because i don't think you can delete that. ever. it's just how unix-like operating systems work.

also i must say, you shouldn't mess around with these things even though mint (irresponsibly) supplies a convenient gui for it.
 
1 members found this post helpful.
Old 10-20-2017, 01:27 AM   #5
llewellen
Member
 
Registered: Oct 2016
Location: Vancouver Island, Canada
Distribution: Crunchbang++ Openbox
Posts: 401

Original Poster
Rep: Reputation: Disabled
I understand that there has to be a root, but if that root user shouldn't be deleted, can its name at least be changed? BTW, Microsoft says don't touch it but I've never heard that from Linux users.
 
Old 10-20-2017, 02:29 AM   #6
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Oh, was it literally root? VeryVERY loosely think of root as the OS itself
Jeremy is "root" of LQ; there'd be NO lq if we delete him

The Spirit of Linux seems to be pushing you to spend a bit of DDGoo time
peeking at a little /etc/passwd 1st line (root) uid 0 beginner tutorial

I don't think you mean root; please confirm.
M$ doesn't have the username "root" as far as i know.
Changing root name would be like changing linux name to puzzle.
"LinuxPuzzle is better than M$Win. What LinuxPuzzle do you prefer?"

Last edited by !!!; 10-20-2017 at 02:46 AM.
 
Old 10-20-2017, 02:33 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by llewellen View Post
I understand that there has to be a root, but if that root user shouldn't be deleted, can its name at least be changed? BTW, Microsoft says don't touch it but I've never heard that from Linux users.
So don't touch that.
 
Old 10-20-2017, 02:54 AM   #8
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
admin is just an account's privilege to sudo, NOT a username (I think)

Quote:
Originally Posted by pan64 View Post
So don't touch that.
Don't touch Puzzle? Puzzle is fun to play in Package VirtualBox!!!
MyPuzzle comes without /etc/passwd, so
pan64joe can be made uid 0, for a fun=CLIonly Vworld.
Or maybe better not... But LQsearch does find FrankenPuzzleLinux!!!

Reality bottom-line, maybe there's a bugdesign_feature in Mint/UbuGUI/?
Where orig 1st='admin' user can never be deleted, maybe cuz of its initial home files.
Like: /home/joe (pwd in a terminal) So, just create the new username, like user,
And hopefully logging-in as new user (my choice of name for 1st ...)
works like joe did, right after original initial install.
(tho having user name user or anon or myname or "something" or ... is more confusing than joe or lwe etc... Plus can't pick nobody since it is in /etc/passwd already, as a special system uid)

Additional 'concept' note: tho Admin in M$ is more like uid0Danger,
think of 'admin' in Linux as just a MUCH safer just-priv-to-sudo;
root and admin being separate concepts, makes security 'natural'!
(which is probably? a good explanation, tho I can't find simple web refs)

There's a privilege to sudo called admin, but not literally a username admin. That causes the confusion!!!

Last edited by !!!; 10-20-2017 at 04:25 AM. Reason: Add some links; try the n't TL;dr!!!
 
Old 10-20-2017, 03:48 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I'm afraid it is not that simple. The keyword "root" is hardcoded somewhere deep inside ....
 
Old 10-20-2017, 04:18 AM   #10
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,483

Rep: Reputation: Disabled
If you deleted 'root', you wouldn't be able to use your Linux system!
It is the admin account.
 
Old 10-20-2017, 05:40 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Since Mint is based on Ubuntu root is disabled by default. As stated the user created during install is the "administrator" and has sudo privileges. I have never played with deleting the first admin user but did you login as the new user?
 
1 members found this post helpful.
Old 10-21-2017, 03:41 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Hi... I hope you don't mind this PM (you can always just delete it)
Here, https://www.linuxquestions.org/quest...6/#post5771910
my 1% knowledge of Linux fails me.... How might I: grep root mll.iso ?
(I prob should post ?, but ... mll is DistroWatch/mll or most any other distro)

I started by trying to unzip /boot/<various distro kernels> (for strings|grep root)
I need to web-research how to 'unpack' several ?pieces? in 'the /boot/...'
But do you have any brief magic words here?

My uneducated-guess/thinking is that the kernel doesn't know/have the string "root",
only uid numeric zero. Esp since the mll I love has NO /etc/passwd!!!

UNrelated curiosity (which I call RPN shell): have you ever seen:
>x ls ; <z cat
??? I'm guessing its only use would be: obfuscation & torturing CLIn00bs

Thanks in advance...
You ought to download the source and grep there. But you need to download (and grep) not only the source of kernel, but the sources of all the (system) tools also which may check if that was started as root or as normal user. Probably you are right, it was not hardcoded in the kernel itself.

From the other hand you may try to install a system - probably in a VM - and rename the root user to anything else (in /etc/passwd) and sooner or later you will see the consequences.
 
Old 10-21-2017, 03:54 AM   #13
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 !!!
How might I: grep root mll.iso
i'd say you need to mount the .iso first. then
Code:
cd mnt-dir
grep -R root
 
  


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
How to edit PAM DB of VSFTPD (..add user, delete user, change user password ) jsaravana87 Linux - Server 1 10-02-2012 08:49 AM
Non admin user to modify/delete the printer raghavendra.eranki Red Hat 2 03-05-2012 12:43 PM
Admin. Please delete. cwizardone Slackware 2 01-29-2011 12:20 PM
HELP! Delete myself from the admin group - UBUNTU Micro420 Linux - General 3 11-01-2006 06:33 PM
User admin and N/w admin on Gnome hangs ssrini *BSD 2 07-28-2005 07:55 AM

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

All times are GMT -5. The time now is 01:47 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
Open Source Consulting | Domain Registration