01: package ch.ethz.ssh2.sftp;
02:
03: /**
04: *
05: * Permissions for the 'permissions' field in the SFTP ATTRS data type.
06: * <p>
07: * "<i>The 'permissions' field contains a bit mask specifying file permissions.
08: * These permissions correspond to the st_mode field of the stat structure
09: * defined by POSIX [IEEE.1003-1.1996].</i>"
10: *
11: * @author Christian Plattner, plattner@inf.ethz.ch
12: * @version $Id: AttribPermissions.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $
13: *
14: */
15: public class AttribPermissions {
16: /* Octal values! */
17:
18: public static final int S_IRUSR = 0400;
19: public static final int S_IWUSR = 0200;
20: public static final int S_IXUSR = 0100;
21: public static final int S_IRGRP = 0040;
22: public static final int S_IWGRP = 0020;
23: public static final int S_IXGRP = 0010;
24: public static final int S_IROTH = 0004;
25: public static final int S_IWOTH = 0002;
26: public static final int S_IXOTH = 0001;
27: public static final int S_ISUID = 04000;
28: public static final int S_ISGID = 02000;
29: public static final int S_ISVTX = 01000;
30: }
|