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
Modifier and TypeClassDescriptionstatic final class
Represents one line of the/etc/gshadow
file on a POSIX server. -
Field Summary
-
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 void
writeGshadowFile
(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:
SQLException
IOException
-
buildGshadowFile
Builds a new version of the gshadow file with necessary adjustments made.Must hold
gshadowLock
.- Throws:
IOException
-