is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account
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.
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account
Hi,
relatively new to linux. Managed to bring to life Debian sid server and socialise in UNIX way. 23, from Slovenia.
Before doing any damage to my stable unstable, please clear me the subject. Can it be done?
Idea is for security reasons. Mysqlf won't publish program to egrep and replace root in every source.
It would be a fleck in UNIX to do that.
Maybe I am just to try, would some say. But then, this post never went online...
Regards,
Benjamin
_
Homo Sapiens + UNIX linux = Unimo Lapiens, from Opensource
By the way, BinJajer is right. You can't make another user be root, and you don't WANT to hack a workaround to make it happen. It's a Bad Idea. If you need root access make your user a sudoer and use sudo, or do what BinJajer said. Or, log in as root when absolutely necessary.
On a networked computer there is absofudginglutely no reason whatsoever to make another user the same as root. If the issue is you want "root" to be named something else, just edit the name of "root" to something else in /etc/password - keeping in mind that some programs may be hard coded to the root username rather than the uid (which would be the epitome of stupidity, but I digress. . . )
And:
I'm not certain I understand what you're up to; if it's your
own machine there's no problem to create another account with
uid 0; I fail, however, to see how that would be beneficial to
your systems security. The only "secure" thing is to operate
the machine as a normal (non-privileged) user and use either
sudo or su - (su -c maybe) to do admin tasks.
If the machine ISN'T yours there's obviously no way for it to
be legitimate.
The creation of such an account as such won't damage the installation;
however, it poses an extra risk, specially if you happen to use
that account for day to day work, and that's for two reasons:
1) You yourself are a threat; accidental deletion of directories
or even changes to ownerships/permissions while using that account
can render your system unusable;
2) If you happen to use a piece of software that has an exploit you're
unaware of the person controlling the machine at that time will have
root privileges, which is the opposite of what you wanted to achieve.
I think he might be trying to rename root to something non-obvious to make cracking the box a little less (edit: I meant more difficult. Sorry about that.) difficult.
Renaming root to xv897897jklbinjarerisnowroot888907 would surely make the box uncrackable . Messing with the root account is very dangerous. Take my word. Yesterday, I accidentally deleted my startx script. If I hadn't had SLAX on hand, I'd be in much trouble.
Thanx for your advices |& oppinions. Helped me a lot so now I can concentrate on something more usefull than renaming root. Surely I will use su - as proposed.
Regarding long thread title, I'll try to be more compact in the future
Tinkster, you dont't know how great it is to find Zdravo or Živjo.
_
Homo Sapiens + UNIX linux = Unimo Lapiens, from Opensource
Ok, tis will be a spoiler, but coud you translate this
Zdravo or Živjo to your slavian neighbour? I sure hope it means smoething else than in Polish...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.