proFTPd — Operation not permitted on line 36 of '/etc/proftpd/proftpd.conf'












0















sudo chown proftpd /etc/proftpd/ftpd.passwd
sudo chmod o-r /etc/proftpd/ftpd.passwd
sudo service proftpd start



At this stage proFTPd is running but I am unable to log in,



sudo chmod o+r /etc/proftpd/ftpd.passwd



And now I can log in to FTP
However if I change the permission on the ftpd.passwd to sudo chmod o+r /etc/proftpd/ftpd.passwd before I start the proFTPd , the proFTPd won't start and will give me the error:



mod_auth_file/1.0: unable to use world-readable AuthUserFile '/etc/proftpd/ftpd.passwd': Operation not permitted
Fatal: AuthUserFile: unable to use /etc/proftpd/ftpd.passwd: Operation not permitted on line 36 of '/etc/proftpd/proftpd.conf'



What my suspicion is that proFTPd is not a member of a specific group, if I execute:



groups proftpd



proftpd : nogroup is the reply.



Any ideas?










share|improve this question























  • What are the permissions of the file when the service won't start?

    – stevieb
    Aug 10 '15 at 15:12











  • -rw-r--r-- 1 proftpd root Aug 10 13:18 ftpd.passwd ===> proftpd won't start -rw-r----- 1 proftpd root Aug 10 13:18 ftpd.passwd ==> ProFTP starts, but unable to login after ProFTPd started I change the permission again back to -rw-r--r-- and it works/I can log in to FTP

    – elemer82
    Aug 10 '15 at 16:02


















0















sudo chown proftpd /etc/proftpd/ftpd.passwd
sudo chmod o-r /etc/proftpd/ftpd.passwd
sudo service proftpd start



At this stage proFTPd is running but I am unable to log in,



sudo chmod o+r /etc/proftpd/ftpd.passwd



And now I can log in to FTP
However if I change the permission on the ftpd.passwd to sudo chmod o+r /etc/proftpd/ftpd.passwd before I start the proFTPd , the proFTPd won't start and will give me the error:



mod_auth_file/1.0: unable to use world-readable AuthUserFile '/etc/proftpd/ftpd.passwd': Operation not permitted
Fatal: AuthUserFile: unable to use /etc/proftpd/ftpd.passwd: Operation not permitted on line 36 of '/etc/proftpd/proftpd.conf'



What my suspicion is that proFTPd is not a member of a specific group, if I execute:



groups proftpd



proftpd : nogroup is the reply.



Any ideas?










share|improve this question























  • What are the permissions of the file when the service won't start?

    – stevieb
    Aug 10 '15 at 15:12











  • -rw-r--r-- 1 proftpd root Aug 10 13:18 ftpd.passwd ===> proftpd won't start -rw-r----- 1 proftpd root Aug 10 13:18 ftpd.passwd ==> ProFTP starts, but unable to login after ProFTPd started I change the permission again back to -rw-r--r-- and it works/I can log in to FTP

    – elemer82
    Aug 10 '15 at 16:02
















0












0








0


1






sudo chown proftpd /etc/proftpd/ftpd.passwd
sudo chmod o-r /etc/proftpd/ftpd.passwd
sudo service proftpd start



At this stage proFTPd is running but I am unable to log in,



sudo chmod o+r /etc/proftpd/ftpd.passwd



And now I can log in to FTP
However if I change the permission on the ftpd.passwd to sudo chmod o+r /etc/proftpd/ftpd.passwd before I start the proFTPd , the proFTPd won't start and will give me the error:



mod_auth_file/1.0: unable to use world-readable AuthUserFile '/etc/proftpd/ftpd.passwd': Operation not permitted
Fatal: AuthUserFile: unable to use /etc/proftpd/ftpd.passwd: Operation not permitted on line 36 of '/etc/proftpd/proftpd.conf'



What my suspicion is that proFTPd is not a member of a specific group, if I execute:



groups proftpd



proftpd : nogroup is the reply.



Any ideas?










share|improve this question














sudo chown proftpd /etc/proftpd/ftpd.passwd
sudo chmod o-r /etc/proftpd/ftpd.passwd
sudo service proftpd start



At this stage proFTPd is running but I am unable to log in,



sudo chmod o+r /etc/proftpd/ftpd.passwd



And now I can log in to FTP
However if I change the permission on the ftpd.passwd to sudo chmod o+r /etc/proftpd/ftpd.passwd before I start the proFTPd , the proFTPd won't start and will give me the error:



mod_auth_file/1.0: unable to use world-readable AuthUserFile '/etc/proftpd/ftpd.passwd': Operation not permitted
Fatal: AuthUserFile: unable to use /etc/proftpd/ftpd.passwd: Operation not permitted on line 36 of '/etc/proftpd/proftpd.conf'



What my suspicion is that proFTPd is not a member of a specific group, if I execute:



groups proftpd



proftpd : nogroup is the reply.



Any ideas?







proftpd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 10 '15 at 13:45









elemer82elemer82

4031513




4031513













  • What are the permissions of the file when the service won't start?

    – stevieb
    Aug 10 '15 at 15:12











  • -rw-r--r-- 1 proftpd root Aug 10 13:18 ftpd.passwd ===> proftpd won't start -rw-r----- 1 proftpd root Aug 10 13:18 ftpd.passwd ==> ProFTP starts, but unable to login after ProFTPd started I change the permission again back to -rw-r--r-- and it works/I can log in to FTP

    – elemer82
    Aug 10 '15 at 16:02





















  • What are the permissions of the file when the service won't start?

    – stevieb
    Aug 10 '15 at 15:12











  • -rw-r--r-- 1 proftpd root Aug 10 13:18 ftpd.passwd ===> proftpd won't start -rw-r----- 1 proftpd root Aug 10 13:18 ftpd.passwd ==> ProFTP starts, but unable to login after ProFTPd started I change the permission again back to -rw-r--r-- and it works/I can log in to FTP

    – elemer82
    Aug 10 '15 at 16:02



















What are the permissions of the file when the service won't start?

– stevieb
Aug 10 '15 at 15:12





What are the permissions of the file when the service won't start?

– stevieb
Aug 10 '15 at 15:12













-rw-r--r-- 1 proftpd root Aug 10 13:18 ftpd.passwd ===> proftpd won't start -rw-r----- 1 proftpd root Aug 10 13:18 ftpd.passwd ==> ProFTP starts, but unable to login after ProFTPd started I change the permission again back to -rw-r--r-- and it works/I can log in to FTP

– elemer82
Aug 10 '15 at 16:02







-rw-r--r-- 1 proftpd root Aug 10 13:18 ftpd.passwd ===> proftpd won't start -rw-r----- 1 proftpd root Aug 10 13:18 ftpd.passwd ==> ProFTP starts, but unable to login after ProFTPd started I change the permission again back to -rw-r--r-- and it works/I can log in to FTP

– elemer82
Aug 10 '15 at 16:02












1 Answer
1






active

oldest

votes


















0














All you have to do is change permissions of password file.



sudo chmod o-rwx /etc/proftpd/ftpd.passwd

sudo service proftpd start


(alternative way: sudo /etc/init.d/proftpd start)






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f659780%2fproftpd-operation-not-permitted-on-line-36-of-etc-proftpd-proftpd-conf%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    All you have to do is change permissions of password file.



    sudo chmod o-rwx /etc/proftpd/ftpd.passwd

    sudo service proftpd start


    (alternative way: sudo /etc/init.d/proftpd start)






    share|improve this answer




























      0














      All you have to do is change permissions of password file.



      sudo chmod o-rwx /etc/proftpd/ftpd.passwd

      sudo service proftpd start


      (alternative way: sudo /etc/init.d/proftpd start)






      share|improve this answer


























        0












        0








        0







        All you have to do is change permissions of password file.



        sudo chmod o-rwx /etc/proftpd/ftpd.passwd

        sudo service proftpd start


        (alternative way: sudo /etc/init.d/proftpd start)






        share|improve this answer













        All you have to do is change permissions of password file.



        sudo chmod o-rwx /etc/proftpd/ftpd.passwd

        sudo service proftpd start


        (alternative way: sudo /etc/init.d/proftpd start)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 20 '16 at 13:07









        James MJames M

        131110




        131110






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f659780%2fproftpd-operation-not-permitted-on-line-36-of-etc-proftpd-proftpd-conf%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?