CASA/c_micasad/common/UnixUser.cs
2005-10-11 19:51:00 +00:00

43 lines
865 B
C#

using System;
using System.Collections;
using System.IO;
using sscs.cache;
using sscs.common;
using sscs.constants;
namespace sscs.common
{
internal class UnixUser : User
{
internal UnixUser()
{
}
internal UnixUser(UserIdentifier unixUserId)
{
userId = unixUserId;
secretStore = new SecretStore(this);
}
override internal void SetUserName(string username)
{
userName = username;
}
override internal string GetUserName()
{
return userName;
}
override internal string GetUserHomeDir()
{
uint uid = (uint)userId.GetUID();
return Mono.Unix.UnixUser.GetHomeDirectory(uid);
}
}
}