Re: Service to run user-owned init scripts at boot time?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I wrote:
> This should work:
> 
> cat >>/etc/rc.d/rc.local <<EOF
> for i in /home/*/.rc.local ; do
>   user=${i#/home/}
>   user=${user%/.rc.local}
>   su $user -c $i
> done
> EOF

Actually the su line should be:
su $user -c $i &

Otherwise users can DoS this script by having their ~/.rc.local script never
return.

        Kevin Kofler

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux