Granting su rights to users? Using PAM and Kerberos...

Daniel B. Thurman dant at cdkkt.com
Tue Nov 22 19:11:49 UTC 2005


>From: fedora-list-bounces at redhat.com
>[mailto:fedora-list-bounces at redhat.com]On Behalf Of Daniel B. Thurman
>Sent: Tuesday, November 22, 2005 11:08 AM
>To: For users of Fedora Core releases
>Subject: RE: Granting su rights to users? Using PAM and Kerberos...
>
>
snip

>
>
>Thanks for all who responded with your suggestions!
>
>Since google had some who asked the same question, when
>accidently chmod/chown with the dreaded -R argument, I
>have provided a script that will verify your files
>against the rpm package but since it is a very simple
>script, please use at your own risk!

Drat.  Drop the 'rfp' variable in the code, as it is not needed

>
>Kind regards,
>Dan
>
>============================================================
>
>#!/bin/bash
>
># ======================================================
># Checks permission/ownership changes by comparing
># package against the modified file in question
># ======================================================
>
>if [ $# -gt 0 ]; then
>  # If argument supplied, use the file created by output of 'rpm -Va'
>  list=`cat $* | egrep -e "^.M......." | sed -e "s/.* \(.*\)$/\1/"`
>else
>  # If no argument supplied, do self-generated rpm verify
>  list=`rpm -Va | egrep -e "^.M......." | sed -e "s/.* \(.*\)$/\1/"`
>fi
>
>for item in $list ; do
>  base=`basename $item 2>/dev/null`
>  if [ -z "$base" ]; then continue; fi
>  file=`which $base 2>/dev/null`
>  if [ -z "$file" ]; then continue; fi
>  pack=`rpm -q --whatprovides $file 2>/dev/null`
>  if [ -z "$pack" ]; then continue; fi
>  echo '========================================================'
>  echo ' <f> '$base' ==> <p> Package: '$pack
>  echo '========================================================'
>  prog="rpm -qlv $pack | egrep -e \"${file}\""
>  rfp=`eval $prog`  ***** DELETE THIS LINE *****
>  echo ' <p>: '`eval $prog`
>  echo ' <f>: '`ls -l $file`
>done
>
>-- 
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.1.362 / Virus Database: 267.13.5/177 - Release 
>Date: 11/21/2005
> 
>
>-- 
>fedora-list mailing list
>fedora-list at redhat.com
>To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
>-- 
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.362 / Virus Database: 267.13.5/177 - Release 
>Date: 11/21/2005
> 
>

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.5/177 - Release Date: 11/21/2005
 




More information about the fedora-list mailing list