Posts: 47
metallextrem
Joined: 07 Apr 2010
#1
Hi!

I made a new user in antiX M8.5. It works fine but I can't make it reboot or shut down, the shut down window freezes. Any help?

Thanks!
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
In antiXcc->System->Manage Users-Repair-Add user is new username and check Group memberships and then Ok.

You might need to logout/reboot for changes to take effect.
Posts: 47
metallextrem
Joined: 07 Apr 2010
#3
I try it on both users and it reboot automatically. But it's not solved. It only allow me to log out, then i have to shut down manually. If I click on reboot or shut down, it freezes. Any idea?
Thanks anyway.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#4
You have to set in ~/.icewm/preferences

ShutdownCommand="sudo halt"
RebootCommand="sudo reboot"
Posts: 516
oldhoghead
Site Admin
Joined: 01 Oct 2007
#5
Hmm,

as an expriment, I add a new user and encounterd the very same thing, those commands are already in ~/.icewm/preferences

as a user in terminal I ran exitantix.sh and got the usual warning from sudo, then a request for the sudo password for my user,
there is a permissions issue preventing my new user from executing either reboot or shutdown.
my home folder has me as owner and users = group
my new user has the user as owner and users =owner

Also I did try to repair the user under muser and got exactly the same thing
so the permissions need to be changed for the group to be users instead of owner

cheers,
oldhoghead
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#6
Try commenting out these lines in /etc/adduser.conf and adding a new user (for the already added one you would have to add it to the users group):
EXTRA_GROUPS="dialout cdrom floppy audio video plugdev users"
ADD_EXTRA_GROUPS=1

For metalextrem, you could add your new user to the users group

Code: Select all

adduser newuser users
Just because the sudoers file is set up to not ask for a password for halt and reboot for the users group.
Posts: 516
oldhoghead
Site Admin
Joined: 01 Oct 2007
#7
secipolla,

Good work, I had to uncomment those two lines, I had already deleted the old user and then added a new user and reboot and shutdown now work as they should.
Thanks

Anti, may want to change this for the next version.

cheers,
oldhoghead
Posts: 47
metallextrem
Joined: 07 Apr 2010
#8
I'm sorry to say that I cannot fix it. This is a bit complex for me and I just hope to be solved in the next version. I can wait. Sound card is not working for me in the new user too, by the way.
Thanks for the help anyway!
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#9
Yes you can fix it.

Let's say you new user is called metal. First delete it (don't worry about its home folder, it won't be deleted): become root and

Code: Select all

deluser metal
Then edit /etc/adduser.conf: open the run box from the menu or by super+g (super is the Windows key) and put

Code: Select all

geany /etc/adduser.conf
check the 'Run as root' box and click OK. Scroll down the file and remove the # from the beginning of lines 77 and 81 so it stands like this

Code: Select all

# Set this if you want the --add_extra_groups option to adduser to add
# new users to other groups.
# This is the list of groups that new non-system users will be added to
# Default:
EXTRA_GROUPS="dialout cdrom floppy audio video plugdev users"

# If ADD_EXTRA_GROUPS is set to something non-zero, the EXTRA_GROUPS
# option above will be default behavior for adding new, non-system users
ADD_EXTRA_GROUPS=1
* this will make every user you create to be part of dialout cdrom floppy audio video plugdev users groups without you having to tell that explicitly. By being a member of the users group it will be able to reboot and shutdown from within IceWM and by being a member of the audio group your sound card will work with it.
Save the file and close Geany. Now in a terminal as root add again the user and your problem is fixed:

Code: Select all

adduser metal
-edit- I hadn't paid attention to the user assistant part so this could be considered a bug since the main groups should be set in a non-expert tool. But that tool was made for MEPIS and while it still has some useful options it seems to be not quite optimized for antiX.