LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-24-2002, 03:24 AM   #1
ishwar
LQ Newbie
 
Registered: Oct 2002
Location: Bangalore
Distribution: Red hat Linux
Posts: 6

Rep: Reputation: 0
User rights like "ROOT"


Hi Guys,

Can I creat the User same as ROOT, which can access all the Linux resource.

Plz guide me..

Thanks.
 
Old 10-24-2002, 04:15 AM   #2
ferrous
LQ Newbie
 
Registered: Dec 2001
Location: Atlanta
Distribution: Slackware
Posts: 16

Rep: Reputation: 0
I think that if you just create a new user of any name you want but specify uid = 0 and gid = 0, you should be fine.
 
Old 10-24-2002, 08:23 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally posted by ferrous
I think that if you just create a new user of any name you want but specify uid = 0 and gid = 0, you should be fine.
That's a bad idea and only mess things up even more.

And for ishwar, I would advise against having a user with all the same access as root. You want to look into sudo or something along those lines. Or just do it the safe way if you really need root access, just su to root.
 
Old 10-24-2002, 09:33 AM   #4
BehMershal
LQ Newbie
 
Registered: Aug 2002
Location: Australia......mate
Distribution: Mandrake
Posts: 19

Rep: Reputation: 0
Why don't you just change to root when you have to do whatever you have to do? Otherwise, su is definately the best way......either that, or changing to a different virtual terminal or something. Having another user with root permissions is bad practise!
 
Old 10-25-2002, 03:21 PM   #5
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Rep: Reputation: 30
What about adding a user same as root and then deleting the root account. Not sure if that would mess things up, but gives hackers a hard time since they would be trying root.
 
Old 10-25-2002, 03:48 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
How about we just give them the correct way of doing it and tell them to setup a regular user along with sudo setup, or just su to root when needed.

Creating a user with all of root's access is a bad idea, bottom line. And its a bad idea to remove root from the system. Come on people, give good advise or don't reply at all.
 
Old 01-01-2003, 07:56 PM   #7
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Rep: Reputation: 15
im not trying to be rude or anything i just dont understand, why would it be a bad idea to revome root if you have another user with all of roots user settings?
 
Old 01-01-2003, 08:16 PM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Quote:
Originally posted by blither
im not trying to be rude or anything i just dont understand, why would it be a bad idea to revome root if you have another user with all of roots user settings?
Mostly because of the amount of work it would take to reconfigure the entire system, (not to mention the security issues), and we already have two tools designed to allow people who know the root password to attain root rights when needed, "su" and "sudo".
 
Old 01-01-2003, 11:34 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
blither, take a look at things like /sbin and most of the files on your system actually. Most of them will be owned by root. If you did change, you'd have to reown everything to this new user, amongst many other things. It really wouldn't be worth it, after all, if a cracker finds out your root password, they don't also have to know the root username. su - and enter roots pass and they are in.

It's security by obscurity, and that's no security at all. You give yourself a false sense of security with something like that. The work involved would be great, for little to no good out of it.

A better idea is to frequently change root's password, or make it so damn hard to figure out, that it wouldn't be worth the time and effort.

Cool
 
Old 01-02-2003, 03:12 PM   #10
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
Actually, adding another user with uid 0 and gid 0 (although stupid)
wouldn't damage anything. The ownership of files isn't done by username,
but by id. ls just translates the uid/gid to username/group.
For example, at work we have an appliance that is just a disk writer
(CD/DVD). To access the cdrecord program from a networked computer,
I've written a script to log into the appliance as a specific user. When
that user logs in, a Perl script is run and presents the user with a menu for
burning CDs/DVDs. I also want to be able to edit the Perl script as
someone other than root, so I've got another username with the same
uid/gid but a different login shell. So, I can log into the appliace as the
admin user and edit the Perl script that is the login shell for the other user.
I don't have to worry about permissions or anything like that, since the
filesystem recognizes these two users as one, and I don't have to log in as
root and fix the ownership of the file every time.
 
Old 01-02-2003, 06:55 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
That's pretty cool, and useful too. Thanks moses, it's one of those things that knowledge is power, and can be used to do great things, or terrible things. LIke the force.

I don't know if I've already asked you, but are you aware of affero? You should sign up?
http://www.linuxquestions.org/questi...threadid=37249
http://www.linuxquestions.org/questi...threadid=36418
http://www.linuxquestions.org/questi...threadid=25730

I've tried to comment for you a couple times, but it appears you haven't signed up.

Cool
 
Old 01-03-2003, 10:56 AM   #12
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
I'm signed up. I guess the button link doesn't point to the same place
as the link in my .sig. . . Hmmm. . . I guess I should figure out how
to fix that. Any ideas?

Nevermind, I just read the relevant post. I hadn't realized (though
I should have) that I needed to add my affero username to my
profile. . . Got it now. =-}

Last edited by moses; 01-03-2003 at 11:01 AM.
 
Old 01-03-2003, 06:04 PM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Thanks. I finally was able to affero you!

Cool
 
Old 01-04-2003, 09:11 PM   #14
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
Thanks dood! =-} I do the best I can. . .
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what can i do with this promt"user machbuild does not exist - using root" wucheng Linux - Newbie 2 01-17-2011 07:41 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
user rights for harddrives, writing only in "My documents"? Tentacle Linux - General 3 12-02-2005 08:54 AM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 02:11 PM
User Login Problem: "command not found" unless root! DreameR-X Linux - General 15 12-21-2004 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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