LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 05-09-2007, 01:25 PM   #1
officecase
Member
 
Registered: Jan 2007
Distribution: Centos, ArchLinux
Posts: 38

Rep: Reputation: 17
Alias name for user root?


Is it possable to create another username for the root account?
I know I can create a new user and put him in the root group.
And use the su or sudo to give me root power.

But I am looking to create another username for the root account to log in as, but still be the root user.

Does that make sence?

Kinda like in samba where you can define a user as

root= admin administrator support
 
Old 05-09-2007, 01:28 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
no, not possible to have uid 0 associated with more than one user... well actually i guess you could manually add an entry to /etc/passwd, but there's no way that will end well... can you explain your motiviations for wanting to do such an ugly thing?? you're already aware of su and sudo, so i'm lost...
 
Old 05-09-2007, 01:48 PM   #3
officecase
Member
 
Registered: Jan 2007
Distribution: Centos, ArchLinux
Posts: 38

Original Poster
Rep: Reputation: 17
I know this is going to sound bad, maybe funny. It is the inconvenience of using su, and having to keep entering the root password for all root only programs. I would like just an alias name for the root account to log into. I am using a program NXServer. It will not allow me to VNC to the box as root. I am currently trying to bypass that. One way I thought was just to create an alias name, and then I could login as a userx but still be using the root account.

I know all the other VNC servers will let you login as root. I am just trying this program out. Easy to use and a snap to set up. I just don't like the root restriction.
 
Old 05-09-2007, 02:04 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
that's really no justification. if you want an undesirable but logcally sound alternative, just use sudo. if you run something like "sudo /bin/bash" then that will spawn you a root shell by verifying your normal user only. a big security risk if so configured, but that's your call really.
 
Old 05-09-2007, 02:35 PM   #5
MOS JEFF-INITELY
Member
 
Registered: Sep 2006
Distribution: Windows .. MUAHAHAHA
Posts: 66

Rep: Reputation: 15
yes it is possible, you will need to add the user to the root wheel group:

by adding a normal user to the root wheel group it will make it an alias of super user.
try this:

open /etc/passwd
change:
user:x:123:324::/home/user
to
user:x:0:0::/home/user
 
Old 05-09-2007, 02:55 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
anything preventing a root login will, if coded correctly, block access to uid 0, not the word "root".
 
Old 05-09-2007, 02:56 PM   #7
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
Quote:
Originally Posted by MOS JEFF-INITELY
yes it is possible, you will need to add the user to the root wheel group:

by adding a normal user to the root wheel group it will make it an alias of super user.
try this:

open /etc/passwd
change:
user:x:123:324::/home/user
to
user:x:0:0::/home/user
is he meaning removing the root account and replacing it with the alias??
if yes, then that will still have the root account and just have another user account pointing to the root account
 
Old 05-10-2007, 12:58 PM   #8
officecase
Member
 
Registered: Jan 2007
Distribution: Centos, ArchLinux
Posts: 38

Original Poster
Rep: Reputation: 17
acid_kewpie is right it appears that it is blocking UID 0. MOS JEFF-INITELY thanks for the alias fix. That might come in handy later. I guess I will have to try and tweak the program, or maybe go back to tightVNC. Or.... I guess I could chown all the files owned by root and give the group root read and write. Put my user in the root and wheel group. Then could I just create an alias in .bashrc so when I open a terminal I am automatically the root?

Thanks again for all the help.
 
Old 05-10-2007, 01:00 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
yeah.. who needs best practises and good security....
 
Old 05-10-2007, 02:38 PM   #10
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 781
Blog Entries: 8

Rep: Reputation: 157Reputation: 157
Not good. You're eventually going to get yourself into trouble, as there are several reasons why *nix is designed this way.
 
  


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 05:27 PM
alias specific to a user - or is that possible? wahooee Linux - Newbie 1 04-27-2006 03:14 PM
create alias for root powah Suse/Novell 1 04-25-2005 01:19 PM
Gnome Profiles for User Alias pymehta Linux - Software 0 06-12-2004 06:06 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM


All times are GMT -5. The time now is 07:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration