Linux noob here. Basically, I want to create several users with full access only to their own home directories.
Here my current /etc/samba/smb.conf
config:
#=============== Global definition ===============
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no
#=============== Share Definitions ===============
[homes]
comment = Home Directories
browseable = yes
read only = no
create mask = 0700
directory mask = 0700
valid users = %S
I create new users in the shell with adduser bob
Also, I create users in samba with smbpasswd -a bob
I create them with same password, but still windows says, \\192.168.1.2\bob is not accessible. You might not have permission...
and so on.
I tried to work with several tutorials, but still cannot fix the problem.
From windows, nbtstat -A 192.168.1.2
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
UBUNTU <00> UNIQUE Registered
UBUNTU <03> UNIQUE Registered
UBUNTU <20> UNIQUE Registered
☺☻__MSBROWSE__☻<01> GROUP Registered
WORKGROUP <00> GROUP Registered
WORKGROUP <1D> UNIQUE Registered
WORKGROUP <1E> GROUP Registered
This is from debian, nmblookup -A 192.168.1.2
Looking up status of 192.168.1.2
UBUNTU <00> - B <ACTIVE>
UBUNTU <03> - B <ACTIVE>
UBUNTU <20> - B <ACTIVE>
..__MSBROWSE__. <01> - <GROUP> B <ACTIVE>
WORKGROUP <00> - <GROUP> B <ACTIVE>
WORKGROUP <1d> - B <ACTIVE>
WORKGROUP <1e> - <GROUP> B <ACTIVE>
This command didn't work, smbutil -v status -ae 192.168.1.2
I tried to connect from, Ubuntu (different machine), smb://192.168.1.2/bob/
and it works. smbclient //192.168.1.2/bob -U bob
also works.
samba@samba:~$ nbtscan 192.168.1.2 Doing NBT name scan for addresses from 192.168.1.2 IP address NetBIOS Name Server User MAC address ------------------------------------------------------------------------------ 192.168.1.2 UBUNTU <server> UBUNTU 00:00:00:00:00:00
smbutil -v status -ae [IP ADDRESS]
should tell you your netbios name. From Windows you can usenbtstat -A [IP ADDRESS]
. The ip address being your samba server of course.