root operations under normal user
im logged in as a normal user, i want to install a program (requiring root) i know the root password, but how can i install the program under root without logging out from my normal account and then into root?
i once saw something about a command that would alow me to do root operations from a normal user terminal something like"**** root <passwordhere>" i tried this: "[magnus@BlahBlah ~]$ login login: root Password: Error sending status request (Operation not permitted) Login incorrect [magnus@BlahBlah ~]$" as you can see, didnt work. links, hints, commands, all would be preciated :) |
Not too sure if this is what you mean, but you can open a terminal and type "su" (without quotes) and then your root password when prompted.
|
that was exactley what i ment, thx for the fast anser :)
|
There's also something called sudo. It allows you to execute commands with root privileges with your own password. So you can do 'sudo vi /etc/fstab' and edit fstab as root. I find it better to work with.
|
sounds like an hacking tool.. how can it work if it doesnt even have to use the root password?
|
Quote:
|
Ubuntu doesn't even have a root user by default. It allows the first user (others can be configured ofcourse) to do everything through sudo. I now do the same on Slackware. It works quite nice.
It also allows me to give other users the abilty to reboot or shutdown. |
Quote:
|
Quote:
|
Quote:
|
Incidentally, none of the cmds you allow via sudo should include an editor, as most editors allow you to shell out, as the current user ie root(!)
|
Quote:
|
All times are GMT -5. The time now is 06:17 PM. |