# Real\_user\_id / effective\_user\_id

**URL:** <https://rubytalk.org/t/real-user-id-effective-user-id/5832>\
**Category:** ruby-talk\
**Created:** [30 April 2003 20:54 UTC](https://rubytalk.org/t/real-user-id-effective-user-id/5832 "2003-04-30T20:54:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel10](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@Daniel10](https://rubytalk.org/u/Daniel10)\
**Post date:** [30 April 2003 20:54 UTC](https://rubytalk.org/t/real-user-id-effective-user-id/5832/1 "2003-04-30T20:54:04Z")

</div>

Hi all,

How do I determine my uid and so forth?  
Any variable for it?

db

> **···**
>
> –  
> Apr 30 Karl Friedrich Gauss born, 1777, mathematician & astronomer  
> Apr 30 The Workers Day in Uruguay  
> Apr 30 Queen’s Birthday in the Netherlands, the Netherlands Antilles  
> Apr 30\* Lag Ba`omer (Commemoration of the Great Rebellion)  
> Apr 30\* Omer 33th day

---

<div class="post-metadata">

**Author:** ![Brian\_Candler](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Brian\_Candler](https://rubytalk.org/u/Brian_Candler)\
**Post date:** [30 April 2003 21:18 UTC](https://rubytalk.org/t/real-user-id-effective-user-id/5832/2 "2003-04-30T21:18:31Z")

</div>

puts Process.uid  
puts Process.euid

# etc

And there are accessors which can be used to do the equivalent of setuid()

Regards,

Brian.

> **···**
>
> On Thu, May 01, 2003 at 05:54:04AM +0900, Daniel Bretoi wrote:
> 
> > How do I determine my uid and so forth?  
> > Any variable for it?
