nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Enable Root Account Apple OSX 10.6

This is a discussion on Enable Root Account Apple OSX 10.6 within the Getting started tutorials forums, part of the Linux Getting Started category; Hey all, Per my job requirements I need to tie myself via the /etc/hosts file to check sites on specific ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 18-12-2009, 05:16 AM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Scripting language: BASH - Learning Ruby
Posts: 604
Thanks: 61
Thanked 80 Times in 72 Posts
Rep Power: 10
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default Enable Root Account Apple OSX 10.6

Hey all,
Per my job requirements I need to tie myself via the /etc/hosts file to check sites on specific servers. The reason for this is multiple mirrored web servers. As root on linux this is easy. Become root and edit the /etc/hosts file. On OSX you need to enable root account first.

E.G. of tying to server for webpage.
Code:
192.168.1.1 www.sitename.com
Without root/sudo access you will get:
Code:
-- INSERT -- W10: Warning: Changing a readonly file
Follow these steps to use the root account.

NOTE!!!!! root is dangerous. You can use sudo vi /etc/hosts

Code:
1. From the Apple menu choose System Preferences....
From the View menu choose Accounts.

2. Click on the lock and authenticate with an administrator account.

3. Click Login Options....

4. Click the "Edit..." button at the bottom right

5. Click the "Open Directory Utility..." button.

6. Click the lock in the Directory Utility window.

7. Enter an administrator account name and password, then click OK.

8. Choose Enable Root User from the Edit menu.

9. Enter the root password you wish to use in both the Password and Verify fields, then click OK.
You can now edit you /etc/hosts file as root as well as perform other root tasks on BSD/OSX.


HTH,

jaysunn
__________________
Have a look at what I have been working on
http://www.shellasaurus.com

Last edited by jaysunn; 18-12-2009 at 05:19 AM.
Reply With Quote
  #2 (permalink)  
Old 18-12-2009, 09:29 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Nice hack! I was getting rid of this by running
Code:
sudo -s
BTW, just upgraded my mabook to 10.6
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Enable root to enter gui in fedora 10 solom018 CentOS / RHEL / Fedora 0 11-04-2009 09:52 PM
Apple Mac Login To Linux Application Server amanuensis Linux software 2 26-11-2008 11:37 PM
How to lock the root account? if password is wrong arulkumar CentOS / RHEL / Fedora 2 24-07-2008 06:03 PM
root account is disabled rohithananda CentOS / RHEL / Fedora 2 25-06-2008 06:14 PM
howto enable kde root login asim.mcp Linux software 1 07-09-2006 04:26 AM


All times are GMT +5.5. The time now is 06:33 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38