Here we go. Some of it is quite long.
Code:
carl@home:~$ smbtree -d3
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface eth0 ip=fe80::222:4dff:fe54:86c1%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.1.64 bcast=192.168.1.255 netmask=255.255.255.0
Enter carl's password:
tdb(/var/run/samba/gencache.tdb): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d>
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d>
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1d>
resolve_wins: Attempting wins lookup for name WORKGROUP<0x1b>
resolve_wins: using WINS server 192.168.1.1 and tag '*'
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1b>
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1b>
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1b>
name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
Got a positive name query response from 192.168.1.254 ( 192.168.1.254 )
resolve_lmhosts: Attempting lmhosts lookup for name HOME<0x1d>
resolve_lmhosts: Attempting lmhosts lookup for name HOME<0x1d>
name_resolve_bcast: Attempting broadcast lookup for name HOME<0x1d>
Got a positive name query response from 192.168.1.254 ( 192.168.1.254 )
Connecting to host=192.168.1.254
Connecting to 192.168.1.254 at port 445
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
HOME
resolve_lmhosts: Attempting lmhosts lookup for name HOME<0x1d>
resolve_lmhosts: Attempting lmhosts lookup for name HOME<0x1d>
name_resolve_bcast: Attempting broadcast lookup for name HOME<0x1d>
Got a positive name query response from 192.168.1.254 ( 192.168.1.254 )
Connecting to host=192.168.1.254
Connecting to 192.168.1.254 at port 445
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
\\BTHUB3 BT Home Hub 3.0A File Server
Connecting to host=BTHUB3
resolve_wins: Attempting wins lookup for name BTHUB3<0x20>
resolve_wins: using WINS server 192.168.1.1 and tag '*'
resolve_lmhosts: Attempting lmhosts lookup for name BTHUB3<0x20>
resolve_lmhosts: Attempting lmhosts lookup for name BTHUB3<0x20>
resolve_hosts: Attempting host lookup for name BTHUB3<0x20>
Connecting to 92.242.132.15 at port 445
Connecting to 92.242.132.15 at port 139
Error connecting to 92.242.132.15 (Success)
cli_start_connection: failed to connect to BTHUB3<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
carl@home:~$
Code:
carl@home:~$ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[tmp]"
Processing section "[MacBackup]"
Processing section "[SAMSUNG]"
Loaded services file OK.
'winbind separator = +' might cause problems with group membership.
Server role: ROLE_STANDALONE
[global]
server string = Samba Server
obey pam restrictions = Yes
password server = PDC BDC
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 10
name resolve order = wins lmhosts host bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = No
dns proxy = No
wins server = 192.168.1.1
remote announce = 192.168.1.255
remote browse sync = 192.168.1.1 192.168.1.2
template homedir = /home/%U
template shell = /bin/bash
winbind separator = +
winbind cache time = 15
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
idmap config * : range = 10000-20000
idmap config * : backend = tdb
hosts allow = 192.168.1., 127.
case sensitive = No
[homes]
comment = Home Directories
valid users = %D+%S
read only = No
create mask = 0664
directory mask = 0775
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
read only = No
guest ok = Yes
[MacBackup]
comment = Backups
path = /media/carl/MacBackup
valid users = carl
admin users = carl
write list = carl
read only = No
locking = No
strict locking = No
[SAMSUNG]
path = /media/carl/SAMSUNG
valid users = carl
admin users = carl
write list = carl
read only = No
locking = No
strict locking = No
Code:
carl@home:~$ net usershare info --long
[SAMSUNG]
path=/media/carl/SAMSUNG
comment=
usershare_acl=S-1-1-0:R,S-1-5-21-2713149048-334291725-384866979-1002:F,
guest_ok=n
Code:
carl@home:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 home
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Bookmarks