Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello.
Is it possible to make a user like root? I mean is that when a user exist in "sudoers" file then for management task "sudo" must used but is it possible without sudo?
It's possible in theory. What makes root root is simply having a UID of zero. There's nothing magical about the name. And it is possible for more than one user to have the same UID.
But it would be a crazy thing to do imho and I suspect most people here would agree with me.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by hazel
...
But it would be a crazy thing to do imho and I suspect most people here would agree with me.
And of course you are absolutely correct, but we are dealing with someone who can't even do a simple web search. So I wouldn't be too concerned. I feel sorry for the people who's servers the OP is "managing"...
Hi,
To have multiple 'superusers' is living dangerously. I would even limit 'sudo' rights. One can have root privileges via 'su -' but that too can create administration nightmares. Admin should be handled by a single responsible root user so any changes can be tracked along with continuity for the systems. Injections by multiple 'root' can create mangled systems that will require someone to back things to normal.
Quote:
"Life's tough...It's even tougher if you're stupid." - John Wayne
I read once about a cracker (he called himself a "social engineer") who got into a company's server by phoning up the nightwatchman and asking him to "fix a minor problem" by entering the computer room and typing a line on the system console. It was something like:
I think - but I cannot prove it - the admin user must be root and uid must be 0. So not only 0 (zero) is exceptional, but the word root too. With other words a user which has non-zero uid and its name is not root may fail sometimes, somewhere.
From the other hand using two entries with the same uid is illegal, will confuse the user management system (= the system will never know which one actually is in use).
But again, I think, I cannot really prove it.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by pan64
I'm sorry, but I do not really understand what does it mean.
Sorry, I just didn't want to give the exact answer, so hopefully the OP learns to actually do web searches - yeah I know, wishful thinking on my part, but still...
Hint: you add to a user group... think what permissions that user group could have... (or what group that could be)
But it would be a crazy thing to do imho and I suspect most people here would agree with me.
If they're running ubuntu (or Mint), maybe. Most other distributions do have a real superuser (even Debian) and their managers do not use sudo at all.
In fact, in the about 25 years I've been using Linux, this is the first PC I even installed (and set up) the sudo command at all, all of my previous systems never used it.
And all "professional" systems have a real administrator who knows the root passwd and normal users do NOT have sudo rights. At the university all administrative tasks to student PC's were done remotely (through a deployment agent) and NO-one could become root at all (it had a random generated password) on those systems.
As you may have noticed I'm a (retired now) system manager for Linux on a (Technical) University (Delft) and I was the one that introduced Linux in our group when PC's become powerfull enough (that was about with the 486) to replace Unix workstations.
I was the administrator of those Unix (HP and Sun) workstations before that.
So I've been following the evolution of Linux in general and Slackware in particular since the early 1990's.
Hello.
Is it possible to make a user like root? I mean is that when a user exist in "sudoers" file then for management task "sudo" must used but is it possible without sudo?
Thank you.
Code:
sudo su
Boom, now as long as you keep the terminal open you are root....Install, delete, modify the system as you wish.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.