Hi altair4,
Output for smbtree as below
asus@asus-1215B-1215B ~ $ smbtree
The program 'smbtree' is currently not installed. You can install it by typing:
sudo apt-get install smbclient
asus@asus-1215B-1215B ~ $ sudo apt-get install smbclient
[sudo] password for asus:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
cifs-utils
The following NEW packages will be installed:
smbclient
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 5,639 kB of archives.
After this operation, 42.3 MB of additional disk space will be used.
Get:1
http://archive.ubuntu.com/ubuntu/ quantal/main smbclient amd64 2:3.6.6-3ubuntu5 [5,639 kB]
Fetched 5,639 kB in 10s (514 kB/s)
Selecting previously unselected package smbclient.
(Reading database ... 159886 files and directories currently installed.)
Unpacking smbclient (from .../smbclient_2%3a3.6.6-3ubuntu5_amd64.deb) ...
Processing triggers for man-db ...
Setting up smbclient (2:3.6.6-3ubuntu5) ...
asus@asus-1215B-1215B ~ $ smbtree
Enter asus's password:
asus@asus-1215B-1215B ~ $ smbtree
Enter asus's password:
asus@asus-1215B-1215B ~ $ sudo -s
asus-1215B-1215B ~ # smbtree
Enter root's password:
asus-1215B-1215B ~ # exit
exit
asus@asus-1215B-1215B ~ $
Output for testparm -s
asus@asus-1215B-1215B ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum
Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Documents]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = JINQUAN
server string = %h server (Samba, Ubuntu)
encrypt passwords = No
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* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Documents]
path = /home/asus/Documents
read only = No
guest ok = Yes
asus@asus-1215B-1215B ~ $
Output for net usershare info --long as below:
asus@asus-1215B-1215B ~ $ net usershare info --long
asus@asus-1215B-1215B ~ $ sudo -s
asus-1215B-1215B ~ # net usershare info --long
asus-1215B-1215B ~ # exit
exit
asus@asus-1215B-1215B ~ $
Thank you for helping.