sed help to run sed command against multiple different file names
I am not sure if there is an easier way to do this but probably. I have several 25+ servers in which we had connected to AD using Samba and Winbind. On the servers that we no longer use Samba on the Samba packages were removed. I am trying to comment out the line that contained pam.winbind.so in the following files:
I am running SUSE Linux Enterprise 11. I thought I could throw these lines in a bash script but they don't all run.
Any suggestions from the pros? :)
I have 2 questions:
1. pam_winbind.so - does this string only appear on the lines to be commented out?
2. Are all the files being changed the only ones in the directory starting with the string 'common'?
If the answer is yes to both, I would use:
|All times are GMT -5. The time now is 11:03 PM.|