I mounted a new drive on /New_drive my CentOS 5.7 box running Samba (3.0.33-3.29) and configured in fstab as follows:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
**/dev/VolGroup02/LogVol00 /New_drive ext3 defaults 1 1**
I have two folders already shared and accessed via samba.
I have user smbuser having full access to these folder from windows machines. The smb.conf file has following configuration:
#======================= Global Settings =====================================
[global]
workgroup = lab
server string = Samba-server1
coding system= euc
client code page=932
encrypt passwords=yes
log file = /var/log/samba/%m.log
max log size = 50
security = user
passdb backend = tdbsam
#============================ Share Definitions ==============================
# Samba Files
[share-lab]
comment = Samba-files
create mode=0777
directory mode=0777
path =/home/sambafiles
writable = yes
valid users = smbuser
#Samba backup Files
[Samba-Backup]
comment = Backup
create mode=0777
directory mode=0777
path =/home/sambabackup
writable = yes
valid users = smbuser
So, set the owner and of /New_drive as smbuser and give public acess to the folder.
and added New lines to the smb.conf
#New Drive
[New-drive]
comment = New-drive
create mode=0777
directory mode=0777
path =/New_drive/sambafiles
writable = yes
valid users = smbuser
But, the New-drive is seen from the windows machine and is not acessible. The log file recorded the error as
smbd/service.c:make_connection_snum(1013)
'/New_drive/sambafiles' does not exist or permission denied when connecting to [Ohmi-New] Error was Permission denied
Can anyone suggest me the way to solve this problem?