You are not logged in.

#1 2007-05-29 18:13:03

CaspianXI
Member
Registered: 2007-05-29
Posts: 59

Adding user to a group

I've got a feeling that this is really dumb question... but I can't seem to figure it out.

I want to be able to shutdown, reboot, suspend, etc. without being root. On the wiki, it says that I need to add my user to the power group. So, I edited /etc/group and edited the line with my username to look like this:

caspian:x:1000:power

(my username is caspian)

But I still can't execute shutdown, reboot, or powersave from my normal user account.

Did I do something wrong? Is there something else I need to do to add myself to the power group?

Thanks!

Offline

#2 2007-05-29 18:15:33

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: Adding user to a group

what you did is added the "user" power to your group. wink you have to do it this way:

power:x:99:caspian

(or whatever number is for power, 99 just for example)


you can also add users to groups with the gpasswd command, e.g.:

# gpasswd -a caspian power

Last edited by slackhack (2007-05-29 18:17:54)

Offline

#3 2007-06-10 23:07:41

CaspianXI
Member
Registered: 2007-05-29
Posts: 59

Re: Adding user to a group

Thanks -- it worked! I'm so sorry that I forgot to reply...

caspianxi

Offline

Board footer

Powered by FluxBB