[jcifs] using jcifs for retrieving shares

Christopher R. Hertel crh at ubiqx.mn.org
Thu Nov 14 04:31:25 EST 2002

I don't clearly understand what you are entering.

If it's


Then you would get a list of shares offered by the server *or* an "access 
denied" error.  If you get "access denied", then you need to provide a 
username and password.  Some (not all) servers will deny access to the 
list of shares if you are not authenticated.  Some servers allow the guest 
account to list shares, and others will allow anonymous login.  On the 
other hand, some servers require a regular user login before they will 
provide the share list.

Chris -)-----

On Wed, Nov 13, 2002 at 01:50:44PM +0200, Bogdan Cirstea wrote:
> hi!
> i try to get the list of liles shared on a computer in my local network. i us for this: 
> jcifs.smb.SmbFile file = new jcifs.smb.SmbFile("smb://computer name_name");
> jcifs.smb.SmbFile file_list[] = file.listFiles();
> but i'be got jcifs.smb.SmbException: Access denied
> do you know how i should do that ?
> tks
> -- 
> _______________________________________________
> Get your free email from http://www.graffiti.net
> Powered by Outblaze

Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org

More information about the jcifs mailing list