• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

Way (ways) to change uid of a process

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux

View previous topic :: View next topic  
Author Message
psea
Just Arrived
Just Arrived


Joined: 16 Mar 2009
Posts: 0


Offline

PostPosted: Mon Mar 16, 2009 8:43 pm    Post subject: Way (ways) to change uid of a process Reply with quote

Hello All!

I'm newbie in unixes and in doubt in one question.
How we can change a euid of a process? Become a root for example.
The only possibility that i found is to exec() suid Program. Owner of the Program must be root. Is it the only way to change euid of a Program? or there is another possibility to change euid of a process to whatever i want. If so can i remove all set-uid-programs from my system? Or set-uid-programs is always the case (necessity) in all unixes?

PS sorry for my english. hope you understand the question.
Back to top
View user's profile Send private message
rvdwesten
Just Arrived
Just Arrived


Joined: 31 Dec 2008
Posts: 0
Location: Breda, The Netherlands

Offline

PostPosted: Tue Mar 17, 2009 9:04 am    Post subject: Reply with quote

The setuid() system call can handle these things for you. However, you need the right permissions to perform such actions. If you want be able to setuid(0); you need root permission and the binary must be able to change the uid.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Area

Log in | Register