You are not logged in.

#1 2014-04-07 15:03:35

justforgetme
Member
From: Germany
Registered: 2012-04-01
Posts: 51
Website

[solved] pam_mount triggered by sudo

Hi everybody,

so after updating today (hadn't done so since December) my terminal instances have started triggering pam-mount whenever I issue sudo commands. The Internet doesn't seem to help much. The only results I get are about mounting partitions on login, etc. The usual stuff.

I checked this on gnome-terminal and xfce4-terminal
My setup is so that my user's home directory is loaded by GDM on login (double key challenge). That works fine just as always.

Does anybody know why this could have started just yet? Ok with yet i mean in the last 4 Months :-)

cheers,
jfm

Last edited by justforgetme (2015-01-10 15:21:33)


$> man life
No manual entry for `life'

$> nvm...

Offline

#2 2014-04-07 15:27:09

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [solved] pam_mount triggered by sudo

justforgetme wrote:

so after updating today (hadn't done so since December)

Always leads to trouble.


dmesg / journalctl don't say anything?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2014-04-08 11:07:26

justforgetme
Member
From: Germany
Registered: 2012-04-01
Posts: 51
Website

Re: [solved] pam_mount triggered by sudo

Hi,

dmesg has nothing related to show (grepped for pam, mount and sudo in case insensitive mode). journalctl -f just reveals that pam_mount is being invoked by sudo invocations. Don't know how sudo handles such things though....


$> man life
No manual entry for `life'

$> nvm...

Offline

#4 2014-04-11 11:26:49

justforgetme
Member
From: Germany
Registered: 2012-04-01
Posts: 51
Website

Re: [solved] pam_mount triggered by sudo

Does anybody else have some pointers that I could Follow here?


$> man life
No manual entry for `life'

$> nvm...

Offline

#5 2015-01-10 15:21:19

justforgetme
Member
From: Germany
Registered: 2012-04-01
Posts: 51
Website

Re: [solved] pam_mount triggered by sudo

So, the solution to this was that, since pam.d for arch linux introduced that multi layer include scheme, you cannot have pam_mount in system-auth anymore since it is being included by the su and sudo service configurations as well.

Fortunately just adding pam_mount on top of gdm-password's auth seciton and after the includes in the session and password sections does the job quite nicely. The wiki might need to be updated to reflect the sudo issue.

[source: /etc/pam.d]


$> man life
No manual entry for `life'

$> nvm...

Offline

Board footer

Powered by FluxBB