Solved

Unable to "su" or "su root"  in OS X

Posted on 2009-05-18
5
1,045 Views
Last Modified: 2013-12-16
We swapped our OS X Email and File server last weekend and now I am not able to su to root (must type login root instead).

when I enter the command "su" and the password, it just says sorry. when I enter "login root" and the same password, there is no problem.

Any suggestion on the fix? Thanks.
0
Comment
Question by:artradis
5 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 125 total points
ID: 24410107
are you using sudo? Look at /etc/sudoers file
0
 
LVL 20

Assisted Solution

by:edster9999
edster9999 earned 125 total points
ID: 24410195
Add your user to the 'wheel' group
0
 
LVL 12

Assisted Solution

by:dalesit
dalesit earned 250 total points
ID: 24410458
Use

sudo -s

which will give you a root shell without needing to have root login enabled.

Cheers,

Joel
0
 

Author Comment

by:artradis
ID: 24418274
Hi,

1. The sudoers file is identical to our other OS X server which can do "su".

2. I goto workgroup admin and looked at LDAP and local node but there is no wheeel group.

3. sudo -s works, but I don't know why it stopped working.

Any comments on point 3? Thanks.
0
 
LVL 12

Assisted Solution

by:dalesit
dalesit earned 250 total points
ID: 24477919
sudoers controls access to sudo.

The group should be wheel (don't know if you had a typo above).

However, in OSX, the group which acts like wheel on most Unixes is admin. Make sure your user is a member of the admin group. You will need to give the root password when you su, as opposed to sudo, when you give your own password.

Cheers,

Joel
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now