Troubles starting fetchmail from init scripts

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

 



I have a little script to start fetchmail, which is activated in
rc.local.  It runs perfectly when started from a root login; but it
fails when started from rc.local.

Here is the info:
=========================== Scripts Start ===========================
        $ more rc.local fetchmail-start 
        ::::::::::::::
        rc.local
        ::::::::::::::
        #!/bin/sh
        #
        # This script will be executed *after* all the other init scripts.
        # You can put your own initialization stuff in here if you don't
        # want to do the full Sys V style init stuff.
        
        # Fork a script that will start fetchmail for jonrysh in a few seconds
        /etc/rc.d/fetchmail-start
        
        touch /var/lock/subsys/local
        ::::::::::::::
        fetchmail-start
        ::::::::::::::
        #!/bin/sh
        #
        # Start fetchmail for jonrysh
        
        su jonrysh -c 'sleep 5; fetchmail'
        
=========================== Messages Start ===========================
Fetchmail emits the following error message and fails:
        fetchmail: open: /home/jonrysh/.fetchmailrc: Permission denied

What's happening?  How can it be fixed?

Thanks - jon


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux