Posts: 38
lmart
Joined: 28 Jul 2011
#1
as root, apt-get update then apt-get upgrade
now, when trying to exit antiX, nothing happens, have to hold the power button until the laptop turn off

how do you troubleshoot this problem?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
Did you upgrade the /etc/sudoers file?
Post its content here.

in the meantime you can try in terminal

ShutdownCommand=sudo halt
RebootCommand=sudo reboot

also post results of inxi -F command in terminal so we can see what windows manager you are using also.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
Mine on this box for a reference/info

Code: Select all

root@biker:/home/harry# cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the"visudo" command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL
 
%users ALL=(root) NOPASSWD: /sbin/halt 

%users ALL=(root) NOPASSWD: /sbin/reboot 

%users ALL= /usr/sbin/pppoeconf  

%users ALL=(root) NOPASSWD: /sbin/fdisk 

##%users ALL=(root) NOPASSWD: /usr/bin/rox

Code: Select all

root@biker:/home/harry# inxi -F
System:    Host: biker Kernel: 2.6.38-7.dmz.2-liquorix-686 i686 (32 bit) 
           Desktop Fluxbox 1.3.1 Distro: antiX-M11-base-686 Jayaben Desai 25 April 2011
Machine:   System: GATEWAY product: W3507 version: 500 serial: GRD6B50000253 
           Mobo: Intel model: D102GGC2 version: AAD70214-201 serial: BTGC64000ACC
           Bios: Intel version: GC11020M.15A.2010.2006.0817.0956 date: 08/17/2006
CPU:       Single core Intel Celeron D CPU (-UP-) cache: 512 KB flags: (lm nx sse sse2 sse3) clocked at 3199.875 MHz 
Graphics:  Card: ATI RC410 [Radeon Xpress 200] X.org: 1.10.4 driver: radeon tty size: 80x24 Advanced Data: N/A for root 
Audio:     Card: ATI IXP SB4x0 High Definition Audio Controller driver: HDA Intel Sound: ALSA ver: 1.0.23
Network:   Card: Realtek RTL-8139/8139C/8139C+ driver: 8139too 
           IF: eth0 state: down speed: 10 Mbps duplex: half mac: <filtered>
Drives:    HDD Total Size: 120.0GB (5.9% used) 1: /dev/sda ST3120213A 120.0GB 
Partition: ID: / size: 109G used: 6.6G (7%) fs: ext3 ID: swap-1 size: 2.17GB used: 0.00GB (0%) fs: swap 
Sensors:   System Temperatures: cpu: 27.4C mobo: 28.4C 
           Fan Speeds (in rpm): cpu: 2251 fan-2: 875 fan-4: 0 
Info:      Processes: 95 Uptime: 2 min Memory: 63.3/880.0MB Client: Shell inxi: 1.7.23 
Posts: 38
lmart
Joined: 28 Jul 2011
#4
rokytnji,

thanks, appreciate your help
didn't know to upgrade the /etc/sudoers file; frankly, have no idea what to edit
your recommendations to shut down/reboot work, thanks

here's the info you requested, hope it helps ...

Code: Select all

root@antiX1:/home/lmart# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo    ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on"#include" directives:

#includedir /etc/sudoers.d

Code: Select all

root@antiX1:/home/lmart#  inxi -F
System:    Host antiX1 Kernel 2.6.36-1-mepis i686 (32 bit) Distro antiX-M11-486 Jayaben Desai 01 May 2011
CPU:       Single core Mobile Intel Pentium 4 - M (-UP-) cache 512 KB flags (sse sse2) bmips 1689.27 clocked at 1200.00 MHz 
Graphics:  Card: nVidia NV11 [GeForce2 Go] bus-ID: 01:00.0 X.org 1.9.5 Res: 80x24 Gfx Data: N/A for root 
Audio:     Card Intel 82801CA/CAM AC'97 Audio Controller driver Intel ICH ports 1c00 1880 bus-ID: 00:1f.5
           Sound: Advanced Linux Sound Architecture Version 1.0.23
Network:   Card 3Com 3c905C-TX/TX-M [Tornado] driver 3c59x port 3000 bus-ID: 02:01.0
Disks:     HDD Total Size: 4.9GB (70.9% used) 1: /dev/sda FUJITSU_MHH2048A 4.9GB 
Partition: ID:/ size: 3.5G used: 3.3G (99%) fs: ext3 ID:swap-1 size: 1.10GB used: 0.00GB (0%) fs: swap 
Info:      Processes 82 Uptime 7 min Memory 150.7/501.5MB Runlevel 5 Client Shell inxi 1.4.95 
root@antiX1:/home/lmart#
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#5
Looks like you accepted the debian maintainers version of /etc/sudoers file on your upgrade by saying yes"y" when asked during upgrade.

Open thunar as root using run in menu, Go to your /etc/sudoers file and rename it.

Code: Select all

sudoers.bk
Then make a new text file called

Code: Select all

sudoers
Copy and paste my posted

Code: Select all

# sudoers file.
#
# This file MUST be edited with the"visudo" command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL) ALL

%users ALL=(root) NOPASSWD: /sbin/halt 

%users ALL=(root) NOPASSWD: /sbin/reboot 

%users ALL= /usr/sbin/pppoeconf 

%users ALL=(root) NOPASSWD: /sbin/fdisk 

##%users ALL=(root) NOPASSWD: /usr/bin/rox 
into that blank new sudoers text file you just made with gedit and save it. Then log out and back in. Then try reboot and shutdown via gui again. When doing a dist-upgrade. Don't accept the maintainers version of sudoers file. Keep the default AntiX one next time.
Same for slim login also. Keep the AntiX one or you will lose the ability to change slim background with the background of your choice via antixcc and be stuck with Debian spacefun or other Debian backspash image background for Slim login background.

Edit: Mine is from a base install of AntiX 11 i686 iso while yours is i486 so I might be mistaken. I Hope somebody else weighs in on this.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#6
Edit: Mine is from a base install of AntiX 11 i686 iso while yours is i486 so I might be mistaken. I Hope somebody else weighs in on this.
I'm quite sure the sudoers file is the same for all variations of antiX. IMO you figured out the problem and gave a good solution. The only thing I would change would be to copy the original sudoers file instead of renaming it. That way if something awful happens happens before they get a chance to save the new sudoers file, they are still able to sudo.
Posts: 38
lmart
Joined: 28 Jul 2011
#7
rokytnji & BitJam,

thanks for sticking with me, tried your suggestions, see below
results: still cannot exit, must sudo halt

Code: Select all

lmart@antiX1:~$ su
Password: 
root@antiX1:/home/lmart# cd /etc
root@antiX1:/etc# ls sud*
sudoers  sudoers.dpkg-old

sudoers.d:
README
root@antiX1:/etc# cp sudoers /media/KINGSTON/antiX/sudoers.org
root@antiX1:/etc# mv sudoers sudoers.bak
root@antiX1:/etc# cp /media/KINGSTON/antix/sudoers /etc/
root@antiX1:/etc# ls sud*
sudoers  sudoers.bak  sudoers.dpkg-old

sudoers.d:
README
root@antiX1:/etc# cat sudoers
# sudoers file.
#
# This file MUST be edited with the"visudo" command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL) ALL

%users ALL=(root) NOPASSWD: /sbin/halt 

%users ALL=(root) NOPASSWD: /sbin/reboot 

%users ALL= /usr/sbin/pppoeconf 

%users ALL=(root) NOPASSWD: /sbin/fdisk 

##%users ALL=(root) NOPASSWD: /usr/bin/roxroot@antiX1:/etc#
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#8
Your /etc/sudoers file should look like this:

Code: Select all

# sudoers file.
#
# This file MUST be edited with the"visudo" command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

Defaults    env_reset
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# User privilege specification
root    ALL=(ALL) ALL
 
%users ALL=(root) NOPASSWD: /sbin/halt 

%users ALL=(root) NOPASSWD: /sbin/reboot 

%users ALL= /usr/sbin/pppoeconf  

%users ALL=(root) NOPASSWD: /sbin/fdisk 

%users ALL=(root) NOPASSWD: /usr/bin/rox

ie you are missing thses 2 lines:

Code: Select all

Defaults    env_reset
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Posts: 38
lmart
Joined: 28 Jul 2011
#9
anticapitalista,

thanks for the assist, hope I didn't miss those 2 lines in the original post from rokytnji
tried your recommendations, see below, still 'noworkee', did I miss something?
-------
lmart@antiX1:~$ su
Password:
root@antiX1:/home/lmart# cp /media/KINGSTON/antiX/sudoers /etc/

Code: Select all

root@antiX1:/home/lmart# cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the"visudo" command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL) ALL

%users ALL=(root) NOPASSWD: /sbin/halt 

%users ALL=(root) NOPASSWD: /sbin/reboot 

%users ALL= /usr/sbin/pppoeconf 

%users ALL=(root) NOPASSWD: /sbin/fdisk 

##%users ALL=(root) NOPASSWD: /usr/bin/rox

Defaults   env_reset

Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
root@antiX1:/home/lmart#
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#10
Put those 2 missing entries you added in the middle of the file under

# Cmnd alias specification
Posts: 38
lmart
Joined: 28 Jul 2011
#11
my screwup, I see it in anticapitalist's post, will re-run
Posts: 38
lmart
Joined: 28 Jul 2011

20 Oct 2011, 23:45 #12

ok, copied anticapitalista's sudoers code, cp from my usb stick to /etc, cat the file and everything is there - still 'noworkee'

maybe I should re-install from the LiveCD, then based on what learned so far do the following

#1 apt-get update
#2 apt-get upgrade (watch carefully and do not accept any changes to 'sudoers' or ' slim login')
#3 remove game apps
#4 install iron

then I am back to ground zero ... thoughts?
Posts: 903
plvera
Joined: 11 Oct 2008
#13
Imart:

You could reinstall and try the steps you suggested. Alterntatively you could copy the sudoers file when runnnig live CD and see if that fixes it.

If everything else is working to your satfisfaction, I would conside if a resintall is worth the time and effor for a relatively minor problem, since you can just do halt from a terminal but it's up to you. I've certainly reinstalled plenty of times __{{emoticon}}__
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#14
Booted up my Antix 8.5 core i686 LXDE install on my Amrel to compare /etc/sudoers for grins


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ompldr.org/vYXdrbg"
linktext was:"http://ompldr.org/vYXdrbg"
====================================


my desktop


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ompldr.org/vYXdrcg"
linktext was:"http://ompldr.org/vYXdrcg"
====================================


Noticed how my entry for those 2 lines missing lie Anti mentioned sit a little higher in the text file sudoers. __{{emoticon}}__

Shutdown, reboot, and Logout and lock screen work fine on both of my Installs. You will be asked imart after a dist-upgrade on whether to accept the package maintainers version for slim and sudoers. Just hit the enter key as that is the answer no. Enter key is default for no. You have to type in a y for yes to accept a package maintainers version. Things like udev you must accept the package maintainers version.

smxi explains this pretty well when doing dist-upgrades through smxi.

Not sure why your install went fubar. I run iron browser also. I used to run it static till iron gave up a listing with their .deb. package.
Posts: 117
buttcoffee
Joined: 20 Aug 2010
#15
It could be possible you're haven't been added to the sudo group. Check to see if you've been added to it. it won't read it if your not in the group. perhaps this could be the problem.

this is mine and you see sudo there. if it's not there in yours, then you need to add yourself to it.

Code: Select all

tim@antiX1:~$ groups
users lp uucp dialout voice cdrom floppy tape sudo audio dip video plugdev games fuse netdev lpadmin powerdev scanner