Operating Systems > Linux and UNIX

Um, oops.

<< < (2/5) > >>

savet:
LOL...ok...I should be kicking myself now.  This should be the simplest solution to find the changes.

run the following command:
ls -l /usr/* > ~/my_usr_file

download MY user file from the web
http://td-solutions.net/usr_directory

then run the following command:
diff -bB ~/usr_directory ~/my_usr_file

This will give you a list of the changes between the two files.

From here, you'll have to do some research and determine which of the changed files might be affecting X.  Thankfully though, the list should be much shorter than before.

Hope this helps.

And an afterthought, if you want to post the changes so we can see 'em....just run the diff statement as follows:
diff -bB ~/usr_directory ~/my_usr_file > ~/changes

Another afterthought....you're gonna have to sift through the results (best done as a file) to find the actual permission differences.  The date/time differences are going to create a difference on a lot of files.  I'm sure there's a way to compare only the permissions....but it's now after 3am and my mind is working less than before :-D

[ May 11, 2004: Message edited by: Rio ]

[ May 11, 2004: Message edited by: Rio ]

insomnia:
Slackware has a MANIFEST.gz file that list all you installed.

Use smprms to recover permissions.
(Only works for 'out of box' files!)
Download + instructions:
http://homepages.paradise.net.nz/~cameronk/progs.html
(first program you'll see)

flap:
Actually if you only want a listing of the files immediately under /usr, you'd have to use ls -ld. If you want to recursively list all files beneath /usr and its subdirectories, you'd use ls -lR.

 
quote:Originally posted by Rio:
Another afterthought....you're gonna have to sift through the results (best done as a file) to find the actual permission differences.  The date/time differences are going to create a difference on a lot of files.  I'm sure there's a way to compare only the permissions....but it's now after 3am and my mind is working less than before :-D
--- End quote ---


Not wanting to leave this as an exercise for the reader,

ls -lR /usr |  sed -e 's/\([^\\]\)[ ]\+/\1   /g' | cut -f 1,9

will print just the permissions and file name. Note that the space before the "/g" should actually be a tab character.

[ May 11, 2004: Message edited by: flap ]

savet:
Oops, you're right.  I forgot the R option in the instructions.  Thanks

Paladin9:

quote:Originally posted by insomnia:
Slackware has a MANIFEST.gz file that list all you installed.

Use smprms to recover permissions.
(Only works for 'out of box' files!)
Download + instructions:
http://homepages.paradise.net.nz/~cameronk/progs.html
(first program you'll see)
--- End quote ---


My manifest file is a .bz2 so smprms does not work.

This is the error I get when trying to startx:

Fatal server error:
xf86OpenConsole: Server must be suid root

Here is another error as well:

XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0" after 0 requests (0 known rocessed) with 0 events remaining.

[ May 17, 2004: Message edited by: Paladin9 ]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version