Solved

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

Posted on 2009-05-18
5
1,055 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

696 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