Red Hat :: List Modified Configuration Files [ CentOS 5.4 ]?
Feb 20, 2010
I am searching for a program which may be used in order to display a list of modified (non-distribution-default) configuration files. For example, assume we have installed package "example-utility" which uses /etc/example-utility.conf as one of its configuration files. The package provides a default configuration file upon its installation. Assume we have modified /etc/example-utility.conf according to our needs. This file should be included in the listing produced by the program I am looking for.
If such a tool does not exist, I would like to create it. However, I am new to RPM-based systems, and, as such, I am having difficulties finding the necessary documentation. Should I be reading the yum source code? Is there some sort of document describing the package database on RH/CentOS/etc. systems and how 3rd party applications are supposed to work with this database?
View 6 Replies
ADVERTISEMENT
Aug 12, 2011
I'm about to do a migration on a laptop where I have had to make a number of modifications to files mainly in /etc/ but I have lost track of what I have done. Does anyone have any suggestions as to how to identify those files that have been modified from their packaged versions?
View 3 Replies
View Related
Sep 2, 2010
Possible Duplicate: Linux equivalent to robocopy? I have two websites - one is basically a development version and the other is a production version of the same site. So I'd like to be able to merge the changes made to the development site based on the modified date of the files. Is this possible with the 'cp' command?
View 2 Replies
View Related
Dec 2, 2010
How can I search files modified in a specific day?
View 2 Replies
View Related
May 23, 2011
I want to upload files from my computer to an FTP site and I don't want to upload files that are already on the server. So I need a tool that finds out which local files that are different from the ones on the server, or that don't exists on the server.
Some requirements:
I'm using a cheap provider that does not support rsync or ssh, so I can only use FTP. I generate the files before uploading them, so comparing timestamps is meaningless. I've tried lftp with the mirror command. It's slow (I think it uploads all the files). I upload the files from different computers, so I can't use sitecopy, which uses a local database to keep track of which files are on the server. I'd like to be able to upload all changed files with one command. Preferably no GUI application. And it needs to run in Ubuntu.
I was thinking about creating a tool similar to sitecopy, but which stores checksums of all the files on the FTP server on the server itself. But then I thought that there may already be such a tool.
View 1 Replies
View Related
Jan 22, 2011
How can I make copy only files the have been modified today
as far as get
Code:
find myworkingfolder -ctime 0|xargs -i cp {}-ap bakupfolder
Is it ctime or mtime? and how i add this command to crontab?.
View 2 Replies
View Related
Jul 23, 2010
I need to know the last 10 modified files in a folder.
View 8 Replies
View Related
Mar 10, 2011
I have CentOS 5.5 running as a desktop, on Live USB with persistent overlay. It's been working great since January. However yesterday I noticed something strange. Almost all the binary files, including those under /bin, /sbin, /usr/bin, and /usr/sbin, have been modified, compared to the originals in squashfs.img (I mounted squashfs.img and did a "diff -r" comparison). The timestamps all remain the same, but the sizes of the binary files have been increased by a typical 1 - 3 KB.
The system has never been updated, other than a few minor package installations via yum. It's running behind a firewall with no services except an SSH server on a non-standard port. Checks on log files etc. didn't find anything suspicious, and chkrootkit turned up nothing.
View 4 Replies
View Related
Nov 30, 2010
I have a simple scripting question. I am trying to list all files that have been modified in the last day and then collect metadata on those files. This command is going to be run on a number of nodes via ssh so I would like to append the hostname to start of each line (the below example has blade1 as the hostname). As you can see the loop is splitting the ls command out onto a separate line for each value. What I need to do is keep the `ls -ld` output all on one line and have the hostname echoed in front of each line.
for i in `find /var -mtime -1 | xargs ls -ld`; do echo `hostname` $i; done
blade1 drwxr-xr-x.
blade1 2
blade1 user
blade1 group
blade1 4096
blade1 Nov
blade1 30
blade1 08:55
blade1 /var/cache/gdm/user
View 8 Replies
View Related
May 14, 2010
I clone my entire notebook hdd once a month to a USB drive with an identical disk once a month using dd. I would like to find a way to automatically or manually do incremental backups at shorter intervals.
The first problem is that my incremental backup drive is not the same as my full backup drive (which is my clone). Is there some way to backup or copy all files on a document partition modified after a certain date?
The second problem is that my document partition is NTFS-3G. I guess this could be done pretty easily using "dump" if I stored my docs on ext. [I don't because I want to make sure that my docs are accessible from any machine (say in an Internet cafe) should my MacBook die and I need to rip out the hard drive and run to do my homework on another system; that is why I keep my docs on my Vista partition].
View 1 Replies
View Related
Jun 3, 2009
Can anybody tell me how I can synchronise files between two computers in a network that have been modified or created within the last 60 days?
View 3 Replies
View Related
Apr 30, 2010
I need to know all files modified within a date and time range.E.g: All modified files between 20 April 2010, 1100-1200 Hrs."find / -mtime +10 ! -mtime +11" :: this i found for date but how to include time as well.
View 2 Replies
View Related
May 31, 2010
I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.
For this what needs to be added in the below script??
#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt
View 7 Replies
View Related
Nov 8, 2010
Sequentially number files based on date modified (rename cli)
I'm almost done a larger script which takes all the pictures in a folder, converts it to video, and emails it to me. Everything worked fine until I realized the picture filenames weren't always starting at 1, then ffmpeg chokes.
I have a bunch of files in a folder which I need to rename to:
I don't want to install any additional packages and I'd like this to run in a single command if possible.
If not possible, then a bash script would work too.
View 3 Replies
View Related
Dec 4, 2010
How to remove package with his configuration files. rpm -e doesnt delete any configuration files, is there any similar command to debians apt-get --purge ?
View 2 Replies
View Related
Feb 10, 2009
I am trying to get this script to work. The purpose is to download a list of modules from the slax.org the list consist of a list of module numbers. What I am trying to do is Download the file or the file name corresponding to the number in the list.the list is comma delimited. this is what I have done so far and I am a stand still.
#!/bin/sh
# Wget script to retrieve modules from slax.org modules
#
# ----Begin of user defined values -----
# Path to wget
[code].....
View 7 Replies
View Related
Sep 19, 2011
i wanted to make a fresh installation of samba so i uninstalled and then reinstalled samba and the configuration files remained with the old configuration so i deleted the /etc/samba/ folder and now after reinstalling samba i don't have the configuration files i thought the installation process will create them ,but it did not do that
View 2 Replies
View Related
Nov 24, 2009
i downloaded and try installing opensuse 11.2 on my intel-based imac. but during installing, there keeps pop-up error messages either saying "cannot download xxx files" or "the files have been modified and is danger to use" i run the "check" function after burning .iso file. and it failed too.so what should i do now?
View 3 Replies
View Related
Oct 5, 2010
I know I can do find . -type f, but that includes binary file and I couldn't find a way to exclude them with find
View 4 Replies
View Related
Mar 30, 2011
Is it possible to list/find/compare the program versions on a Centos system, against Redhat/Centos Errata/Security/Bug lists? Sort of looking for a way to make sure that all the packages on a system are ok, and not a security risk-- Without having to update every package. A pseudo code, in my mind is:
[Code]...
View 2 Replies
View Related
Aug 28, 2015
On a fresh installed Debian8.1 whit Mate Desktop. I start Synaptic. Lets show the Source, all empty. I can't install or remove anything. Whats happens?
View 6 Replies
View Related
Oct 17, 2010
I have tried install libsub-install-perl and libparams-util-perl but get Error. Now I want remove it from the list when I tried apt-get upgrade. Where I can remove from this entries?
View 2 Replies
View Related
Mar 2, 2011
I am trying to set up samba using AD to authenticate users. I did a clean install with the latest version of debian (need at least version 3 of samba for this to work). When I first installed winbind and ran "ps -ef | grep winbind", I could see about 4 instances of winbindd running. I set up kerberos and ran kinit and that ran fine, then tried changing my smb.conf file and restarting samba and winbind. Everything seems to appear normal when I restart the daemons, but when I run "ps -ef | grep winbind", I see nothing running.
View 1 Replies
View Related
Oct 29, 2010
I am using Centos 5. I got one error unexpectedly after some configuration for rsync and folder settings. The error i am getting is "Serve Authorization directory (daemon/ServAuthDir) is set to /var/gdm but does not exist. Please correct the configuration and restart GDM." after rebooting.
I tried to resolve the issue by setting permission for folder /var/gdm to 755. but the problem is still not resolved.
View 1 Replies
View Related
Sep 24, 2010
When I did external vulnerability scan of my servers, I discovered the following issue that I must correct:
THREAT:
This is the global system user list, which was retrieved during the scan by exploiting one or more vulnerabilities.
IMPACT:
These common account(s) can be used by a malicious user to break-in the system via password bruteforcing.
SOLUTION:
To prevent your host from being attacked, do one or more of the following:
RESULT:
So.. How can I prevent this scanner to reveal user names, in my case root ? Please help, It is mandatory for me to correct these issue.
View 3 Replies
View Related
Sep 26, 2010
I've setup my own repository which I want to use SSH as the protocol. I managed to get everything working with an SSH key using port 22. Now, I would like to change the SSH port. I've already changed it on the SSH/repo server. Now I can't figure out how to change apt to use a custom port on the client computer.
My sources.list file line which worked over port 22: deb ssh://user@1.1.1.1/home/user/repo lenny main contrib non-free I've tried: deb ssh://user@1.1.1.1:12345/home/user/repo lenny main contrib non-free and it fails and actually says "failed connecting to port 22"
Can this be done? I've searched google for hours and I getting nothing but unrelated data. I've read the man pages. The man page for apt.conf specified that you can set the port this way for HTTP, but doesn't mention anything about ssh ports.
View 1 Replies
View Related
Jan 27, 2011
how can i manually modify source.list to include debian repository from shell.since xorg isn't installed yet and the cd doesn't work well.
View 5 Replies
View Related
Jan 27, 2011
I am trying to add usermin source from here: [URL]
If you like to install and update Usermin via APT, edit the /etc/apt/sources.list file on your system and add the line : deb [URL]
View 5 Replies
View Related
May 5, 2011
I have a fresh Debian install, since this install was on a desktop, I had an internet connection and didn't notice (it was late, I was half asleep) I opted to download a whole load of packages I didn't really need. I thought all was doomed until I remembered that I have done another Debian install but a week ago on a laptop, which has a nice clean install without all the bloat.
So I ran dpkg --get-selections > selections
and had it sent to my new desktop installation.
Now if I run dpkg --set-selections < selections followed by dselect-upgrade nothing happens. I assume this is because the smaller list contains all the packages 'to be installed' which already are, and all the missing packages are not being purged. Do I need to explicitly add all the packages I want to purge to the 'selection' list or is there a better way of doing it?
View 1 Replies
View Related
May 19, 2011
About configuring my sources.list file.
The default file was:
To which I have added this: deb [url] stable all
Today I decided to include again Debian Volatile and discovered that it doesn't exist anymore and that I can get the same packages using this line: deb [url] squeeze-updates main
And the first question is: is this the same than debian-security?
Then, I decided to use [url] to make things less confused, and this was the output:
The first line is Ok. The second line, I guest it's the same than my second line. But, the third, is something different. So, the main question is: what is the difference between squeeze-proposed-updates and squeeze-updates? Are those repos completely separated from squeeze/updates (in security.debian.org)? And, what else should I add to have an always up-to-date and secure system?
View 5 Replies
View Related