Class GshadowFile
java.lang.Object
com.aoindustries.aoserv.daemon.posix.GshadowFile
Manages access to the
/etc/gshadow file.- Author:
- AO Industries, Inc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents one line of the/etc/gshadowfile on a POSIX server. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]buildGshadowFile(Map<Group.Name, Set<User.Name>> groups) Builds a new version of the gshadow file with necessary adjustments made.static voidwriteGshadowFile(byte[] newContents, Set<PosixFile> restorecon) Must holdgshadowLock.
-
Field Details
-
gshadowLock
Locks the gshadow file for updates.
-
-
Method Details
-
writeGshadowFile
public static void writeGshadowFile(byte[] newContents, Set<PosixFile> restorecon) throws SQLException, IOException Must holdgshadowLock.- Throws:
SQLExceptionIOException
-
buildGshadowFile
Builds a new version of the gshadow file with necessary adjustments made.Must hold
gshadowLock.- Throws:
IOException
-
