Hi I am trying to do the su command in terminal and when it asks for the password I have no idea what it is. Is there a default password or something because it is not my login password
thanks
When you type in 'su' without any other arguments you are switching to the root user, and this assumes you know the root password.
I think, instead of 'su', you want to use the 'sudo' command, i.e:
sudo su
Which, will prompt you for your own password.
I think, instead of 'su', you want to use the 'sudo' command, i.e:
sudo su
Which, will prompt you for your own password. If you're in the administrator group, and root is enabled, successfully authenticating with your password will switch you to the root user.
Sudo has some security issues too, and I'm not talking about human error....or "sudo -s" to get to a root shell. Also, you do NOT have to enable the root user for this to work. "Enabling the root user" just involves setting a password for root. sudo gets around the lack of a root password. su requires knowing it. Therefore, sudo is better because you can give multiple people access to root without telling them the root password.
Type in "sudo passwd root" (To change root's password to what you want)
Then type in "sudo su -" (To Switch-User to root in the terminal, prompt should change from ~$ to ~#)
Hope that helped...
But when the password prompt is presented, it doesn't let me type anything. If I stroke a key, it doesn't respond. Help.
It does not *echo* keystrokes. It is accepting a password, it's just not showing what you type (even placeholders) so an on-looker cannot capture your password. Just type your password, trusting that even though you have no visual indication it's being accepted, and press enter.
-Lee
Thanks, I prefer to be the superuser when I need to do what only superusers usually have permission to do. The "sudo" command can annoy me.When you type in 'su' without any other arguments you are switching to the root user, and this assumes you know the root password.
What was the rest of your sudo command? Sounds like you may have dumped a binary file to the console.Now, its showing me weird symbols and question marks along with the error noise.
sudo su -
Detrius said:...or "sudo -s"
i need to put limited user in sudoers file withought using admin password or account, how do i do this? this has to be possible ???
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5)
You learn new things every day. Thanks for adding another shortcut to my arsenal.
B