[jcifs] JCIFS access from unix to windows

Mohan Radhakrishnan mohanr at fss.co.in
Wed May 18 04:29:48 MDT 2011


Hi,
     We have the jcifs log level set to 10 and now we have gathered log
dumps.


I think we need to find a way to interpret the logs and also check why
access is denied even to ' getShareSecurity'

    public void getShareSecurity( SmbFile file ) throws Exception {

    	ACE[] security;

        security =  file.getShareSecurity(true);
        
        System.out.println("Share Permissions:");
        
        for (int ai = 0; ai < security.length; ai++) {
            System.out.println(security[ai].toString());
        }
        
        System.out.println("Security:");
        
        security = file.getSecurity(true);
        
        for (int ai = 0; ai < security.length; ai++) {
            System.out.println(security[ai].toString());
        }
    }

Thanks,
Mohan

-----Original Message-----
From: jcifs-bounces at lists.samba.org
[mailto:jcifs-bounces at lists.samba.org] On Behalf Of Mohan Radhakrishnan
Sent: Wednesday, May 18, 2011 2:36 PM
To: jcifs at lists.samba.org
Subject: Re: [jcifs] JCIFS access from unix to windows

Hi,

     :-)

     This is a production box governed by PCI regulations and guarded by
a very unhelpful and political infrastructure team.

     I was thinking of HP-UX network log tracing tools. Never used it
and also not sure how to trace only SMB calls.


Mohan

-----Original Message-----
From: jcifs-bounces at lists.samba.org
[mailto:jcifs-bounces at lists.samba.org] On Behalf Of Giampaolo Tomassoni
Sent: Wednesday, May 18, 2011 1:22 PM
To: jcifs at lists.samba.org
Subject: Re: [jcifs] JCIFS access from unix to windows

> Hi,
> 
> We have been using JCIFS from Windows to access Windows shares quite
> successfully and we know the JCIFS java library has a way to dump the
> packets.
> 
> Now we would like to connect from Unix to Windows and we are facing a
> problem.
> 
> Is there a certain way to debug this issue when we use HP-UX ? We know
> that wireshark with a SMB plugin is available but it is not allowed in
> these machines.
> 
> Thanks,
> Mohan

Use a "sniffing" pc with two bridged ethernet cards (which is a function
available both in Linux and Windows) running wireshark, connected the
Unix
and HP-UX systems through it.

You may even use a sniffing pc with a single ethernet card provided you
connect the three units through a smart switch with monitoring
capability.

Giampaolo



More information about the jCIFS mailing list