Code:
$ hostname
n-pc
$ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server (Samba, Ubuntu)
interfaces = 127.0.0.0/8, eth1
bind interfaces only = Yes
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = No
panic action = /usr/share/samba/panic-action %d
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
$ net usershare info --long
[files media]
path=/media/files
comment=
usershare_acl=Everyone:R,N-PC\n:F,
guest_ok=n
[files]
path=/home/n/Desktop/files
comment=
usershare_acl=Everyone:R,N-PC\n:F,
guest_ok=n
$ smbtree
cli_start_connection: failed to connect to 192.168.1.36<20> (192.168.1.36). Error NT_STATUS_CONNECTION_REFUSED
cli_start_connection: failed to connect to N-PC<20> (192.168.1.36). Error NT_STATUS_CONNECTION_REFUSED
Bookmarks