Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1060
  • Last Modified:

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

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
artradis
Asked:
artradis
4 Solutions
 
omarfaridCommented:
are you using sudo? Look at /etc/sudoers file
0
 
edster9999Commented:
Add your user to the 'wheel' group
0
 
dalesitCommented:
Use

sudo -s

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

Cheers,

Joel
0
 
artradisAuthor Commented:
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
 
dalesitCommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now