3
votes
2answers
987 views

How to su to another user in mac OS X?

I came from Linux world , and not familiar with OS X admin. Now I want to su to another user , but it just not working ... Where goes wrong here ? smallufo@miniserver:~ $ whoami smallufo ...
1
vote
3answers
2k views

sudo: must be setuid root (Mac OS X)

I ran $ sudo chown -R $USER /usr/bin and now when I try to run programs under the /usr/bin path as sudo I get sudo:must be setuid root What should I do if I would like to revert the chown?
3
votes
1answer
263 views

Sudo resetting environment variables

Whenever I use the sudo command, none of my environment variables appear to be preserved. I've tried modifying the sudoers file, by removing the env_reset specification. #Defaults env_reset I've ...
3
votes
3answers
1k views

Enable dtrace without sudo on Mac OS X?

How do I enable users to use dtrace on Mac OS X. I am trying to do the equivalent of strace on Linux, and I don't like running applications with elevated privileges. UPDATE Ok, the best I can tell. ...
0
votes
1answer
91 views

How do you tell if a user is logged in as root on Mac OS X?

If I sudo /bin/bash, the who and w command does not show a root login on Mac OS X. How do you enable this?
2
votes
5answers
9k views

ssh to multiple hosts and sudo multiple commands

I need to loop through and ssh to multiple hosts and run a series of commands on each. something like: for i in $(jot -w '%02.0f' 14 1) >do ssh user@host$i sudo -i "command1; command2; command3" ...
1
vote
2answers
781 views

snow leopard (osx): sudo preserving environment

Greetings, I would like to preserve my aliases after sudoing on OSX: sudo -s . .profile Is it possible to achieve this on a SINGLE command line? - i.e. something like: sudo -s ; . .profile tks ...
12
votes
6answers
17k views

su not working on mac os x?

I get this: Macintosh:8.4 TAmoyal$ su Password: su: Sorry Macintosh:8.4 TAmoyal$ I typed in the password I use for sudo. Why won't this work? Thanks!