Files not available on Samba/Greyhole - only directories
Posted: Tue Jul 10, 2012 5:51 pm
I can only see the directories on my Samba shares, not the files.
I had a failing primary disk and just replaced it. To replace it, I created the same structure on a new disk, copied over everyting with "cp -a", fixed the boot and swapped disks. But I have no idea if this caused the issue
Samba and Greyhole are working fine, but files are not displayed in local samba share or remote shares.
Any ideas
[/etc/greyhole.conf]
# This file is automatically generated by Amahi on Sun Jul 08 08:53:43 +0100 2012
# Any manual changes WILL BE OVERWRITTEN!
# Set the defaults (carefully) in /var/hda/platform/html/config/greyhole.yml
db_engine = mysql
db_host = localhost
db_user = greyhole
db_pass = greyhole
db_name = greyhole
balance_modified_files = false
email_to = root
greyhole_log_file = /var/log/greyhole.log
log_level = DEBUG
log_memory_usage = false
dir_selection_algorithm = most_available_space
df_cache_time = 15
delete_moves_to_attic = true
# sticky_files and stick_into options are nested - see http://wiki.amahi.org/index.php/Greyhol ... ed_options
sticky_files = Music/
sticky_files = Pictures/
# add any group of other settings
# here in multiple lines
storage_pool_directory = /var/hda/files/drives/drive1/gh, min_free: 10gb
storage_pool_directory = /var/hda/files/drives/drive0/gh, min_free: 10gb
[smb.conf]
# This file is automatically generated for WORKGROUP setup.
# Any manual changes MAY BE OVERWRITTEN
# Amahi configuration, generated on Wed Jul 11 00:57:35 +0100 2012
[global]
workgroup = WORKGROUP
server string = home.com
netbios name = hda
printing = cups
printcap name = cups
load printers = yes
cups options = raw
log file = /var/log/samba/%m.log
log level = 0
max log size = 150
socket options = TCP_NODELAY
preferred master = yes
os level = 60
time server = yes
unix extensions = no
wide links = yes
veto files = /*.nws/riched20.dll/*.{*}/
security = user
username map script = /usr/share/hda-platform/hda-usermap
large readwrite = yes
encrypt passwords = yes
dos charset = CP850
unix charset = UTF8
display charset = LOCALE
guest account = nobody
map to guest = Bad User
wins support = yes
printer admin = root, @ntadmin, administrator
follow symlinks = yes
.....
[Public]
comment = Public
path = /var/hda/files/Public
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
vfs objects = recycle
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
Directory of public as an example
=========================
Local samba mounts mounted to /mnt/samba using
/sbin/mount.cifs "//127.0.0.1/$d" "$d" -o credentials=/home/${username}/.smb_credentials, uid=${uid},gid=${gid},file_mode=0660,dir_mode=0770,nobrl,hard,_netdev,iocharset=utf8,noserverino,mfsymlinks
username=arnon
uid=500
gid=100
[ls -ltra /mnt/samba/Public/] - showing only files and directory sized are 0
total 4
drwxrwx--- 1 arnon users 0 May 6 17:50 Software
drwxr-xr-x 11 root root 4096 Jul 11 01:03 ..
drwxrwx--- 0 arnon users 0 Jul 11 01:18 My Money Backup
drwxrwx--- 1 arnon users 0 Jul 11 01:18 .
drwxrwx--- 0 arnon users 0 Jul 11 01:18 Divorce Documents
drwxrwx--- 0 arnon users 0 Jul 11 01:18 Documentation Vault
[ls -ltra /var/hda/files/Public/] - shows two files as well. They are owned by root but permissions are 777
total 24
drwxr-xr-x 10 arnon users 4096 May 6 17:50 Software
drwxr-xr-x 15 transmission users 4096 Jul 11 00:28 ..
drwxrwxrwx 2 arnon 504 4096 Jul 11 01:18 My Money Backup
lrwxrwxrwx 1 root root 53 Jul 11 01:18 amazonS3RR.php -> /var/hda/files/drives/drive1/gh/Public/amazonS3RR.php
lrwxrwxrwx 1 root root 46 Jul 11 01:18 php.ini -> /var/hda/files/drives/drive1/gh/Public/php.ini
drwxrwxr-x 6 arnon 504 4096 Jul 11 01:18 .
drwxr-xr-x 2 arnon 504 4096 Jul 11 01:18 Divorce Documents
drwxrwxrwx 3 arnon 504 4096 Jul 11 01:18 Documentation Vault
[ls -ltra /var/hda/files/drives/drive1/gh/Public/] - listing of gh directory shows they are owned by arnon with rw to group
total 108
-rwxrw-r-- 1 arnon users 4612 May 16 21:14 php.ini
-rwxrw-r-- 1 arnon users 76277 May 16 21:15 amazonS3RR.php
drwxr-xr-x 9 root root 4096 Jul 8 09:41 ..
drwxrwxrwx 2 arnon 504 4096 Jul 11 01:18 My Money Backup
drwxr-xr-x 2 arnon 504 4096 Jul 11 01:18 Divorce Documents
drwxrwxrwx 3 arnon 504 4096 Jul 11 01:18 Documentation Vault
drwxrwxrwx 6 arnon 504 4096 Jul 11 01:18 .
drwxr-xr-x 8 arnon users 4096 Jul 11 01:36 Software
I had a failing primary disk and just replaced it. To replace it, I created the same structure on a new disk, copied over everyting with "cp -a", fixed the boot and swapped disks. But I have no idea if this caused the issue
Samba and Greyhole are working fine, but files are not displayed in local samba share or remote shares.
Any ideas
[/etc/greyhole.conf]
# This file is automatically generated by Amahi on Sun Jul 08 08:53:43 +0100 2012
# Any manual changes WILL BE OVERWRITTEN!
# Set the defaults (carefully) in /var/hda/platform/html/config/greyhole.yml
db_engine = mysql
db_host = localhost
db_user = greyhole
db_pass = greyhole
db_name = greyhole
balance_modified_files = false
email_to = root
greyhole_log_file = /var/log/greyhole.log
log_level = DEBUG
log_memory_usage = false
dir_selection_algorithm = most_available_space
df_cache_time = 15
delete_moves_to_attic = true
# sticky_files and stick_into options are nested - see http://wiki.amahi.org/index.php/Greyhol ... ed_options
sticky_files = Music/
sticky_files = Pictures/
# add any group of other settings
# here in multiple lines
storage_pool_directory = /var/hda/files/drives/drive1/gh, min_free: 10gb
storage_pool_directory = /var/hda/files/drives/drive0/gh, min_free: 10gb
[smb.conf]
# This file is automatically generated for WORKGROUP setup.
# Any manual changes MAY BE OVERWRITTEN
# Amahi configuration, generated on Wed Jul 11 00:57:35 +0100 2012
[global]
workgroup = WORKGROUP
server string = home.com
netbios name = hda
printing = cups
printcap name = cups
load printers = yes
cups options = raw
log file = /var/log/samba/%m.log
log level = 0
max log size = 150
socket options = TCP_NODELAY
preferred master = yes
os level = 60
time server = yes
unix extensions = no
wide links = yes
veto files = /*.nws/riched20.dll/*.{*}/
security = user
username map script = /usr/share/hda-platform/hda-usermap
large readwrite = yes
encrypt passwords = yes
dos charset = CP850
unix charset = UTF8
display charset = LOCALE
guest account = nobody
map to guest = Bad User
wins support = yes
printer admin = root, @ntadmin, administrator
follow symlinks = yes
.....
[Public]
comment = Public
path = /var/hda/files/Public
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
vfs objects = recycle
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
Directory of public as an example
=========================
Local samba mounts mounted to /mnt/samba using
/sbin/mount.cifs "//127.0.0.1/$d" "$d" -o credentials=/home/${username}/.smb_credentials, uid=${uid},gid=${gid},file_mode=0660,dir_mode=0770,nobrl,hard,_netdev,iocharset=utf8,noserverino,mfsymlinks
username=arnon
uid=500
gid=100
[ls -ltra /mnt/samba/Public/] - showing only files and directory sized are 0
total 4
drwxrwx--- 1 arnon users 0 May 6 17:50 Software
drwxr-xr-x 11 root root 4096 Jul 11 01:03 ..
drwxrwx--- 0 arnon users 0 Jul 11 01:18 My Money Backup
drwxrwx--- 1 arnon users 0 Jul 11 01:18 .
drwxrwx--- 0 arnon users 0 Jul 11 01:18 Divorce Documents
drwxrwx--- 0 arnon users 0 Jul 11 01:18 Documentation Vault
[ls -ltra /var/hda/files/Public/] - shows two files as well. They are owned by root but permissions are 777
total 24
drwxr-xr-x 10 arnon users 4096 May 6 17:50 Software
drwxr-xr-x 15 transmission users 4096 Jul 11 00:28 ..
drwxrwxrwx 2 arnon 504 4096 Jul 11 01:18 My Money Backup
lrwxrwxrwx 1 root root 53 Jul 11 01:18 amazonS3RR.php -> /var/hda/files/drives/drive1/gh/Public/amazonS3RR.php
lrwxrwxrwx 1 root root 46 Jul 11 01:18 php.ini -> /var/hda/files/drives/drive1/gh/Public/php.ini
drwxrwxr-x 6 arnon 504 4096 Jul 11 01:18 .
drwxr-xr-x 2 arnon 504 4096 Jul 11 01:18 Divorce Documents
drwxrwxrwx 3 arnon 504 4096 Jul 11 01:18 Documentation Vault
[ls -ltra /var/hda/files/drives/drive1/gh/Public/] - listing of gh directory shows they are owned by arnon with rw to group
total 108
-rwxrw-r-- 1 arnon users 4612 May 16 21:14 php.ini
-rwxrw-r-- 1 arnon users 76277 May 16 21:15 amazonS3RR.php
drwxr-xr-x 9 root root 4096 Jul 8 09:41 ..
drwxrwxrwx 2 arnon 504 4096 Jul 11 01:18 My Money Backup
drwxr-xr-x 2 arnon 504 4096 Jul 11 01:18 Divorce Documents
drwxrwxrwx 3 arnon 504 4096 Jul 11 01:18 Documentation Vault
drwxrwxrwx 6 arnon 504 4096 Jul 11 01:18 .
drwxr-xr-x 8 arnon users 4096 Jul 11 01:36 Software