For some reason, I am unable to run any commands with
su as my user. This was working before and I'm not sure what broke it. The funny thing is that I can su to root without any problems.
machine:~ myuser$ who myuser console Sep 28 01:10 myuser ttys000 Oct 3 22:21 machine:~ myuser$ sudo echo "test" Password: su: Sorry machine:~ myuser$ su Password: sh-3.2# echo "test" test sh-3.2# exit exit machine:~ myuser$
As far as I can tell, my user is part of the appropriate user groups (including wheel and admin):
machine:~ myuser$ groups myuser staff com.apple.sharepoint.group.1 wheel everyone _appstore localaccounts _appserverusr admin _appserveradm _lpadmin _lpoperator _developer com.apple.access_screensharing machine:~ myuser$ dseditgroup -o checkmember -n . wheel yes myuser is a member of wheel machine:~ myuser$ dseditgroup -o checkmember -n . admin yes myuser is a member of admin
I am stumped. Does anyone have any ideas on how to get this working again?
Many thanks in advance.