Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > need help with superuser

need help with superuser
Thread Tools
krimsen
Fresh-Faced Recruit
Join Date: May 2004
Location: Paderborn, Germany
Status: Offline
Reply With Quote
May 23, 2004, 08:48 AM
 
hi!

i'm new to macos, and i need some help from you guys: i opened a terminal and tried to do a "su". i entered the "computer password" which i chose during installation, but it didn't accept it. so i wonder what password is the terminal expecting?

krimsen
     
Angus_D
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
May 23, 2004, 09:04 AM
 
There is no such thing as a "computer password", the password you entered during installation is your account password.

By default, the root account in OS X is disabled. However, any "admin" user can execute commands as root using the "sudo" command. If you really need an interactive shell, use "sudo -s" but I wouldn't recommend it.

If you really want to enable root, you can do so by "sudo passwd" or from the NetInfo Manager application. See the Mac OS X help for more instructions.
     
krimsen  (op)
Fresh-Faced Recruit
Join Date: May 2004
Location: Paderborn, Germany
Status: Offline
Reply With Quote
May 23, 2004, 09:36 AM
 
well, when i installed os x, it asked me to enter a computer password, which i thought to be the equivalent to the root password in unix. obviously, that was something different... but thanks for the reply.
     
krimsen  (op)
Fresh-Faced Recruit
Join Date: May 2004
Location: Paderborn, Germany
Status: Offline
Reply With Quote
May 23, 2004, 09:37 AM
 
oh, i forgot, the sudo wants a password as well, and whichever i enter is wrong. i double-checked each password, and they're all correct. i'm pretty sure i have set up my only user account to have admin rights.
     
larkost
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
May 23, 2004, 11:25 AM
 
sudo is looking for your account password. It is a method of allowing different accounts to have different administrative rights, and can be quite complex. The default unix method of setting up the rights is to allow everyone who is in the 'wheel' group the rights to do everything (that root can do) with a password.

I would check your caps lock key... and ten go into System_Preferences:users, and make sure your user is an admin...
     
alphasubzero949
Mac Elite
Join Date: Jan 2003
Location: 127.0.0.1
Status: Offline
Reply With Quote
May 24, 2004, 05:24 AM
 
If you don't understand the difference between sudo and su or know which password is which (hence your usage of "computer password" as opposed to admin and superuser passwords), then you shouldn't bother with those commands.
     
Millennium
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
May 24, 2004, 06:51 AM
 
The root account in OSX is disabled by default. The "computer password" you're being asked for is the password to the first account, which is an Administrator (write access to /Applications and /Library, plus it can use sudo for anything) but isn't actually root.

You can activate the root account, simply by giving it a password in NetInfo Manager, but I wouldn't recommend doing it. The only times you would ever need to log in as root would be to change the background and screennsaver for the Login screen. Logging in as root for any other purpose does more harm than good; use sudo instead.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
theolein
Addicted to MacNN
Join Date: Feb 2001
Location: zurich, switzerland
Status: Offline
Reply With Quote
May 24, 2004, 08:41 AM
 
Originally posted by krimsen:
oh, i forgot, the sudo wants a password as well, and whichever i enter is wrong. i double-checked each password, and they're all correct. i'm pretty sure i have set up my only user account to have admin rights.
It might be your usage of sudo that's causing the problem (As other have said you don't really need a root account and running as root opens your system to being owned by someone if it ever gets hacked, or trashed by you if you make some bad mistake in the terminal). The way it works is like this:
You enter sudo and then the command you want like this:
CommmandLinePrompt$ sudo command
And then it will ask you for the password you entered when you set your computer up:
password:
You enter the password and bob's your aunty.

A real example, updating the locate database:
CommmandLinePrompt$ sudo /usr/libexec/locate.updatedb (press enter)
password: (enter your user password and press enter)
weird wabbit
     
   
 
Forum Links
Forum 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 Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:57 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,