Hi All,
This is my first post.
I’m having difficulty in accessing a samba share I have created on my OpenSuse Machine via Windows Vista.
This is on an external USB deive mounted by the root user, I don’t have any issues accessing directories that are on the root disk itself.
I suspect permissions, but really cannot see where exactly.
i.e.
/etc/samba/smb.conf
[global]
workgroup = ECS
ldap ssl = no
socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536
SO_SNDBUF=65536
unix password sync = Yes
force group = users
remote announce = 192.168.1.255/ECS
os level = 65
interfaces = 192.168.1.57/255.255.255.0
map to guest = Bad User
domain master = Yes
passwd program = /usr/bin/yppasswd %u
keepalive = 30
domain logons = Yes
local master = Yes
preferred master = Yes
security = user
lanman auth = Yes
client lanman auth = Yes
client plaintext auth = Yes
netbios name = k8-fx60-s1
ldap suffix =
passdb backend = smbpasswd
log level = 3
[homes]
comment = Users Home Directories
valid users = %S, %D%w%S
browseable = No
writeable = yes
path = %H
read only = No
create mode = 0750
allow hosts = 192.168.1.0/24
directory mode = 750
create mask = 0750
directory mask = 750
hosts allow = 192.168.1.0/24
inherit acls = Yes
[temp]
comment = Temp Filesystem
locking = No
writeable = yes
path = /tmp
create mode = 0750
allow hosts = 192.168.1.0/24
directory mode = 750
create mask = 0750
directory mask = 750
hosts allow = 192.168.1.0/24
read only = No
[data]
browseable = yes
comment = Data Filesystem
writeable = yes
path = /Data
guest ok = yes
allow hosts = 192.168.1.0/24
hosts allow = 192.168.1.0/24
read only = No
force user = admin
From the above, homes works ok, and this is an automount from another linux machine on the same network
/tmp works ok as well and that is a local directory on the linux machine’s internal root hard disk.
However /data doesn’t work, but this is on the linux machine’s external USB hard disk.
Permissions to the directories are: -
ls -ld /tmp
drwxrwxrwt 143 root root 12288 Mar 23 17:30 /tmp
k8-fx60-s1:/etc/samba # ls -ld /Data
drwxrwxr-x 9 admin users 4096 Mar 23 13:14 /Data
I think the difference above is usual for /tmp. N.B. I am accessing the directories in both cases as the user admin.
As user admin, directly on the linux machine I can access the directory and list it, i.e. command line: -
k8-fx60-s1:/etc/samba # su - admin
admin@k8-fx60-s1:~> cd /Data
admin@k8-fx60-s1:/Data> ls
Apps Audio Download EMU lost+found Utilitys Video
If I do the same with smbclient, I get the following: -
admin@k8-fx60-s1:/Data> smbclient //192.168.1.57/data
Enter admin’s password:
Domain=[ECS] OS=[Unix] Server=[Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-x86_64]
smb: > dir
NT_STATUS_ACCESS_DENIED listing *
65535 blocks of size 33553920. 65535 blocks available
I really don’t understand this at all as I cannot see any problems.
N.B. “force user = admin” in the smb.conf file was added as I was trying everything
and that was my last attempt, I’ve also stripped mode and mask lines without
success. It still didn’t work.
I’m grateful for any help. Many thanks for reading.