LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-02-2016, 10:48 PM   #1
worker
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 10:50 PM.
 
Old 06-03-2016, 01:23 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,682

Rep: Reputation: 116Reputation: 116
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, 02:08 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,203

Rep: Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675
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, 09:51 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,688

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
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, 11:06 AM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,627

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Quote:
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.

Quote:
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.

m.m.
 
Old 06-03-2016, 11:30 AM   #6
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,253
Blog Entries: 11

Rep: Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289
https://help.ubuntu.com/community/Sudoers

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 11:32 AM.
 
Old 06-03-2016, 11:45 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,151
Blog Entries: 4

Rep: Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717
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 11:50 AM.
 
  


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


All times are GMT -5. The time now is 10:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration