I’m running into issues just testing a share I have setup using Yast -> Samba Server.
My user is mturcotte and its home is under /home/mturcotte.
I also have a directory structure / that belongs to mturcotte, i.e. /bea belongs to mturcotte (as well as anything belong /bea).
I created /bea/domains/ac_domain which I which to share (to subsequently mount it from many VMware instances, but that would be later).
Here’s the ownership / permission of /bea/domains/ac_domain:
kevlar:/bea/domains # l
total 12
drwxr-xr-x 3 mturcotte users 4096 Jul 21 20:25 ./
drwxr-xr-x 13 mturcotte users 4096 Jul 21 20:25 …/
drwxr-xr-x 2 mturcotte users 4096 Jul 21 20:25 ac_domain/
Here’s my /etc/samba/smb.conf:
kevlar:/etc/samba # cat smb.conf | grep -v ^#
[global]
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
lanman = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[ac_domain]
browseable = Yes
comment = ac_domain
force group = users
inherit acls = No
path = /bea/domains/ac_domain
read only = No
username = mturcotte
Here’s my /etc/samba/smbusers:
kevlar:/etc/samba # cat smbusers
This file allows you to map usernames from the clients to the server.
Unix_name = SMB_name1 SMB_name2 …
See section ‘username map’ in the manual page of smb.conf for more
information.
This file is not included in the default configuration as it makes the
usage of an user named administrator impossible.
root=administrator
;nobody = guest pcguest smbguest
I tried different ways (pointing to different IPs that are configured on my host, as well as using either user mturcotte or root) to mount but I always get “mount error 13 = Permission denied”
mount -vvv -t cifs //172.16.109.1/ac_domain /home/mturcotte/ttt -ousername=mturcotte,domain=WORKGROUP
mount -vvv -t cifs //172.16.109.1/ac_domain /home/mturcotte/ttt -ousername=WORKGROUP/mturcotte
mount.cifs -vvv //172.16.109.1/ac_domain /home/mturcotte/ttt -ousername=mturcotte,domain=WORKGROUP
mount.cifs -vvv //172.16.109.1/ac_domain /home/mturcotte/ttt -ousername=WORKGROUP/mturcotte
mount -vvv -t cifs //172.16.109.1/ac_domain /home/mturcotte/ttt -ousername=root,domain=WORKGROUP
mount -vvv -t cifs //172.16.109.1/ac_domain /home/mturcotte/ttt -ousername=WORKGROUP/root
mount.cifs -vvv //172.16.109.1/ac_domain /home/mturcotte/ttt -ousername=root,domain=WORKGROUP
mount.cifs -vvv //172.16.109.1/ac_domain /home/mturcotte/ttt -ousername=WORKGROUP/root
Obviously, I made sure directory /home/mturcotte/ttt exists and is owned my mturcotte.
I’ve seen some posts that indicate that mount -t smbfs should work, but I get this when I tried it:
mount: unknown filesystem type ‘smbfs’
I had not worked with Samba in quite a long time, so maybe something changed that I’m not aware of…
Any ideas?
Thanks,
Martin