help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customising .init.el for root user


From: J. David Boyd
Subject: Re: Customising .init.el for root user
Date: Fri, 21 Jun 2013 13:15:29 -0400
User-agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.3 (cygwin)

Barry Margolin <barmar@alum.mit.edu> writes:

> In article <mailman.2149.1371830721.22516.help-gnu-emacs@gnu.org>,
>  david@adboyd.com (J. David Boyd) wrote:
>
>> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 
>> >> Then root is always user id 0?
>> >
>> > Almost: in reality, user-id 0 is the user that has the extra privileges.
>> > It is customarily called "root", but it can also have some other name,
>> > or even several names.
>> >
>> >
>> >         Stefan
>> 
>> and if you start emacs with a sudo command, then your euid becomes this
>> super-user, #0?  Very interesting.
>
> Yes. There are places in the kernel where it does things like
>
> if (eff_uid == 0 || check_access(...))
>
> The superuser is defined as the user with UID 0.

Good to know, thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]