Solved

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

Posted on 2009-05-18
5
1,048 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need BIOS update Linux for MSI X99A motherboard. 4 41
linux redhat 7.2 10 73
Can't upgrade Mac OS 10.6.8 9 60
Linux Desktop suggestion for Dell Inspiron 3043 13 40
We could spend the next millennium discussing the differences of the Mac and Windows platforms. The next century will continue to have fanatics on both side of the equation and neither side will win the war. However, that’s not why we are here. W…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

810 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