Enable anonymous ftp on Solaris 10

astrounaut_cat

Here the simple step to enable anonymous ftp on Solaris 10:

# ftpconfig -d /export/home/ftp_anonymous
Creating directory /export/home/ftp_anonymous
Updating directory /export/home/ftp_anonymous

# ls /export/home/ftp_anonymous
bin  dev  etc  lib  pub  usr

# ftpconfig /export/home/ftp_anonymous
Creating user ftp
Updating directory /export/home/ftp_anonymous

# svcadm enable svc:/network/ftp:default

# svcs -a | grep ftp
online         18:30:19 svc:/network/ftp:default

Testing from client side:

$ ftp 192.168.56.10
Connected to 192.168.56.10 (192.168.56.10).
220 solaris FTP server ready.
Name (192.168.56.10:rachmat): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
227 Entering Passive Mode (192,168,56,10,251,189)
150 Opening ASCII mode data connection for /bin/ls.
total 16
lrwxrwxrwx   1 root     bin            9 Oct 19 18:29 bin -> ./usr/bin
d--x--x--x   2 root     sys            7 Oct 19 18:29 dev
d--x--x--x   5 root     sys            8 Oct 19 18:29 etc
d--x--x--x   2 root     bin           23 Oct 19 18:29 lib
drwxr-xr-x   2 root     sys            2 Oct 19 18:24 pub
d--x--x--x   6 root     sys            6 Oct 19 18:24 usr
226 Transfer complete.
ftp> bye
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 780 bytes in 1 transfers.
221-Thank you for using the FTP service on solaris.
221 Goodbye.
Advertisements

Setting Static IP Address on Solaris 11

Solaris 11 coming with new feature and enhancement, one of it is NWAM (Network automagic) with NWAM you can create and save the network profile. In this post, I’ll blogging about how to configure your Solaris 11 Systems to used static IP Address.

Ok let’s start :
1. Switch From Automatic Network Configuration Mode to Manual Network Configuration Mode

# netadm enable -p ncp DefaultFixed

2. Verify that DefaultFixed profile is applied

# netadm list
netadm: DefaultFixed NCP is enabled;
automatic network management is not available.
'netadm list' is only supported when automatic network management is active.

3. Determine the interface that you want to configure

# dladm show-phys

4. I’ll configure the net0 interface

# ipadm create-ip net0
# ipadm create-addr -T static -a 192.168.56.200/24 net0/v4

5. Verify

# ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
net0/v4           static   ok           192.168.56.200/24
lo0/v6            static   ok           ::1/128
root@solaris:~# dladm show-link
LINK                CLASS     MTU    STATE    OVER
net0                phys      1500   up       --
net1                phys      1500   unknown  --

6. Add default route

# route -p add default 12.34.56.1

7. Add DNS Name Server

root@solaris:~# svccfg -s dns/client
svc:/network/dns/client> setprop config/nameserver = (8.8.8.8 8.8.4.4)
svc:/network/dns/client> listprop config
config                      application
config/value_authorization astring     solaris.smf.value.name-service.dns.client
config/nameserver          net_address 8.8.8.8 8.8.4.4
svc:/network/dns/client> exit
root@solaris:~#
root@solaris:~# svcadm refresh dns/client
root@solaris:~# svcadm restart dns/client

8. Set name service switch

root@solaris:~# svccfg -s name-service/switch
svc:/system/name-service/switch> setprop config/host = "files dns"
svc:/system/name-service/switch> listprop config
config                      application
config/default             astring     files
config/value_authorization astring     solaris.smf.value.name-service.switch
config/printer             astring     "user files"
config/host                astring     "files dns"
svc:/system/name-service/switch> exit

9. Testing

root@solaris:~# ping google.com
google.com is alive

That’s it..
In the next post I’ll blogging about how to configure IPMP on Solaris 11.

Oracle Solaris 11 Features & Ehancement

Oracle Solaris 11 Features & Ehancement

1. New Installation features
– AI (automatic installer)
– Live cd installer for x86 better for desktop

2. New Software package updating features
– IPS Image packagin systems

3. Oracle Solaris 10 zone features
– Solaris10 branded zone
– No Longer have to choose between different zone type

4. New networking features and enhancement
– NWAM (network automagic)
– IPMP monitoring (ipmpstat)
– Network socket enhancement no longer uses the STREAMS module (performance improvement)
– Integrated L3/L4 load balancer
– bridgin and tunneling
– ipadm – configure Internet Protocol network interfaces and TCP/IP tunables

5. Storage Enhancement
– ZFS default root filesystems (ufs available as non root fs)
– deduplication mean duplicate data block are remove(only store unique data)
– ZFS diff
– ZFS Shadow migration
– Comstar & CIFS support

6. User environment enhancement
– enhanced desktop environmnet
– time slider snapshot management
– command line facility
default user path /usr/gnu/bin before /usr/bin
default bash shell environment & ksh93 replace ksh
– CUPS printing

7. Systems security enhancment
– secure by default
– Root treated as role
– Robust data encryption
– Driver support for trusted platform module (TPM)
– trusted extention enhancement

Source : http://docs.oracle.com/cd/E23824_01/html/E24456/docinfo.html