On Sun, 18 Mar 2012, Patrick J. Timlick wrote:

> I hope I'm not confused...

   Only slightly ...

> If I understand your problem, and sudo, my solution would be to configure
> sudo so that Pam could run only homenet.sh .
>
> Pam would then type "sudo homenet.sh", and enter her password, and the
> shell script could run as root.  If Pam entered sudo anything else, sudo
> would give her an error.

   This is correct. My question, not answered by my reading of the
sudo/sudoers man pages and Web searches, is what syntax is entered in
/etc/sudoers to allow her to do this. Every attempt of mine has produced an
error.

   More cleanly, I'd like that entry in /etc/sudoers to include NOPASSWD so
the single command, 'sudo cp /etc/resolv.conf.home /etc/resolv.conf' will
work within her ~/.bash_logout. This way, whenever she logs out at a coffee
shop the system is set for use here.

Rich

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to