2005-10-11 21:51:00 +02:00
|
|
|
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();
|
2006-01-12 04:57:58 +01:00
|
|
|
Mono.Unix.UnixUserInfo uui = new Mono.Unix.UnixUserInfo(uid);
|
|
|
|
return uui.HomeDirectory;
|
2005-10-11 21:51:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|