Wholescale ownership change
So you need to change the gid on all files owned by user. Do the following as root:
find / -uid 1500 -gid 100 -exec chown 15038:101 {} \;
A breakdown is as follows:
find / -uid 1500 -gid 100 -exec chown 1500:101 {} \;
^ ^ ^ ^ ^
| | | | |
| | | | |
| | | | |
| | | | do this chown userid:new group {all files found}
| | | |
| | | user's primary group
| | |
| | userid
| |
| filesystem
|
command
Thursday, May 15, 2014
global linux perms change
from where did that c compiler come from
Sun Studio 10: CC Sun C++ 5.7 2005/01/07 Sun Studio 11: CC Sun C++ 5.8 Patch 121017-10 2007/02/21 Sun Studio 12: CC Sun C++ 5.9 SunOS_sparc Patch 123863-01 2007/07/25 Solaris Studio 12.3: CC Sun C++ 5.12 SunOS_sparc 2011/11/16
Wednesday, May 14, 2014
sun studio 11 installation failure.
Installing Sun Studio Software
Exception in thread "Thread-27" java.lang.NoClassDefFoundError: com/sun/install/panels/ComponentSelectionListener
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethod(Class.java:1935)
at java.awt.Component.isCoalesceEventsOverriden(Component.java:5973)
at java.awt.Component.access$500(Component.java:169)
at java.awt.Component$3.run(Component.java:5927)
at java.awt.Component$3.run(Component.java:5925)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Component.checkCoalescing(Component.java:5924)
at java.awt.Component.<init>(Component.java:5893)
at java.awt.Container.<init>(Container.java:251)
at javax.swing.JComponent.<init>(JComponent.java:570)
at javax.swing.JPanel.<init>(JPanel.java:65)
at javax.swing.JPanel.<init>(JPanel.java:92)
at javax.swing.JPanel.<init>(JPanel.java:100)
at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:159)
at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:145)
at com.sun.wizards.core.WizardLeaf.<init>(WizardLeaf.java:78)
at com.sun.install.panels.ComponentPanel.<init>(ComponentPanel.java:144)
at com.sun.install.products.CreateSimpleUninstaller.createSimpleUninstallerTree(CreateSimpleUninstaller.java:42)
at com.sun.install.products.UninstallArchiveCreator.writeArchiveFile(UninstallArchiveCreator.java:537)
at com.sun.install.products.UninstallArchiveCreator.writeArchive(UninstallArchiveCreator.java:317)
at com.sun.install.products.UninstallUnit.install(UninstallUnit.java:740)
at com.sun.install.products.Product.performInstallation(Product.java:649)
at com.sun.install.tasks.ProductTask.perform(ProductTask.java:153)
at com.sun.wizards.core.Sequence.perform(Sequence.java:343)
at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
at java.lang.Thread.run(Thread.java:662)
really?
# mv /usr/java /usr/java.orig
# ln -s /usr/jdk/jdk1.5.0_30 /usr/java
yeah. so, jdk1.6 is a no go.
clearcase note
1
From my past installations on Solaris, you have to:
install it on global zone (for the mvfs part to install properly and be available for all the ngz)
install it on the non-global zones you need ClearCase
ClearCase won't be able to access all the paths it needs during the installation in an ngz, hence the first install on global zone.
See, for instance for CC8.0: "Installing Rational ClearCase to support non-global zones."
Install and configure Rational ClearCase on the global zone before you install and configure it on any non-global zones.
If you plan to run dynamic views on a non-global zone, the MVFS must be installed on the global zone on that computer. Specifically, this means that you cannot choose the ClearCase Server-only Installation option when installing Rational ClearCase on the global zone.
I never experienced a lack of performance because of being in an ngz, provided you reserve the appropriate quantity of resource (disk, memory) to each ngz.
I never used ClearCase in a global zone only, since I needed to start/stop ClearCase in each ngz independently. Hence my requirement for having CC in ngz, not just in global zone.
Tuesday, May 13, 2014
sol 8 nis client tasks
Edit /etc/hosts to include entries for the NIS master and all slaves.
# domainname yourdomain
# domainname > /etc/defaultdomain
# ypinit -c
Add the following hosts:
nis_master
nis_slave
nis_other_slave
nis_master-a (other interface, if available)
nis_slave-a (other interface, if available)
nis_other_slave-a (other interface, if available)
If one of the NIS slave servers is closer on the network , add it first in the list, then the next closest (slave or master), etc.
Start NIS
# cp /etc/nsswitch.nis /etc/nsswitch.conf (edit the original /etc/nsswitch.nis beforehand as described earlier)
# /usr/lib/netsvc/yp/ypstart (normally called from /etc/init.d/rcp)
# ypwhich should return
nis_master
Also the following commands:
# ypcat hosts
# ypcat passwd
should return lots of relevant data.
Friday, May 9, 2014
clear that arp cache
arp that arp cache. oh yes.
#!/bin/sh
for i in `awk -F ' ' '{ if ( $1 ~ /[0-9{1,3}].[0-9{1,3}].[0-9{1,3}].[0-9{1,3}]/ ) print $1 }' /proc/net/arp` ; do arp -d $i ; done
Monday, May 5, 2014
axfr and bind9 acls
okay chump.
root@captainwalker # dig thunderdome.com @blaster axfrbarfs? captainwalker is your axfr host. did you check this:
Master (blaster) :
acl "captainwalker" {
10.10.10.12;
};
zone "thunderdome.com" IN {
type master;
file "db.thunderdome.com";
notify yes;
allow-update { none; };
allow-query { any; };
allow-transfer { captainwalker; };
};
Slave (captainwalker) :
zone "thunderdome.com" IN {
type slave;
masters { blaster; };
file "db.thunderdome.com";
notify no;
allow-query { any; };
allow-transfer { none; };
};
Subscribe to:
Posts (Atom)