just was trying to run a sudo command in the terminal and got the error
in the topic. what's that and how do i fix it? i'm guessing this would mean
i could never run a sudo command. that's not good. help please?
I'm willing to bet that "username" is a limited account. If you desperately need to run commands you don't have access too in the limited account you can su "admin account" and then sudo from there.
I'm willing to bet that "username" is a limited account. If you desperately need to run commands you don't have access too in the limited account you can su "admin account" and then sudo from there.
I'm not sure if you can do "su", but you should be able to do "sudo". The "su" actually means you need the root password, which is not the same as that of your admin account.
"su <account name>" would obviously do nothing if you are already logged into that account as su is 'substitute user' or 'switch user'. If you are still getting the 'not in sudoers file' error while using sudo, you may want to double check whether it actually has admin rights.
For laughs I looked at /etc/sudoers on my mini (you need to use sudo to look at the file and technically its in /private/etc/sudoers but /etc has a softlink to /private/etc) and it looks like OSX uses a standard sudo setup. Both root and any admin accounts get full access to all programs after giving a password. You could add any account to the sudoers file using sudo visudo (using terminal from an admin or other account already able to use sudo) and adding a line for "username" in the user privilege specification section:
# User privilege specification
root ALL=(ALL) ALL
%admin ALL=(ALL) ALL
username ALL=(ALL) ALL <-- added line
You can also lock down "username" to only have access to certain commands through sudo. Google would be more helpful than the OSX man pages for that.