Skip to main content

Posts

Showing posts from January, 2016

Mac os library folders

Essentially none. There are three Library folders: Macintosh HD/System/Library/ Macintosh HD/Library/ Macintosh HD/Users/youruseraccount/Library/ The first belongs exclusively to the operating system and is accessible only to the root user; The second belongs to all users on the computer but is only accessible to the admin and root users; The third belongs to the specific user. It is accessible to the specific user and the root user. Generally, you should never attempt to access the first Library unless you really know what you are doing and why you are doing it. Under most conditions you should have no reason to access the second level Library. You can access the Library folder in your user account, but there usually is no need to do so, and you should know what you are doing if you do access it.

Kerberos Java Client: Code

Reference link: http://sachithdhanushka.blogspot.com/2014/02/kerberos-java-client-code.html Kerberos Java Client: Code This is the second post of the Kerberos Java Client series. First post can be found here [1]. This post is on the java code that is used to connect to the Kerberized server using ssh, execute a command ('ls') there and get results ( read the output stream). You need to provide the locations of the Kerberos configuration file and the Java configuration file as System properties. I've done it inside the class itself. The code is pretty much self explanatory. import com.jcraft.jsch.*;     import java.io.IOException; import java.io.InputStream; import java.util.Properties;   public class JSCHKerberosConnector {      public static void main() {            String host = "test.xsede.org" ;          String user = "sachith" ;          String  command = "ls -ltr" ;            JSch jsch = new