Difference between pages "Package:Sudo" and "Talk:Reporting Bugs"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
m (disabling root info)
 
(Created page with "{{PageNeedsUpdates}} nothing on the page is said about posting make.conf, emerge --info, applicable build logs. vincent needs to be less angry =) (and i need to quit going fu...")
 
Line 1: Line 1:
{{Ebuild
{{PageNeedsUpdates}}
|Summary=Allows users or groups to run commands as other users
nothing on the page is said about posting make.conf, emerge --info, applicable build logs. vincent needs to be less angry =) (and i need to quit going full retard on the bug tracker)
|CatPkg=app-admin/sudo
|Homepage=http://www.sudo.ws/
}}
 
sudo allows privilege escalation for non root users to perform restricted actions while in a locked down user environment.
 
=== Emerge ===
{{console|body=###i## emerge sudo}}
 
==== Configuration ====
===== Passwordless =====
The sudo configuration file is located @ {{f|/etc/sudoers}}.
 
{{Console|body=$##i##su -c 'nano /etc/sudoers'}}
 
Remove the # in the line....
 
%wheel ALL=(ALL) NOPASSWD: ALL
 
Add your user to the wheel group to enable sudo:
 
{{Console|body=$##i## su -c 'gpasswd -a $USER wheel'}}
 
Either log out, and in again or restart:
 
{{Console|body=$##i## su -c 'shutdown -r now'}}
 
===== Disabling Root Access By Password =====
To better secure a system, one may desire to disable root logins by password.
 
{{console|body= ###i## passwd --lock root}}
 
to access root:
 
{{Console|body= $##i## sudo su}}
 
Root can also be accessed by logging in via ssh keys, or as a restricted user then sudo su as above.
 
====Bash Completion====
 
Users that want bash completion with sudo need to run this once.
 
{{console|body=$##i## echo "complete -cf sudo" >> $HOME/.bashrc}}
 
{{EbuildFooter}}

Revision as of 13:18, January 8, 2015


nothing on the page is said about posting make.conf, emerge --info, applicable build logs. vincent needs to be less angry =) (and i need to quit going full retard on the bug tracker)