The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > OS X (Apple)
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
switching user from root to ordinary user sasia Shell Programming and Scripting 3 01-25-2008 06:25 PM
Su to user from root nitin Shell Programming and Scripting 3 10-25-2006 12:21 AM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 09:18 AM
root user hassan2 UNIX for Advanced & Expert Users 1 05-29-2002 11:15 AM
Using telnet client from MacOSX's command line terminal tylerl UNIX for Dummies Questions & Answers 2 07-15-2001 07:05 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-26-2005
Registered User
 

Join Date: Jan 2005
Posts: 21
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Root user in MacOSX

Hello, Do you guys know how does the root user works in this system?

from the terminal i try to su to root, and i thought the password was the same as the macosx password, at the /etc/passwd file the passwd field appears as *, so it's system bussines only, is there a way to become root? i thought since i was the only user registered in the system i was kind of like root... guess not

thanks.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-26-2005
Registered User
 

Join Date: Dec 2005
Posts: 18
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Prefixing each command with sudo works well. Also, you only need to enter a password once per session.
Reply With Quote
  #3 (permalink)  
Old 01-07-2006
dsbeerf's Avatar
Registered User
 

Join Date: Dec 2005
Location: Chicago, IL USA
Posts: 58
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Re: Root User in MacOS X.

Gee, it's been a while since I did this.

Use the NetInfo Manager (in /Applications/Utilities). "Unlock" the access, and the system will ask you for YOUR password. You can then go th the columnar display, click on users, and the list of users will appear in the 'next-right' column. Click on root, and all the info on 'root' will appear in the bottom window. Double click on the field to the RIGHT of the 'password' label, which is the encrypted password for 'root'. CLEAR that field, and 'submit it' by hitting 'Return'. Then hit <Command>-S, to SAVE this new data. You can then open a terminal window, and "su -". A password will be asked for, and the 'Return' will be it. Change the root password to something secure by entering: "passwd root". This will NOW be the 'root password', and you will be able to login at the "login window" AS root, and "su"-ing in a terminal session will work as expected.
Reply With Quote
  #4 (permalink)  
Old 01-13-2006
Registered User
 

Join Date: Dec 2005
Posts: 18
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
I tried that, sudo still returns an incorrect password error.

running 10.4.4
Reply With Quote
  #5 (permalink)  
Old 01-13-2006
dsbeerf's Avatar
Registered User
 

Join Date: Dec 2005
Location: Chicago, IL USA
Posts: 58
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by cymon
I tried that, sudo still returns an incorrect password error.

running 10.4.4
This is because sudo != su. SUDO has it's own 'privileges file'. On MacOS X, this file is: /private/etc/sudoers

You MUST edit this file with 'visudo' AS root, to establish how you want sudo to behave.

So, first go HERE in your browser:
http://www.almaren.org/tmp/sudoers.sample

Then, with the file in your browser as a guide enter (in a terminal window):
'su -' <return>
visudo <return>

You will then have an *example* reference 'sudoers' file in your browser, and be editing the 'sudoers' file in a terminal window.
The sample 'sudoers' file, in your browser, will help you set up your 'sudoers' file that you are editing.

Last edited by dsbeerf : 01-13-2006 at 01:51 PM.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 08:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102