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: Barry Margolin
Subject: Re: Customising .init.el for root user
Date: Fri, 21 Jun 2013 12:55:30 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

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.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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