I would like a userid to allow logging into a box without a password. I am not sure how to accomplish this as changing the password to nothing is not allowed. Thanks
ojblass's questions
Is there any tool that can summarize Registry and File differences between two VMWARE Windows XP images?
Many third party products require a specific version of the JRE or JDK and many of our servers have multiple duties. Application teams argue they should not care where Java is installed. Most of the applications simply rely on environment variables (or whatever Java happens to be lying around) but those teams needing specific versions need to be told where to find their particular version. I don't like the fact that I can now not relocate a JVM without visiting all of the applications that may use it. The obvious answer is to create a program that hides the details from them and expose the location through an API. This solution would require every Java application be wrapped up in some script inquiring about the environment.
I don't like unnecessary complexity or reinventing the wheel. Is there some standard practice, feature built into Java, or obvious solution I am missing?
One I have thought of is for each application to manage a link in its path to point to the Java it wants but I would still need to tell them where it is.
I think I am fairly advanced in my use of find but EVERY time I use it I cannot for the life of me remember the method to close the -exec option. I spend a good deal of time reading every time I use it. Am I simply not using it enough or expecting too much of myself? Lets start with a typical example that gets me frustrated.
Directory structure has files with all incorrect permissions hidden files symbolic links etc. I want to change the ownership to a reasonable value
find . -type f -exec chown username {} \;
find . -type d -exec chown username {} \;
find . -type d -exec chgrp usergroup {} \;
find . -type f -exec chgrp usergroup {} \;
(Forgive me if the ending is backwards... I looked at it an hour ago and still I am not sure)
But I am scared to run it because of mounts, symbolic links, etc. I have made the ultimate goof of chmod .* and had it recurse upwards on me before. I know -xdev will forgo crossing partitions but I am not sure what will happen to the files living inside directories which are symbolic links.
So how does one master this beast that can kill crucial files?
Update pruning the best suggestions below and summarizing:
- Have a practice directory linked and mounted to other practice directories.
- Use xargs rather than the non-intuitive exec command.
- Use -exec echo {} for sanity and safety
- Semi colon is special and you are escaping it therefore the escape char is first
- The -or command can help you combine selection criteria.
I am a little confused about the print0 but xargs has always been a bit on the not easy to understand at first glance practice that I try and avoid.
In an organization with hundreds of Windows and UNIX boxes what options exist to manage and distribute files and programs to the enterprise? I have looked at Microsoft's SMS with some UNIX integration as well as BigFix. If you have had experience with these would you call them good experiences?