Class PasswdFile.Entry
java.lang.Object
com.aoindustries.aoserv.daemon.posix.PasswdFile.Entry
- Enclosing class:
PasswdFile
Represents one line of the
/etc/passwd
file on a POSIX server.-
Constructor Summary
ConstructorDescriptionEntry
(User.Name username, int uid, int gid, User.Gecos fullName, User.Gecos officeLocation, User.Gecos officePhone, User.Gecos homePhone, PosixPath home, PosixPath shell) Constructs a passwd file entry given all the values. -
Method Summary
Modifier and TypeMethodDescription<A extends Appendable>
AappendTo
(A out) Appends thisPasswdFile.Entry
as it would be written in/etc/passwd
, not including any newline.The full name ornull
if not set.int
getGid()
The group id.getHome()
The home directory.The home phone ornull
if not set.The office location ornull
if not set.The office phone ornull
if not set.getShell()
The shell interpreter.int
getUid()
The user id.The username the entry is for.toString()
Gets thisPasswdFile.Entry
as it would be written in/etc/passwd
, not including any newline.
-
Constructor Details
-
Entry
public Entry(User.Name username, int uid, int gid, User.Gecos fullName, User.Gecos officeLocation, User.Gecos officePhone, User.Gecos homePhone, PosixPath home, PosixPath shell) Constructs a passwd file entry given all the values.
-
-
Method Details
-
toString
Gets thisPasswdFile.Entry
as it would be written in/etc/passwd
, not including any newline. -
appendTo
Appends thisPasswdFile.Entry
as it would be written in/etc/passwd
, not including any newline.- Throws:
IOException
- See Also:
-
getUsername
The username the entry is for. -
getUid
public int getUid()The user id. -
getGid
public int getGid()The group id. -
getFullName
The full name ornull
if not set. -
getOfficeLocation
The office location ornull
if not set. -
getOfficePhone
The office phone ornull
if not set. -
getHomePhone
The home phone ornull
if not set. -
getHome
The home directory. -
getShell
The shell interpreter.
-