Portal Home > Knowledgebase > Articles Database > Is it ok to mount 2nd drive to /home ?
Is it ok to mount 2nd drive to /home ?
Posted by hbhb, 04-15-2008, 08:36 AM |
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
|
Posted by david510, 04-15-2008, 09:16 AM |
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.
|
Posted by hbhb, 04-15-2008, 09:34 AM |
ok thanks, off the topic. I have installed pureftpd and follow the manual
http://download.pureftpd.org/pub/pur....Virtual-Users
[root@host home]# groupadd alice
[root@host 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.
[root@host home]# ls
[root@host 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.
|
Posted by david510, 04-15-2008, 09:37 AM |
home/alice should be already existing. Ignore that warning.
|
Posted by hbhb, 04-15-2008, 09:49 AM |
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 -
|
Posted by david510, 04-15-2008, 11:34 AM |
Did you compile pure ftp with the following option?
--with-puredb
|
Posted by hbhb, 04-15-2008, 12:09 PM |
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?
|
Posted by whmcsguru, 04-15-2008, 12:14 PM |
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'.
|
Posted by david510, 04-15-2008, 12:17 PM |
Do below.
|
Posted by hbhb, 04-15-2008, 11:52 PM |
ok, done this
this is correct? touch the file?
doesn't work quite.. yet
|
Posted by david510, 04-16-2008, 07:25 AM |
Would you mind installing vsftp or pro-ftpd?
|
Posted by hbhb, 04-16-2008, 07:53 AM |
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..
|
Posted by hbhb, 04-16-2008, 10:51 AM |
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
# useradd one
# passwd one
password: 123456
# nano -w /etc/passwd
changed
# 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?
|
Posted by david510, 04-16-2008, 11:00 AM |
Change the permission of /home/one to 755
chmod 755 /home/one
|
Posted by hbhb, 04-16-2008, 11:08 AM |
done that.. still not working
[root@host /]# ll /home
total 8
drwxr-xr-x 2 one one 4096 Apr 16 22:43 one
[root@host 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
|
Posted by david510, 04-16-2008, 11:47 AM |
check logs.
tail -f /var/log/messages
|
Posted by hbhb, 04-16-2008, 11:55 AM |
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???
|
Posted by hbhb, 04-16-2008, 10:43 PM |
wrong post sorry.
Last edited by hbhb; 04-16-2008 at 10:47 PM.
|
Add to Favourites Print this Article
Also Read
AtomHost.com (Views: 485)