Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-02-2016, 11:48 PM   #1
LQ Newbie
Registered: Mar 2012
Posts: 7

Rep: Reputation: Disabled
Superuser deleted after software installation

I would like to know what's behavior if I delete a superuser account which use to install software after the installation. Can I still execute the software? and it can execute as superuser privilege?

Last edited by worker; 06-02-2016 at 11:50 PM.
Old 06-03-2016, 02:23 AM   #2
Senior Member
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,851

Rep: Reputation: 132Reputation: 132
You need the Sysadmin account.
For sysadmin tasks.
Software usually need no superuser privilegs to be executed.

You should use a secure password for that.
Old 06-03-2016, 03:08 AM   #3
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,795

Rep: Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888Reputation: 2888
where did you delete it from? Why didn't you restored it? Whithout root account the host will be useless (sooner or later). What kind of software is it? Some of them need root account, others work with their own ones or takes the account of the actual users.
Old 06-03-2016, 10:51 AM   #4
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,713

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
The root account exists:

1. establish ownership of system files.
2. update the system
3. configure the system
4. establish a security plan
5. used to start privileged services (sshd, change passwords, login, resource/quota accounting...)

If the system is carefully configured, it will work just fine without a root account... But without that "carefully configured" effort, you will not be able to configure it. At this point, think of the system as an embedded device, with only user access. You can't configure it, you can't update it....
Old 06-03-2016, 12:06 PM   #5
Senior Member
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Can I still execute the software?
Most software/application/program do not need to run as "root". They are always meant to execute by simple "user" account.

and it can execute as superuser privilege?
Only a super-user can execute a super-user (root) privilege. We do not use the term "super-user" here: superman exists only in other worlds. In unix/Gnu/Linux parlance we use the term "root". Some X managers or desktop environments do not allow root login in "X" or GUI level. However, as always, you can login as "root" in run-level 1. There, using the command useradd and groupadd, you can create a user or users (as many as you can) with a set-user-root privilege (sudo or su or gksudo, etc.) an account endowed with root privilege even while running in X. If you need further clues how to do this you may post it here.

Pay attention to pan64 and jpollard's comments above because these are fundamental principles.

Hope that helps. Good luck.

Old 06-03-2016, 12:30 PM   #6
LQ 5k Club
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,576
Blog Entries: 15

Rep: Reputation: Disabled

The short answer is a host can have more than 1 superuser.
Deleting a superuser will not prevent the programs they installed from running, if installed correctly, or through a package manager.

Last edited by Habitual; 06-03-2016 at 12:32 PM.
Old 06-03-2016, 12:45 PM   #7
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,629
Blog Entries: 4

Rep: Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999
Actually, I distinguish between vendor-supplied software, and local software which is installed by (sometimes, "written by") the system's local community of users.

I set up an account, perhaps called maint (yeah, I'm an old VM/370 guy ...), which is responsible for ... and which owns ... directories such as /usr/local.

It is important that software which is "in a public place" must not be modifiable by the people who are intended to use it. Thus, the "local" applications are installed by, and thereafter owned by, this user ... which is not privileged, and which cannot issue the sudo command. This protects the software from modification ... intentional, or by "oopsie!"

Incidentally, my "ordinary user" accounts do not have the ability to issue sudo. "Yes, I own a Captain Marvel suit, but my name is not Billy Batson, and I nothing happens when I say, 'Shazam!' "

Last edited by sundialsvcs; 06-03-2016 at 12:50 PM.


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
How can I restore a deleted /etc directory from installation disks? mikecoates Linux - Software 4 03-28-2006 05:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:28 AM.

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