Remove passwords prompts for user and root (#202)
This commit is contained in:
parent
ae3d194f13
commit
8047ec780a
1
appvm/qubes.sudoers
Normal file
1
appvm/qubes.sudoers
Normal file
@ -0,0 +1 @@
|
|||||||
|
user ALL=(ALL) NOPASSWD: ALL
|
@ -48,12 +48,17 @@ The Qubes core files for installation inside a Qubes AppVM.
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
|
||||||
|
# Remove password for root, so PolicyKit will not ask for it
|
||||||
|
usermod -p '' root
|
||||||
|
|
||||||
if [ "$1" != 1 ] ; then
|
if [ "$1" != 1 ] ; then
|
||||||
|
# remove user password if this is upgrade
|
||||||
|
usermod -p '' user
|
||||||
# do this whole %pre thing only when updating for the first time...
|
# do this whole %pre thing only when updating for the first time...
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
adduser --create-home user
|
adduser -p '' --create-home user
|
||||||
su user -c 'mkdir -p /home/user/.gnome2/nautilus-scripts'
|
su user -c 'mkdir -p /home/user/.gnome2/nautilus-scripts'
|
||||||
su user -c 'ln -s /usr/lib/qubes/qvm-copy-to-vm2.gnome /home/user/.gnome2/nautilus-scripts/"Copy to other AppVM"'
|
su user -c 'ln -s /usr/lib/qubes/qvm-copy-to-vm2.gnome /home/user/.gnome2/nautilus-scripts/"Copy to other AppVM"'
|
||||||
su user -c 'ln -s /usr/bin/qvm-open-in-dvm2 /home/user/.gnome2/nautilus-scripts/"Open in DisposableVM"'
|
su user -c 'ln -s /usr/bin/qvm-open-in-dvm2 /home/user/.gnome2/nautilus-scripts/"Open in DisposableVM"'
|
||||||
@ -99,6 +104,9 @@ install -D ../u2mfn/u2mfn-kernel.h $RPM_BUILD_ROOT/usr/include/u2mfn-kernel.h
|
|||||||
install -D ../vchan/libvchan.so $RPM_BUILD_ROOT/%{_libdir}/libvchan.so
|
install -D ../vchan/libvchan.so $RPM_BUILD_ROOT/%{_libdir}/libvchan.so
|
||||||
install -D ../u2mfn/libu2mfn.so $RPM_BUILD_ROOT/%{_libdir}/libu2mfn.so
|
install -D ../u2mfn/libu2mfn.so $RPM_BUILD_ROOT/%{_libdir}/libu2mfn.so
|
||||||
|
|
||||||
|
install -d $RPM_BUILD_ROOT/etc/sudoers.d
|
||||||
|
install -m 0440 qubes.sudoers $RPM_BUILD_ROOT/etc/sudoers.d/qubes
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/run/qubes
|
mkdir -p $RPM_BUILD_ROOT/var/run/qubes
|
||||||
|
|
||||||
%triggerin -- initscripts
|
%triggerin -- initscripts
|
||||||
@ -147,7 +155,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%attr(700,user,user) /home_volatile/user
|
%attr(700,user,user) /home_volatile/user
|
||||||
/etc/X11/xorg-preload-apps.conf
|
/etc/X11/xorg-preload-apps.conf
|
||||||
%dir /var/run/qubes
|
%dir /var/run/qubes
|
||||||
|
/etc/sudoers.d/qubes
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Include files for qubes core libraries
|
Summary: Include files for qubes core libraries
|
||||||
|
Loading…
Reference in New Issue
Block a user