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 created a new user account, with user name and password.

Now, when I try to switch off my PC, from the top bar, it comes back to the login account screen.

When I click the relevant option, it suspends, logs off user and restarts, but does not switch off.

Any solution?

share|improve this question
    
Can you at least do a sudo poweroff? Are you trying this from the new account that you just created? –  Lord Loh. Nov 8 '12 at 20:25
    
No. I tried from the panel. But from the users I had at the time (myself -Administrator, the new user -Standard, and guest. All with same effect, taking me to the log in screen. –  Automat Nov 9 '12 at 22:33
    
And does sudo poweroff work properly? –  Lord Loh. Nov 9 '12 at 22:48
add comment

1 Answer 1

up vote 1 down vote accepted

How did you create the user? Command line useradd or the GUI?

If using the GUI, what type of user is it? Standard or Administrator?

Try to run the following command in a terminal:

id username

OR

groups username

You may need to add the user to adm and sudo group (usermod -a -G adm username) to be able to shutdown or reboot.

NOTE: If you want to understand why, check /etc/sudoers you see the following:

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL
share|improve this answer
    
I created the new user via GUI. System settings > User accounts. –  Automat Nov 9 '12 at 22:35
    
Was that a standard or administrator account? –  Terry Wang Nov 10 '12 at 10:11
add comment

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.