You are not logged in.
Hi, everybody.
Is there any way for console apps that need to be run as root to ask root password when we type the command?
Ex:
[user@localhost ~]$ pacman -Syu
You cannot perform this operation unless you are root. Please, insert the root password:
I know that there is "sudo", but i really dont like it because i have allways to type "sudo command".
Thanks in advance.
Last edited by eldarion (2007-10-06 18:46:50)
Offline
Alias them to whatever you like.
alias pacman='su -c /usr/bin/pacman'
alias pacman='sudo /usr/bin/pacman'
Offline
su -c "pacman -Syu"
I think your user has to be in a "wheel" group.
Offline
Now that's better!
Ok, Thanks for replying.
Offline