LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-26-2008, 07:46 AM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
Can the root user be deleted by webmin?


I have setup a server (slackware 12.0) for one school. There are lot of users and the teachers want to admin the users. Adding users, deleting users.
I set up webmin on it, and limit the users rights for user and group administration only. But I see that the root user can be selected for deleting and the password can be changed too.

I didn't try it but, it is possible that when I select the root user I can delete it. And the password can be changed just by typing new password without the knowledge of old??

Maybe it is a stupid question, but I am affraid that some clever teacher will try this option.

Last edited by hua; 08-26-2008 at 07:47 AM.
 
Old 08-27-2008, 03:36 AM   #2
SwellJoe
LQ Newbie
 
Registered: Jun 2007
Posts: 14

Rep: Reputation: 0
If the user is logged in as a root-level administrator, of course they can delete or modify the root user. How could you expect anything else?

That said, Webmin has an extremely flexible and powerful access control system with users, groups, and ACLs.

What you want to do is create a new group that is limited to only editing users of a certain UID range, and then create all of your professor accounts as members of that group.

This is documented pretty well in the Webmin docs here: http://doxfer.com/Webmin/WebminUsers

If, after reading that, you have any question, feel free to follow up with more questions.
 
Old 09-05-2008, 03:05 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
Yes, thats exactly what I need.
I already set up (with help of that documentation) different accounts for each teacher who can admin the accounts of there students.

Quote:
If the user is logged in as a root-level administrator, of course they can delete or modify the root user.
How could you expect anything else?
I just thought that this action will be somehow denied, because I don't see any logical circumstance when the root user should be deleted. I don't even imagine what it can cause if deleted.
 
Old 09-05-2008, 07:33 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
Originally Posted by hua View Post
I don't even imagine what it can cause if deleted.
You end with a shell prompt like "I have no name!@hostname#" (don't ask me how I know )

But nothing a Live CD (or Slackware install DVD/CD) can't fix (just update /etc/passwd in the mounted / partition)

Last edited by keefaz; 09-05-2008 at 07:36 AM.
 
Old 09-07-2008, 02:04 PM   #5
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by keefaz View Post
You end with a shell prompt like "I have no name!@hostname#" (don't ask me how I know )
As if we don't already know....
 
Old 09-07-2008, 10:12 PM   #6
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Quote:
But nothing a Live CD (or Slackware install DVD/CD) can't fix (just update /etc/passwd in the mounted / partition)
This begs the doubt: are LiveCDs security threats in an otherwise secure environment? Should organizations prevent employees from using LiveCDs and/or USB sticks at work?
 
Old 09-07-2008, 10:22 PM   #7
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
That's why in important PCs you password protect the BIOS and prevent the CD/DVD drive from being bootable. Easy fix. You could also encrypt the partition.
 
Old 09-08-2008, 02:41 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Anyone who has physical access to the computer can be a security threat. Even BIOS passwords can be worked around.
 
Old 09-08-2008, 05:08 AM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
gnashley is right! I remember when I worked as network assistant, there was an IT "engineer" who argued that windows nt passwords were not reset-able, you should have seen his face when I booted from a special linux floppy and reseted the admin password in less than 2min
http://home.eunet.no/pnordahl/ntpasswd/
 
Old 09-09-2008, 05:00 PM   #10
SwellJoe
LQ Newbie
 
Registered: Jun 2007
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by hua View Post
I just thought that this action will be somehow denied, because I don't see any logical circumstance when the root user should be deleted. I don't even imagine what it can cause if deleted.
Logic does not apply to root. root has absolute power over the system.

If you were assuming that root in Webmin is somehow safer than a root login in a shell, it's probably wise to pause in your plans until you've gotten a better grasp on Webmin. A root-level Webmin login is every bit as dangerous (and very nearly as powerful) as a root-level shell. Would you ask if a root-level shell login could delete the root user? (The answer is, of course, "yes, a root-level shell user can delete the root user", thus the same is true of a root-level Webmin user.) ;-)

That's why other accounts can be created, and with arbitrary limits on their powers. Webmin's ACLs are more flexible than standard UNIX permissions, so you can safely use Webmin in ways that a shell account could not be used. User management, for example, is extremely flexible in Webmin, and you can restrict particular accounts to only managing a range of UIDs or other characteristics.
 
Old 09-10-2008, 09:11 AM   #11
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
Quote:
A root-level Webmin login is every bit as dangerous (and very nearly as powerful) as a root-level shell
Good point, I didn't think about the root user of webmin that way.

Quote:
it's probably wise to pause in your plans until you've gotten a better grasp on Webmin
Yes, after the first post I checked out the webmin user administration section (carefully), and now I set up for another user admins an UID range which can they manage.
It is very well designed...
 
  


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
Webmin: where do deleted files go? librano Linux - Server 3 10-03-2007 08:01 AM
[phpMYAdmin] Problem ! Help. I''ve deleted root user in MYSQL combilli Linux - Software 1 12-07-2006 01:30 PM
I deleted my root user... patdawg Linux - Newbie 18 03-29-2006 04:15 PM
Deleted user Root? legendaryfox Linux - Software 4 01-09-2005 01:12 PM
Deleted root user france Linux - Newbie 1 04-30-2004 06:57 AM

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

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