Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Frank Henning Petersen on February 27, 2003, 12:28:35 AM

Title: New harddrive, access denied
Post by: Frank Henning Petersen on February 27, 2003, 12:28:35 AM
I have followed the guidelines HOWTO add a second harddrive, and it almost works.

I have formatted the drive, made the filesystem and added it by the following line in /etc/fstab:
/dev/hdc1 /home/e-smith/files/primary/files ext2 defaults 1 2

But everytime I connect to my ftp-server (which now should be on the other drive) I get access denied. Make sure disk is not full, or write protected.

Frank
Title: Re: New harddrive, access denied
Post by: Jim Little on February 27, 2003, 10:04:41 PM
Check the ownership and file privileges of the filesystem on your new drive, ls -al /home/e-smith/files/primary/files make sure they are set the same as the rest of your /home/e-smith/files/primary hierarchy.

You can fix them (as root) with the chown and chmod commands.

HTH,

Jim
Title: Re: New harddrive, access denied
Post by: Frank Henning Petersen on March 01, 2003, 03:13:22 PM
When running ls -al /home/e-msith/files/primary:

drwxr-s---   2 admin       shared  cgi-bin
drwxr-xr-x  3 ftpusers     root      files
drwxr-s---   2 admin       shared  html

When I dismount my new harddrive, they all are shared. I've tried to set it up, so only the group ftpusers would have access to my ftp server (files).
After dismount:
drwxr-sr-x  2 admin       shared    files

Havent got a clue how to change it with chmod or chown. Had a look at both, but Im not sure howto.

Frank