Thursday, July 9, 2015

Samba in Oracle Solaris 10

Samba in Oracle Solaris 10


- check package

Docapps# pkginfo -x | grep -i samba
SUNWsmbac                         samba - A Windows SMB/CIFS fileserver for UNIX (client)
SUNWsmbar                         samba - A Windows SMB/CIFS fileserver for UNIX (Root)
SUNWsmbau                         samba - A Windows SMB/CIFS fileserver for UNIX (Usr)


- check samba config file

Docapps# pkgchk -l SUNWsmbar | grep conf-example
Pathname: /etc/sfw/smb.conf-example

- check stage samba

Docapps# svcs -a | grep samba
disable         10:31:59 svc:/network/samba:default

- edit share path on /etc/sfw/smb.conf

cp /etc/sfw/smb.conf-example /etc/sfw/smb.conf

exp:
[myshare]
comment = My Share
valid users = test
path = /u01/app/test
writeable = no
guest ok = yes

- chmod smb.conf file to read only

chmod 0444 /etc/sfw/smb.conf

- check state samba service and start service

Docapps# svcadm disable samba
svcs -a | grep samba

Docapps# svcadm enable samba
svcs -a | grep samba
online         10:42:04 svc:/network/samba:default

-set passwd for samba user

Docapps#/usr/sfw/bin/smbpasswd -a test
password : 123456

- test connect on  MS windows

net use O: \\192.168.1.20\myshare

ESXi 6.0 in LAB

- enable x64 CPU
add line vhv.enable = "TRUE"
in name_of_vmguest.vmx  file


- enable Promiscuous mode to Accept in  vSwitch
on ESXi ALL host

Wednesday, July 8, 2015

sqlplus pagesize

edit glogin.sql @ $ORACLE_HOME/sqlplus/admin

SET PAGESIZE 99
SET LINESIZE 128



Thursday, April 9, 2015

reset factory alcatel sw 6800


Switch-> cd working
Switch-> rm boot.cfg
Switch-> cd ..
Switch-> cd network
Switch-> rm userTable*
Switch-> reload working no rollback-timeout
# Wait for the switch to reload

# Login with "admin" / "switch"

Switch-> copy working certified

user 'test' read-write all password password

Thursday, March 26, 2015

Install Powershell windows 2012 Core server

CMD: install powershell 

dism.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShellRoot
dism.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell /all
 
/reboot

Powershell: add windows feature
 
Add-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra
Shutdown r -t 0

Friday, March 20, 2015

DSQUERY/DSMOD change password next logon

1. set password never expire off

dsquery user OU=TEST,OU=Office,DC=wnet,DC=local | dsmod user –pwdneverexpires no

2. set default password and set Must change password next Logon 

dsquery user OU=TEST,OU=Office,DC=wnet,DC=local | –pwd A1b2C3d4 -mustchpwd yes

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout