Author Topic: no su password prompt  (Read 1372 times)

nyvietvet

  • Guest
no su password prompt
« on: August 30, 2010, 12:00:37 PM »
I am running PCLInuxOS2010.07, kernel 2.6.33.5 with the KDE 4.5 desktop.

Since I set up autologin for myself as user, not root, I am no longer prompted for an su password when launching Synaptic, or BleachBit Root.  If this is not easily solved, should I just disable autologin?

Thanks in advance for any assistance.

This is the best damn Linux forum around, hands down!  Kudos.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: no su password prompt
« Reply #1 on: August 30, 2010, 12:01:50 PM »
Did you perchance make any edits to the sudoers file?

nyvietvet

  • Guest
Re: no su password prompt
« Reply #2 on: August 30, 2010, 12:05:14 PM »
Not that I'm aware of, JohnBoy.  I am more of a GUI person, but great question.

Thank you.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: no su password prompt
« Reply #3 on: August 30, 2010, 12:08:04 PM »
Just in case you are logged in as root check the result from
whoami

It should return your user name.

nyvietvet

  • Guest
Re: no su password prompt
« Reply #4 on: August 30, 2010, 12:21:08 PM »
I did that earlier, JohnBoy; no joy.  I just tried disabling autologin from the control center, rebooted, same result.  I was not prompted to sign in, GUI loaded, Synaptic launched with no prompt.
« Last Edit: August 30, 2010, 01:11:07 PM by nyvietvet »

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6232
Re: no su password prompt
« Reply #5 on: August 30, 2010, 12:31:20 PM »

what is the output of the following command? (copy and paste it on the terminal)

cat /etc/group | grep `whoami`


.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

nyvietvet

  • Guest
Re: no su password prompt
« Reply #6 on: August 30, 2010, 12:59:43 PM »
[bill@localhost ~]$ cat /etc/group | grep `whoami`
lp:x:7:mysql,bill
floppy:x:19:mysql,bill
cdrom:x:22:mysql,bill
cdwriter:x:80:mysql,saned,bill
audio:x:81:mysql,bill
video:x:82:mysql,bill
dialout:x:83:mysql,bill
users:x:100:mysql,bill
polkituser:x:490:mysql,bill
bill:x:500:
[bill@localhost ~]$


Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: no su password prompt
« Reply #7 on: August 30, 2010, 01:13:56 PM »
Check what groups your user is a member of ........  can do it through PCC - System - Manage Users - select your user - Edit and check the groups tab

Your user should not be a member of root or wheel groups .....

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6232
Re: no su password prompt
« Reply #8 on: August 30, 2010, 01:16:26 PM »
JohnBoy,
he is a member of all the groups mentioned in the result of the command he gave above

nyvietvet,
strange problem, i have autologin set to a normal account and dont have the problem you are having.

it could be that those two programs have messed up permissions or your system has messed up permissions.

from the same terminal, type this command and give its output here(copy and paste it again)

mkdir /test ; ls -l /test
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

nyvietvet

  • Guest
Re: no su password prompt
« Reply #9 on: August 30, 2010, 01:27:00 PM »
[bill@localhost ~]$ mkdir /test ; ls -l /test
mkdir: cannot create directory `/test': Permission denied
ls: cannot access /test: No such file or directory
[bill@localhost ~]$ su
[root@localhost bill]# mkdir /test ; ls -l /test
total 0

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: no su password prompt
« Reply #10 on: August 30, 2010, 01:30:16 PM »
JohnBoy,
he is a member of all the groups mentioned in the result of the command he gave above



Sorry ...  had missed your post ......  delay between writing and sending ....  :(

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: no su password prompt
« Reply #11 on: August 30, 2010, 01:31:43 PM »
I think a lot at the sudoers file is in order ....

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6232
Re: no su password prompt
« Reply #12 on: August 30, 2010, 01:36:08 PM »

your normal user couldnt create the folder in root's folder and that shows the permissions are in order. i too suspect the problem could be in your sudoers file

log in root on the terminal and then type this command and paste its content here:

cat /etc/sudoers
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

nyvietvet

  • Guest
Re: no su password prompt
« Reply #13 on: August 30, 2010, 01:40:39 PM »
[root@localhost bill]# cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification
# Defaults syslog=auth

# Runas alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
#%wheel ALL=(ALL)       ALL

# Same thing without a password
#%wheel ALL=(ALL)       NOPASSWD: ALL
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6232
Re: no su password prompt
« Reply #14 on: August 30, 2010, 02:00:56 PM »

I cant see any error in your sudoers file and dont see how setting autologin will set synaptic to start without asking for root's password.

..very odd ..

There is some sort of a mechanism for keeping root's privileges for a while after it is requested for the first time. maybe this feature accidentally turned on? try to create another account and log in using it and see if the problem is there too
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..