Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to know, why it is required to reboot, to apply the changes, which I made.

I refer to the use of

adduser username sudo

I use Ubuntu 12.04.1 LTS "Server".

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You are not required to reboot the system but you have to log out and log in again. Group membership is evaluated at login time only.

If you are in a situation in which logging out and back in is inconvenient (for example, an SSH session) then you can just spawn a login subshell with su - <user> (or equivalently su -l <user> or su --login <user>) but it will work only in that subshell.
(thx to steeldriver for pointing this out).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.