Results 1 to 18 of 18
  1. #1
    Join Date
    Apr 2006
    Posts
    516

    Is it ok to mount 2nd drive to /home ?

    I have a question i'm curious about.

    Is it ok to mount 2nd drive after /home directory?
    example: /home/user/backup

    I'm not running any webhost server or mail server, just pure file server. The reason is because I want to have more space 80GB+80GB =160GB

    Thanks

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    No there is no issue. Data on that directory will be stored inside the second drive. When you umount the drive, you will not be able to access the data.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  3. #3
    Join Date
    Apr 2006
    Posts
    516
    ok thanks, off the topic. I have installed pureftpd and follow the manual
    http://download.pureftpd.org/pub/pur....Virtual-Users

    Code:
    groupadd ftpgroup
    useradd -g ftpgroup -d /dev/null -s /etc ftpuser
    [[email protected] home]# groupadd alice
    [[email protected] home]# useradd -g alice -d /dev/null -s /etc alice
    useradd: warning: the home directory already exists.
    Not copying any file from skel directory into it.

    [[email protected] home]# ls
    [[email protected] home]#

    is this an error i should worry about?

    UPDATE: nevermind i found out myself!
    # useradd -g alice -d /home/alice -s /etc alice
    Last edited by hbhb; 04-15-2008 at 09:38 AM.

  4. #4
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    /home/alice should be already existing. Ignore that warning.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  5. #5
    Join Date
    Apr 2006
    Posts
    516
    off to my pureftp subject again:

    # /usr/local/sbin/pure-ftpd -j -l puredb:/etc/pureftpd.pdb
    421 Unknown authentication method: puredb:/etc/pureftpd.pdb

    how do i solve this?

    http://download.pureftpd.org/pub/pur....Virtual-Users
    - ENABLING VIRTUAL USERS -

  6. #6
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Did you compile pure ftp with the following option?

    --with-puredb
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  7. #7
    Join Date
    Apr 2006
    Posts
    516
    no. i did not.

    mind to tell me a full cmd line or full steps to recompile? I use "make" when i installed

    do I have to ./configure first before compile?

  8. #8
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,687
    make sure if you do this this way that you change the permissions on the drive / directory appropriately. They should be chmod u+xrw , and the directory itself should be owned by user:user .

    I've run into a few issues on older servers where the drive is mounted and user can't write to it, as it's mounted and owned by 'root'.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Always looking for Linux, WHMCS, Support Desk work. PM for details

  9. #9
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Do below.

    Code:
    wget ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.21.tar.gz
    tar -zxf pure-ftpd-1.0.21.tar.gz
    ./configure --with-puredb --with-ftpwho 
    make check
    make 
    make install
    
    Now make two files.
    
    /etc/pureftpd.pdb
    /etc/pureftpd.passwd 
    
    Then execute below.
    
    /usr/local/bin/pure-pw mkdb 
    /usr/local/sbin/pure-ftpd -A -B -j -lpuredb:/etc/pureftpd.pdb & 
    
    You can add virtual users like this:
    
    pure-pw useradd user -u username -d /home/username -m
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  10. #10
    Join Date
    Apr 2006
    Posts
    516
    ./configure --with-puredb --with-ftpwho
    make check
    make
    make install
    ok, done this

    Now make two files.

    /etc/pureftpd.pdb
    /etc/pureftpd.passwd
    Code:
    [[email protected] pure-ftpd-1.0.21]# touch /etc/pureftpd.pdb
    [[email protected] pure-ftpd-1.0.21]# touch /etc/pureftpd.passwd
    this is correct? touch the file?

    Then execute below.

    /usr/local/bin/pure-pw mkdb
    /usr/local/sbin/pure-ftpd -A -B -j -lpuredb:/etc/pureftpd.pdb &

    You can add virtual users like this:

    pure-pw useradd user -u username -d /home/username -m
    Code:
    [[email protected] pure-ftpd-1.0.21]# /usr/local/bin/pure-pw mkdb
    [[email protected] pure-ftpd-1.0.21]# /usr/local/sbin/pure-ftpd -A -B -j -lpuredb:/etc/pureftpd.pdb
    [[email protected] home]# groupadd mickey
    [[email protected] home]# useradd -g mickey -d /home/mickey -s /etc mickey
    [[email protected] home]# pure-pw useradd user -u mickey -d /home/mickey -m
    Password: 123456
    Enter it again: 123456
    [[email protected] home]# ftp localhost
    Name (localhost:root): mickey
    331 User mickey OK. Password required
    Password: 123456
    530 Login authentication failed
    Login failed.
    doesn't work quite.. yet

  11. #11
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Would you mind installing vsftp or pro-ftpd?
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  12. #12
    Join Date
    Apr 2006
    Posts
    516
    uhm..ok. i'll need to googled first for vsftp, in the meantime, would you be kind to provide a set of command to configure vsftp for a user? all i want is to get a file server running with ftp. i'll post up my vsftp installation in a short while..

  13. #13
    Join Date
    Apr 2006
    Posts
    516
    Hi,

    I reinstalled my system with fresh OS and followed
    http://www.linuxhelp.net/forums/Cent...ver_t7457.html

    vsftp is already available inside centos after running yum update or it is already there by default.

    # yum update
    -updating complete-

    # yum install vsftpd
    -nothing to install-

    # cd /etc/vsftpd
    # mkdir backup
    # mv vsftd.conf backup/vsftpd.conf
    # nano -w vsftpd.conf
    Code:
     chown_uploads=NO
     xferlog_enable=YES
     idle_session_timeout=600
     data_connection_timeout=120
     ascii_upload_enable=NO
     ascii_download_enable=NO
     background=YES
     listen=YES
     ls_recurse_enable=NO
     chroot_local_user=YES
     write_enable=YES
    
     anonymous_enable=NO
     anon_upload_enable=NO
     anon_mkdir_write_enable=NO
    
     userlist_enable=YES
     userlist_deny=YES
     local_enable=YES
     pam_service_name=vsftpd
    # useradd one
    # passwd one
    password: 123456

    # nano -w /etc/passwd
    changed
    Code:
    one:x:500:500::/home/one:/sbin/nologin
    # chkconfig vsftpd on
    # /etc/init.d/vsftpd start

    # ftp
    ftp> open localhost
    Connected to host.
    220 (vsFTPd 2.0.5)
    530 Please login with USER and PASS.
    530 Please login with USER and PASS.
    KERBEROS_V4 rejected as an authentication type
    Name (localhost:root): one
    331 Please specify the password.
    Password: 123456
    500 OOPS: cannot change directory:/home/one
    Login failed.
    421 Service not available, remote server has closed connection

    # ll /home/
    drwx------ 2 one one 4096 Apr 16 22:43 one

    # ll /home/one
    total 0


    not working again.. any clue?

  14. #14
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Change the permission of /home/one to 755

    chmod 755 /home/one
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  15. #15
    Join Date
    Apr 2006
    Posts
    516
    Quote Originally Posted by david510 View Post
    Change the permission of /home/one to 755

    chmod 755 /home/one

    done that.. still not working

    [[email protected] /]# ll /home
    total 8
    drwxr-xr-x 2 one one 4096 Apr 16 22:43 one

    [[email protected] one]# ftp
    ftp> open localhost
    Connected to host.
    220 (vsFTPd 2.0.5)
    530 Please login with USER and PASS.
    530 Please login with USER and PASS.
    KERBEROS_V4 rejected as an authentication type
    Name (localhost:root): one
    331 Please specify the password.
    Password: 123456
    500 OOPS: cannot change directory:/home/one

  16. #16
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    check logs.

    tail -f /var/log/messages
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  17. #17
    Join Date
    Apr 2006
    Posts
    516
    I run the FTP again

    ftp> open localhost
    Connected to host.
    220 (vsFTPd 2.0.5)
    530 Please login with USER and PASS.
    530 Please login with USER and PASS.
    KERBEROS_V4 rejected as an authentication type
    Name (localhost:root): one
    331 Please specify the password.
    Password: 123456
    500 OOPS: cannot change directory:/home/one
    Login failed.
    421 Service not available, remote server has closed connection



    I tail /var/log/messages

    Nothing come up on that specific time!

    BTW, my /var/log/messages shows one error I'm curious about

    host smartd[2587]: Device: /dev/sda, 122 Currently unreadable (pending) sectors

    is this a bad sector???

  18. #18
    Join Date
    Apr 2006
    Posts
    516
    wrong post sorry.
    Last edited by hbhb; 04-16-2008 at 10:47 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •