1832184 Members
3045 Online
110038 Solutions
New Discussion

Root Account ID

 
H S Z
Regular Advisor

Root Account ID

I want to create an account with root privileges in tru64 unix. Can anyone help or Does anyone have an idea of the Root Account ID?

thanks
5 REPLIES 5
Ann Majeske
Honored Contributor

Re: Root Account ID

As in most versions of UNIX, the root account is the account with uid 0 and username root. This is the only account with privileges and it is created automatically when you install the system.

My question is why do you think you need an account with root privileges and what are you planning on doing with it?

If your problem is that you inherited a system and you don't know the root password, you can boot the system to single user mode:
>>> b -fl s
mount the filesystems:
#bcheckrc
and change the root password
#passwd

If you want to give one or more users some or all of the root privileges yet keep them individually identifiable for auditing purposes there are several ways to accomplish this.

1) If all you want is accountability, give each user that will have root privileges the root password. Have the user log in as themselves first, then do a su to root when they need root privileges.

2) Depending on what version you're using, you can use the dop utility to give the user privileges. There have been several messages in this forum recently about dop, you can search for them to get more info.

3) There is a freeware utility called sudo that you can also use to give users the privileges. You can also search this forum for references to sudo.

Ann
Ravi_8
Honored Contributor

Re: Root Account ID

Hi,

if you create an account with uid as 0 that account can be used as root.
but it is not advised, you can use sudo to perform the same.
never give up
Mark Grant
Honored Contributor

Re: Root Account ID

This might be a subtle, and perhaps pointless addition to the answers above but it is worth noting that setting an id of 0 doesn't give the account root priviledge. An account with an id of 0 IS root. Regardless of what name it has.
Never preceed any demonstration with anything more predictive than "watch this"
Ralf Puchner
Honored Contributor

Re: Root Account ID

normally you create a user and add them to the group file under the section "system".
So he/she can use the "su" command if necessary.

Another approach is to set the "S" bit on programs which must be run with root-privileges.
Help() { FirstReadManual(urgently); Go_to_it;; }
Mohamed  K Ahmed
Trusted Contributor

Re: Root Account ID

You can just add any user to the group "system" . Then they will have the root username privilages, and they can su - root also

Mohamed