Reply
 
Thread Tools Display Modes
  #1  
Old 04-16-2008, 12:18 PM
galindro galindro is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Disable PAM in sudo
Hi all.

I need to disable PAM authentication in sudo. I recompile the ports of sudo with this options in Makefile:
Code:
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
                --disable-log-wrap \
                --with-ignore-dot \
                --with-tty-tickets \
                --with-env-editor \
                --with-logincap \
                --with-long-otp-prompt \
                --disable-pam-session
But it not works.

In the /var/log/messages is displayed these messages:

Code:
Apr 16 07:47:03 pcbsd sudo:      www : pam_authenticate: conversation failure ; TTY=unknown ; PWD=/usr/local/www/data/admin ; USER=root ; COMMAND=/usr/local/www/apache22/data/admin/progs/ifaces.exe

I edited my /usr/local/etc/sudoers file and added this line:

Code:
www     ALL=(ALL) NOPASSWD: /usr/local/bin/wget, /sbin/pfctl, /usr/local/www/data/admin/progs/deletar_linha.exe
Somebody can help me?
Reply With Quote
  #2  
Old 04-16-2008, 05:08 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: Disable PAM in sudo
Why do you need to kill PAM?
Reply With Quote
  #3  
Old 04-16-2008, 07:46 PM
galindro galindro is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Disable PAM in sudo
Because I am not getting success in executing the program ifaces.exe through sudo and I do not want to use PAM.
Reply With Quote
  #4  
Old 04-16-2008, 09:34 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: Disable PAM in sudo
It is some what odd to be running Windows programs on a BSD Box using Super User DO.


As far as I know, executing win apps from the shell require sending them through wine rather then calling them like a normal app but dont' quote me.
Reply With Quote
  #5  
Old 04-16-2008, 11:34 PM
galindro galindro is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Disable PAM in sudo
ifaces.exe is not windows program. I developed it in C and compiled with gcc.

I need the user www execute ifaces.exe with superuser privileges. For this, I need sudo. BUT, the sudo installed on my PCBSD is compiled with PAM and I not use PAM for authentication of my users.

Then, how can I recompile sudo for not using PAM?

Understand now?
Reply With Quote
  #6  
Old 04-17-2008, 02:52 AM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: Disable PAM in sudo
Under normal situations you would likely use --without-pam as an argument to the configure script.

Generally you can find what options are available to a configure script (assuming GNU toolchain) with the --help switch. In my expirence syntax is generally --with-foo | --without-foo, --enable-bar | --disable-bar and setting variables same as but with an equals sign: --with-eggsdir=/eggs/dir | --enable-gui=gtk , etc although some things can vary from app to app.



Originally Posted by galindro
ifaces.exe is not windows program. I developed it in C and compiled with gcc.
Pardon the assumption, it's rare I've seen or heard of people using the .exe file extension when compiling [natively] on Unix based systems ;-)
Reply With Quote
  #7  
Old 04-17-2008, 11:44 AM
galindro galindro is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Disable PAM in sudo
Quote:
Pardon the assumption, it's rare I've seen or heard of people using the .exe file extension when compiling [natively] on Unix based systems
I like to use .exe extension on my programs.

Quote:
Generally you can find what options are available to a configure script (assuming GNU toolchain) with the --help switch. In my expirence syntax is generally --with-foo | --without-foo, --enable-bar | --disable-bar and setting variables same as but with an equals sign: --with-eggsdir=/eggs/dir | --enable-gui=gtk , etc although some things can vary from app to app.
I'll see if sudo have a --without-pam configure argument...

Thank's for the help man!

Reply With Quote
  #8  
Old 04-18-2008, 01:09 PM
galindro galindro is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Disable PAM in sudo
The flag --without-pam does not take any effects on sudo.

The error message continues displaying.

Can anyone help me?

:cry:
Reply With Quote
  #9  
Old 04-18-2008, 03:44 PM
DragnLord DragnLord is offline
Senior Member
 
Join Date: Feb 2006
Location: C'ville, Va.
Posts: 695
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Disable PAM in sudo
What does /etc/pam.d/sudo look like?
__________________
add [SOLVED] to topics with solutions
psearch: use it, love it
Reply With Quote
  #10  
Old 04-18-2008, 04:09 PM
galindro galindro is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Disable PAM in sudo
I do not have a /etc/pam.d/sudo file

:?


What content should have this file?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo nvidia-settings? babujbf Graphics Cards 0 07-30-2009 11:01 PM
KDE Konsole: sudo demands a password reekoff General Questions 1 05-21-2009 11:25 AM
i think i broke something here %sudo pkgdb -F % heatherval General Questions 16 05-22-2007 08:59 PM
Did Microsoft just patent sudo? dracheflieger The Lounge 19 05-07-2007 11:57 PM
Howto configure sudo dracheflieger Guides 0 03-12-2007 10:55 PM


All times are GMT. The time now is 05:51 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.