Computing.Net > Forums > Solaris > Change User-GID during process??

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Change User-GID during process??

Reply to Message Icon

Name: Olli
Date: August 1, 2001 at 00:00:01 Pacific
Comment:

Hello,

I have to change my User-Group-ID to another of my groups. The root is can do it, but any other user, couldnt do it.

My Programm:
#include
#include

main()
{
gid_t gid;
int fd;
gid=getgid();
printf("GID: %ld\n",gid);
setgid(7204);
setegid(7204);
gid=getgid();
printf("GID: %ld\n",gid);
fd = creat("diens.txt",0);
system("mkdir diens");

}
Please help my

I have to change it

Olli



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Error Cant open display: ... Solaris 8 on 32Mb machine



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Change User-GID during process??

force a single user level during boot www.computing.net/answers/solaris/force-a-single-user-level-during-boot/1124.html

Problem with non root user www.computing.net/answers/solaris/problem-with-non-root-user/3117.html

/proc utilities www.computing.net/answers/solaris/proc-utilities/4357.html