System information
Chapter 5. Samba management and troubleshooting 81
Example 5-3 Public resources
[root@portal1 root]# smbclient -U% -L localhost
added interface ip=9.24.105.99 bcast=9.24.105.255 nmask=255.255.254.0
Domain=[LINUX] OS=[UNIX] Server=[Samba 2.2.7]
Sharename Type Comment
--------- ---- -------
redbook Disk
public Disk
IPC$ IPC IPC Service (Samba Server on Red Hat Linux)
ADMIN$ Disk IPC Service (Samba Server on Red Hat Linux)
Server Comment
--------- -------
PORTAL1 Samba Server on Red Hat Linux
Workgroup Master
--------- -------
DUMMYBRANCH M23BK62W
FCD90020 FCR0A307
FSCLAN T22ROEHM
LINUX PORTAL1
MILKYWAY SATURN
PK_NW MSGTRX01
RAL400 AS4ACONSOLE
SCNF TAMAS02
WORKGROUP M23BK60L
WTRNTDM 78-BA897
The resources available for user mojoe can be seen by executing the command:
smbclient -U mojoe -L localhost
Example 5-4 shows the mojoe home directory is the only additional resource available to
mojoe.
Example 5-4 Resources available to mojoe
[root@portal1 root]# smbclient -L localhost -U mojoe
added interface ip=9.24.105.99 bcast=9.24.105.255 nmask=255.255.254.0
Password:
Domain=[LINUX] OS=[UNIX] Server=[Samba 2.2.7]
Sharename Type Comment
--------- ---- -------
redbook Disk
public Disk
IPC$ IPC IPC Service (Samba Server on Red Hat Linux)
ADMIN$ Disk IPC Service (Samba Server on Red Hat Linux)
mojoe Disk Home Directories
Server Comment
--------- -------
PORTAL1 Samba Server on Red Hat Linux
Workgroup Master
Note: No username or password was supplied after the -U option. The username
password separator, %, must be used to indicate no username and password.