Resetting permissions and ownership on all DA related system files.

If you've just transferred all of your data to a new disk:

/etc/

    passwd
    shadow
    group
    exim.conf
    exim.pl
    system_filter.exim
    exim.cert (exim 4)
    exim.key (exim 4)
    proftpd.conf
    proftpd.vhosts.conf
    proftpd.passwd
    hosts
    resolv.conf
    named.conf (/etc/namedb/named.conf on FreeBSD, /etc/bind/named.conf on debian)
    dovecot.conf
    ssh/sshd_config
    virtual/

        domainowners
        domains
        pophosts
        majordomo/*
        *

    httpd/

        conf/

            httpd.conf
            ips.conf
            ssl.crt/

                server.crt 

            ssl.key/

                server.key 

        extra/ 

/var/

    named/* (/etc/namedb/* on freebsd, /etc/bind/* on debian)
    spool/

        virtual/*
        mail/*
        cron/*

    www/*
    log/*
    lib/

        mysql/* (/home/mysql/* on freebsd and debian) 

/usr/local/

    frontpage/

        *.cnf 

    directadmin/* 

/home/* 

if the ownerships and permissions are not correct, then you can get the set_permissions.sh script to do it for you:

cd /usr/local/directadmin/scripts
./set_permissions.sh all

Note that this script will not touch files uploaded by your users as it doesn't know what their permissions should be. If you are not worried about potentiall permission problems and just want a very basic level of operation for all of the files your user have uploaded (eg, if all of their files are owned by root and you need to change them), then you can run the following for a basic reset of the permisisons:

cd /home
for i in `ls`; do { chown -R $i:$i $i; }; done;

But just as warning, this wipes all ownership settings, including any email data that may have a mail ownership, so you'd best run this script first, and the set_permissions.sh second to ensure any system related files (eg, mail inbox, spam, etc) are chowned correctly.

 
system/resetting.txt · Last modified: 2010/03/02 04:53 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Please visit Automatic Backlinks to start earning free backlinks Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki