|
|
Can you enable root from the command line?
|
|
|
|
Mac Elite
Join Date: Feb 2002
Status:
Offline
|
|
Or do you have to do it only from the gui?
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2005
Status:
Offline
|
|
Enabling root amounts to just setting a password for the account. Thus ...
[Tom@Poopie]~: passwd root
Changing password for root.
password for Tom: [type your password here]
New password: [type a password for root here]
Retype new password: [repeat above]
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Feb 2002
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2005
Status:
Offline
|
|
Nope. If you think of all the ways possible to change a password for an OS X user account, then you've thought of all the ways to enable root.
For the command line, I can really only come up with "passwd". What is it that you need to do, exactly? Maybe I can find another way to do what you want.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2003
Location: 127.0.0.1
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally Posted by alphasubzero949
Why not just use sudo?
Yep, if your current user is an admin, use sudo passwd root. For the record, and anyone reading this after the fact, users in the "admin" group are allowed to issue commands with root's effective user id (id == 0) by typing in THEIR own password.
Code:
[theman@thefro: ~]$ sudo id
Password:
uid=0(root) gid=0(wheel) groups=0(wheel),1(daemon),2(kmem),3(sys),4(tty),20(staff),29(certusers),5(operator),80(admin)
See?
|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2005
Status:
Offline
|
|
"passwd root" > "sudo passwd root" ;-)
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally Posted by Tomchu
"passwd root" > "sudo passwd root" ;-)
A few less characters...
|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Feb 2005
Status:
Offline
|
|
If you need a root shell use sudo /bin/bash
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status:
Offline
|
|
Originally Posted by Tyler McAdams
Any other way?
Yes, there is a command line interface to NetInfo.
But enabling root is entirely unnecessary as there is sudo and su. I have never had a need to enable root.
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Nov 2001
Location: State of Denial
Status:
Offline
|
|
Originally Posted by __^^__
If you need a root shell use sudo /bin/bash
Or sudo -s .
|
[Wevah setPostCount:[Wevah postCount] + 1];
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Feb 2002
Status:
Offline
|
|
Originally Posted by Rainy Day
Yes, there is a command line interface to NetInfo.
But enabling root is entirely unnecessary as there is sudo and su. I have never had a need to enable root.
Excellent! That's exaclty what I'm looking for... how do you invoke it?
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
How do you invoke the command-line interface to Netinfo, you mean? It's niutil. If you're asking about sudo, you just type sudo followed by a command.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Feb 2002
Status:
Offline
|
|
niutill is what I meant. thanks!
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
There's also the dsenableroot tool.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|