Author Topic: Gparted won't accept root password??? [SOLVED!]  (Read 8799 times)

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
That seems correct to me.     

Here these commands launch gparted without issue:     
gksu -l /usr/sbin/gparted     
gksu -u root /usr/sbin/gparted     

As root (su):     
usr/sbin/gparted
-bash: usr/sbin/gparted: No such file or directory ???     

missing  /    ??
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
As root (su):    
usr/sbin/gparted
-bash: usr/sbin/gparted: No such file or directory ???    

Should be:

/usr/sbin/gparted

EDIT: Just18 beat me to it.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
ROFL!!!!! I made a typo!     

As root (su):     
/usr/sbin/gparted     
launches gparted without issues.     

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Looking back at pags's post on consolehelper, I see

"consolehelper requires that a PAM configuration for every managed program exist.  So to make /sbin/foo or /usr/sbin/foo managed, you need to create a link from /usr/bin/foo to /usr/bin/consolehelper  and create the file /etc/pam.d/foo, normally using the pam_con‐sole(8) PAM module."

Well, just checked /etc/pam.d directory, and there is a gparted file. The contents are:

USER=root
PROGRAM=/usr/sbin/gparted
SESSION=true




the content of the file certainly is not correct for a file to be in /etc/pam.d. From man pam.d:
Quote
       The syntax of the /etc/pam.conf configuration file is as follows. The file is made up of a list of rules, each rule is
       typically placed on a single line, but may be extended with an escaped end of line: `\<LF>´. Comments are preceded with `#´
       marks and extend to the next end of line.

       The format of each rule is a space separated collection of tokens, the first three being case-insensitive:

That said, if a pam.d module is not defined, a default module /etc/pam.d/other is used, which will deny any access:
Quote
#%PAM-1.0
auth     required       pam_deny.so
account  required       pam_deny.so
password required       pam_deny.so
session  required       pam_deny.so

AS

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Looking back at pags's post on consolehelper, I see

"consolehelper requires that a PAM configuration for every managed program exist.  So to make /sbin/foo or /usr/sbin/foo managed, you need to create a link from /usr/bin/foo to /usr/bin/consolehelper  and create the file /etc/pam.d/foo, normally using the pam_con‐sole(8) PAM module."

Well, just checked /etc/pam.d directory, and there is a gparted file. The contents are:

USER=root
PROGRAM=/usr/sbin/gparted
SESSION=true




the content of the file certainly is not correct for a file to be in /etc/pam.d.

It seems that the files /etc/pam.d/gparted and /etc/security/console.apps/gparted have simply switched places in newer installs of gparted. Switch them back and all is well.

The contents of gparted in /etc/security/console.apps (which should be in /etc/pam.d) is

Code: [Select]
#%PAM-1.0
auth sufficient pam_rootok.so
auth sufficient pam_timestamp.so
auth include system-auth
session required pam_permit.so
session optional pam_xauth.so
session optional pam_timestamp.so
account required pam_permit.so

The gparted that djohnston quoted belongs in /etc/security/console.apps.
« Last Edit: January 25, 2012, 04:44:53 AM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
It seems that the files /etc/pam.d/gparted and /etc/security/console.apps/gparted have simply switched places in newer installs of gparted. Switch them back and all is well.


Confirmed, working fine after swapping the two files!  :D


Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Looking back at pags's post on consolehelper, I see

"consolehelper requires that a PAM configuration for every managed program exist.  So to make /sbin/foo or /usr/sbin/foo managed, you need to create a link from /usr/bin/foo to /usr/bin/consolehelper  and create the file /etc/pam.d/foo, normally using the pam_con‐sole(8) PAM module."

Well, just checked /etc/pam.d directory, and there is a gparted file. The contents are:

USER=root
PROGRAM=/usr/sbin/gparted
SESSION=true




the content of the file certainly is not correct for a file to be in /etc/pam.d.

It seems that the files /etc/pam.d/gparted and /etc/security/console.apps/gparted have simply switched places in newer installs of gparted. Switch them back and all is well.

The contents of gparted in /etc/security/console.apps (which should be in /etc/pam.d) is

Code: [Select]
#%PAM-1.0
auth sufficient pam_rootok.so
auth sufficient pam_timestamp.so
auth include system-auth
session required pam_permit.so
session optional pam_xauth.so
session optional pam_timestamp.so
account required pam_permit.so

The gparted that djohnston quoted belongs in /etc/security/console.apps.


Second confirmation ... works perfect after the switch.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Quote
It seems that the files /etc/pam.d/gparted and /etc/security/console.apps/gparted have simply switched places in newer installs of gparted. Switch them back and all is well.


Well spotted BB  ;)
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Badda bing, badda boom.

Good call, Bald Brick.
That did the trick.
Swapped the files from a shell
And now all is well.

Now the original poster can change the title of the first post.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline wharfhouse

  • Full Member
  • ***
  • Posts: 158
Quote
Badda bing, badda boom.

Good call, Bald Brick.
That did the trick.
Swapped the files from a shell
And now all is well.

Now the original poster can change the title of the first post.

Before I do, can someone summarize in simple terms (I'm still a novice remember! ;D) what exactly was the problem, why there was a problem, and what I need to do on my system to achieve the apparent success that you experienced guys have got in the hope of increasing my knowledge of how Linux works?  ::)

I'm fascinated by all the technical stuff above... totally over my head!  ;D ;D ;D

Offline pags

  • Hero Member
  • *****
  • Posts: 2602
  • Keep it clean.
Quote
Badda bing, badda boom.

Good call, Bald Brick.
That did the trick.
Swapped the files from a shell
And now all is well.

Now the original poster can change the title of the first post.

Before I do, can someone summarize in simple terms (I'm still a novice remember! ;D) what exactly was the problem, why there was a problem, and what I need to do on my system to achieve the apparent success that you experienced guys have got in the hope of increasing my knowledge of how Linux works?  ::)

I'm fascinated by all the technical stuff above... totally over my head!  ;D ;D ;D

The file in /etc/pam.d/
Code: [Select]
[jpaglia@paglia-e6500 ~]$ ls /etc/pam.d/gparted -l
-rw-r--r-- 1 root root 225 Feb 17  2011 /etc/pam.d/gparted

should have been in /etc/security/console.apps/
Code: [Select]
[jpaglia@paglia-e6500 ~]$ ls /etc/security/console.apps/gparted
/etc/security/console.apps/gparted
[jpaglia@paglia-e6500 ~]$

and vice-versa.

Swapping these two files (as root) corrects the issue

Code: [Select]
mv /etc/pam.d/gparted ~
mv /etc/security/console.apps/gparted /etc/pam.d/
mv ~/gparted /etc/security/console.apps/

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows

It seems that the files /etc/pam.d/gparted and /etc/security/console.apps/gparted have simply switched places in newer installs of gparted. Switch them back and all is well.


Bald Brick,

I posted your solution at the linuxgator forum here. Hopefully, they'll get it straightened out.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
I'm working on an update that should fix this. So far, the testing is showing up as positive. If no further issues are found, there will be an update coming to your system soon. :)     

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Just out of curiosity is this GParted talk here the same as GParted live bootCD  ;D
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Just out of curiosity is this GParted talk here the same as GParted live bootCD  ;D
     
No. We are not gparted live. We are PCLinuxOS, and we are discussing the gparted package in our repository.