mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
Added full sudo support for admin user
This commit is contained in:
parent
3cfe26cebb
commit
7fc00d4939
12 changed files with 42 additions and 7 deletions
3
install/debian/sudoers.admin.conf
Normal file
3
install/debian/sudoers.admin.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Created by vesta installer
|
||||
admin ALL=(ALL) ALL
|
||||
admin ALL=NOPASSWD:/usr/local/vesta/bin/*
|
|
@ -30,4 +30,3 @@ root ALL=(ALL:ALL) ALL
|
|||
# See sudoers(5) for more information on "#include" directives:
|
||||
|
||||
#includedir /etc/sudoers.d
|
||||
admin ALL=NOPASSWD:/usr/local/vesta/bin/*
|
||||
|
|
3
install/rhel/sudoers.admin.conf
Normal file
3
install/rhel/sudoers.admin.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Created by vesta installer
|
||||
admin ALL=(ALL) ALL
|
||||
admin ALL=NOPASSWD:/usr/local/vesta/bin/*
|
|
@ -95,4 +95,5 @@ root ALL=(ALL) ALL
|
|||
|
||||
## Allows members of the users group to shutdown this system
|
||||
# %users localhost=/sbin/shutdown -h now
|
||||
admin ALL=NOPASSWD:/usr/local/vesta/bin/*
|
||||
|
||||
#includedir /etc/sudoers.d
|
||||
|
|
3
install/ubuntu/sudoers.admin.conf
Normal file
3
install/ubuntu/sudoers.admin.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Created by vesta installer
|
||||
admin ALL=(ALL) ALL
|
||||
admin ALL=NOPASSWD:/usr/local/vesta/bin/*
|
|
@ -29,4 +29,3 @@ root ALL=(ALL:ALL) ALL
|
|||
# See sudoers(5) for more information on "#include" directives:
|
||||
|
||||
#includedir /etc/sudoers.d
|
||||
admin ALL=NOPASSWD:/usr/local/vesta/bin/*
|
||||
|
|
|
@ -518,7 +518,9 @@ echo "/sbin/nologin" >> /etc/shells
|
|||
|
||||
# Sudo configuration
|
||||
wget $CHOST/$VERSION/sudoers.conf -O /etc/sudoers
|
||||
chmod 0440 /etc/sudoers
|
||||
wget $CHOST/$VERSION/sudoers.admin.conf -O /etc/sudoers.d/admin
|
||||
chmod 440 /etc/sudoers
|
||||
chmod 440 /etc/sudoers.d/admin
|
||||
|
||||
# NTP Synchronization
|
||||
echo '#!/bin/sh' > /etc/cron.daily/ntpdate
|
||||
|
|
|
@ -571,7 +571,9 @@ echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile
|
|||
|
||||
# Sudo configuration
|
||||
wget $CHOST/$VERSION/sudoers.conf -O /etc/sudoers
|
||||
chmod 0440 /etc/sudoers
|
||||
wget $CHOST/$VERSION/sudoers.admin.conf -O /etc/sudoers.d/admin
|
||||
chmod 440 /etc/sudoers
|
||||
chmod 440 /etc/sudoers.d/admin
|
||||
|
||||
# NTP Synchronization
|
||||
echo '#!/bin/sh' > /etc/cron.daily/ntpdate
|
||||
|
|
|
@ -524,7 +524,9 @@ echo "/sbin/nologin" >> /etc/shells
|
|||
|
||||
# Sudo configuration
|
||||
wget $CHOST/$VERSION/sudoers.conf -O /etc/sudoers
|
||||
chmod 0440 /etc/sudoers
|
||||
wget $CHOST/$VERSION/sudoers.admin.conf -O /etc/sudoers.d/admin
|
||||
chmod 440 /etc/sudoers
|
||||
chmod 440 /etc/sudoers.d/admin
|
||||
|
||||
# NTP Synchronization
|
||||
echo '#!/bin/sh' > /etc/cron.daily/ntpdate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue