|
|
@ -27,6 +27,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "sesman.h"
|
|
|
|
#include "sesman.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "sys/types.h"
|
|
|
|
|
|
|
|
#include "grp.h"
|
|
|
|
|
|
|
|
|
|
|
|
extern unsigned char g_fixedkey[8];
|
|
|
|
extern unsigned char g_fixedkey[8];
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
@ -70,6 +73,8 @@ env_set_user(char* username, char* passwd_file, int display)
|
|
|
|
if (error == 0)
|
|
|
|
if (error == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
error = g_setgid(pw_gid);
|
|
|
|
error = g_setgid(pw_gid);
|
|
|
|
|
|
|
|
g_initgroups(username,pw_gid);
|
|
|
|
|
|
|
|
|
|
|
|
if (error == 0)
|
|
|
|
if (error == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uid = pw_uid;
|
|
|
|
uid = pw_uid;
|
|
|
|