testcase 50572:
Su to root do the following:
PART 1: For cde-login user
==================
1. Enable XDMCP connections on dtlogin by removing "-udpport 0" from args
#svccfg -s cde-login setprop 'dtlogin/args=""'
2. #svcadm restart cde-login
3. Add xvnc service to /etc/services if it isn't already (CR 6614889)
#printf "vnc-server\t5900/tcp\t\t\t# VNC Server\n" >> /etc/services
/#less/etc/services,查看/etc/services目录下是否有VNC Server.
#inetadm -e xvnc-inetd
5. Connect from another machinebefore the step,make sure that console login on the client is disabled,then use the command below to connect
#vncviewer hostname:0 / 此处的hostname应该是frenchopen
6. Close the session in that machine
===========
$ bash
bash-3.2$ su root
Password:
# bash
# svccfg -s cde-login setprop 'dtlogin/args=""'
# svcadm restart cde-login
===================//restrart
$ bash
bash-3.2$ su root
Password:
# bash
# cd /etc/services
bash: cd: /etc/services: Not a directory
# cd /etc
# pwd
/etc
# ls -al
total 742
drwxr-xr-x 88 root sys 4608 Mar 20 16:17 .
drwxr-xr-x 55 root root 1536 Mar 20 16:16 ..
-rw-r--r-- 1 root root 2236 Mar 20 16:17 .cpr_config
drwxr-xr-x 3 root bin 512 Mar 2 13:43 .java
-rw-r--r-- 1 root sys 524 Feb 17 07:28 .login
-rw------- 1 root root 0 Mar 7 10:25 .pwd.lock
-rw-r--r-- 1 root other 345 Mar 2 14:01 .sysIDtool.state
-rw-r--r-- 1 root other 641 Mar 2 14:34 .sysidconfig.apps
lrwxrwxrwx 1 root root 22 Mar 20 16:17 .syslog_door -> ../var/run
/syslog_door
lrwxrwxrwx 1 root root 14 Mar 2 13:34 TIMEZONE -> ./default/init
drwxr-xr-x 6 root other 512 Mar 20 16:17 X11
drwxr-xr-x 2 adm adm 512 Mar 2 13:38 acct
-rw-r--r-- 1 root sys 253 Feb 17 07:28 aggregation.conf
lrwxrwxrwx 1 root root 14 Mar 2 13:50 aliases -> ./mail/aliases
drwxr-xr-x 6 root other 512 Mar 2 13:40 amd64
drwxr-xr-x 7 root bin 512 Mar 2 13:52 apache
drwxr-xr-x 2 root bin 512 Mar 2 13:38 apache2
drwxr-xr-x 2 root other 512 Mar 2 13:39 apoc
-rw-r--r-- 1 root bin 194 Jan 22 2005 auto_home
-rw-r--r-- 1 root bin 248 Jan 22 2005 auto_master
lrwxrwxrwx 1 root root 16 Mar 2 13:34 autopush -> ../sbin/autopu
sh
drwxr-xr-x 2 root bin 512 Mar 2 14:26 autoreg
drwxr-xr-x 2 root other 512 Mar 2 13:40 bonobo-activation
-rwxr-xr-x 1 root sys 2716 Jan 22 2005 bootrc
-rw-r--r-- 1 root root 8 Mar 2 14:01 bootsign
drwxr-xr-x 3 root sys 512 Mar 2 13:47 brand
drwxr-xr-x 4 root sys 512 Mar 2 14:34 cacao
drwxr-xr-x 2 root sys 512 Mar 2 13:34 certs
lrwxrwxrwx 1 root root 18 Mar 2 13:34 cfgadm -> ../usr/sbin/cfga
dm
lrwxrwxrwx 1 root root 18 Mar 2 13:37 chroot -> ../usr/sbin/chro
ot
lrwxrwxrwx 1 root root 16 Mar 2 13:34 clri -> ../usr/sbin/clri
-rw-r--r-- 1 root other 372 Mar 20 16:17 coreadm.conf
lrwxrwxrwx 1 root root 16 Mar 2 13:34 cron -> ../usr/sbin/cron
drwxr-xr-x 2 root sys 512 Mar 20 16:17 cron.d
drwxr-xr-x 4 root sys 512 Mar 2 13:43 crypto
-rw-r--r-- 1 root sys 2043 Dec 22 2006 dacf.conf
drwxr-xr-x 2 root sys 512 Mar 2 13:53 dat
-r--r--r-- 1 root sys 435 Jan 22 2005 datemsk
lrwxrwxrwx 1 root root 17 Mar 2 13:34 dcopy -> ../usr/sbin/dcopy
drwxr-xr-x 2 root sys 512 Mar 2 14:03 default
-rw-r--r-- 1 root root 22 Mar 2 14:01 defaultdomain
-rw-r--r-- 1 root root 13 Mar 2 14:01 defaultrouter
drwxr-xr-x 2 root sys 512 Mar 2 13:34 dev
-r--r--r-- 1 root root 1110 Mar 2 14:26 device.tab
drwxr-xr-x 2 root sys 512 Mar 20 16:17 devices
-rw-r--r-- 1 root sys 2509 Mar 2 14:01 devlink.tab
drwxr-xr-x 2 root sys 512 Mar 2 13:34 dfs
-r--r--r-- 1 root sys 339 Mar 2 14:26 dgroup.tab
drwxr-xr-x 2 root sys 512 Mar 2 13:34 dhcp
drwxr-xr-x 4 root sys 512 Mar 2 13:58 dmi
-rw-r--r-- 1 root other 30767 Mar 2 14:01 driver_aliases
-rw-r--r-- 1 root sys 828 Mar 2 14:01 driver_classes
drwxr-xr-x 5 root root 512 Mar 19 16:54 dt
-rw-r--r-- 1 root other 258 Mar 20 16:17 dumpadm.conf
-rw-rw-r-- 1 root sys 0 Feb 17 07:28 dumpdates
-rw-r--r-- 1 root other 77 Dec 16 2004 esd.conf
-rw-r--r-- 1 root sys 1136 Jan 6 2005 fddi.cfg
lrwxrwxrwx 1 root root 14 Mar 2 13:34 ff -> ../usr/sbin/ff
drwxr-xr-x 5 root sys 512 Mar 2 13:42 flash
drwxr-xr-x 3 root sys 512 Mar 2 13:35 fm
lrwxrwxrwx 1 root root 19 Mar 2 13:34 fmthard -> ../usr/sbin/fmt
hard
drwxr-xr-x 4 root sys 512 Mar 2 13:36 fonts
lrwxrwxrwx 1 root root 18 Mar 2 13:34 format -> ../usr/sbin/form
at
-rw-r--r-- 1 root sys 6986 Mar 2 14:01 format.dat
drwxr-xr-x 6 root sys 512 Mar 2 13:47 fs
lrwxrwxrwx 1 root root 16 Mar 2 13:34 fsck -> ../usr/sbin/fsck
lrwxrwxrwx 1 root root 16 Mar 2 13:34 fsdb -> ../usr/sbin/fsdb
lrwxrwxrwx 1 root root 17 Mar 2 13:34 fstyp -> ../usr/sbin/fstyp
drwxr-xr-x 2 root sys 512 Mar 2 13:47 ftpd
lrwxrwxrwx 1 root root 17 Mar 2 13:37 fuser -> ../usr/sbin/fuser
drwxr-xr-x 6 root other 512 Mar 2 13:40 gconf
lrwxrwxrwx 1 root root 21 Mar 2 13:34 getty -> ../usr/lib/saf/tt
ymon
drwxr-xr-x 3 root other 512 Mar 2 13:50 gimp
drwxr-xr-x 4 root other 512 Mar 2 13:40 gnome-vfs-2.0
-rw-r--r-- 1 root other 10652 Dec 16 2004 gnome-vfs-mime-magic
drwxr-xr-x 3 root other 512 Mar 2 13:48 gnopernicus-1.0
-rw-r--r-- 1 root sys 302 Feb 17 07:28 group
lrwxrwxrwx 1 root root 17 Mar 2 13:34 grpck -> ../usr/sbin/grpck
drwxr-xr-x 2 root sys 512 Mar 2 13:37 gss
drwxr-xr-x 2 root bin 1536 Mar 2 13:37 gtk
drwxr-xr-x 2 root other 512 Mar 2 13:36 gtk-2.0
lrwxrwxrwx 1 root root 16 Mar 2 13:34 halt -> ../usr/sbin/halt
-rw-r--r-- 1 root bin 293 Jan 5 2005 hba.conf
-rw-r--r-- 1 root root 11 Mar 2 14:01 hostname.e1000g0
lrwxrwxrwx 1 root root 12 Mar 2 13:34 hosts -> ./inet/hosts
-rw-r--r-- 1 root bin 447 Jun 16 2009 ima.conf
drwxr-xr-x 4 root sys 1024 Mar 2 14:01 inet
lrwxrwxrwx 1 root root 17 Mar 2 13:34 inetd.conf -> ./inet/inetd
.conf
lrwxrwxrwx 1 root root 12 Mar 2 13:34 init -> ../sbin/init
drwxr-xr-x 2 root sys 1024 Mar 2 14:01 init.d
prw------- 1 root root 0 Mar 20 17:04 initpipe
-rw-r--r-- 1 root sys 1006 Feb 17 07:28 inittab
lrwxrwxrwx 1 root root 19 Mar 2 13:34 install -> ../usr/sbin/ins
tall
-rw-r--r-- 1 root sys 39 Feb 17 07:28 ioctl.syscon
drwxr-xr-x 2 root sys 512 Mar 2 13:34 ipf
drwxr-xr-x 2 root sys 512 Mar 2 14:24 iscsi
-rw-r--r-- 1 root sys 366 Feb 17 07:28 iu.ap
lrwxrwxrwx 1 root root 19 Mar 2 13:34 killall -> ../usr/sbin/kil
lall
drwxr-xr-x 2 root sys 512 Mar 2 13:55 krb5
lrwxrwxrwx 1 root root 19 Mar 2 13:34 labelit -> ../usr/sbin/lab
elit
drwxr-xr-x 3 root sys 512 Mar 2 13:47 lib
lrwxrwxrwx 1 root root 16 Mar 2 13:37 link -> ../usr/sbin/link
drwxr-xr-x 3 root sys 512 Mar 2 13:56 llc2
lrwxrwxrwx 1 root root 14 Mar 2 13:34 log -> ../var/adm/log
-rw-r--r-- 1 root sys 1410 Feb 17 07:28 logadm.conf
-rw-r--r-- 1 root sys 1320 Feb 17 07:28 logindevperm
drwxrwxr-x 10 lp lp 512 Mar 6 11:07 lp
drwxr-xr-x 6 root sys 512 Mar 2 13:47 lu
drwxr-xr-x 2 root sys 512 Mar 2 13:42 lvm
-rw-r--r-- 1 root sys 425 Jul 1 2011 mach
-r--r--r-- 1 root bin 21075 Jul 1 2011 magic
drwxr-xr-x 3 root mail 512 Mar 2 14:26 mail
-rw-r--r-- 1 root other 2713 Jul 13 2010 mailcap
-rw-r--r-- 1 root other 2435 Jul 13 2010 mime.types
-rw-r--r-- 1 root sys 4923 Mar 2 14:01 minor_perm
lrwxrwxrwx 1 root root 16 Mar 2 13:34 mkfs -> ../usr/sbin/mkfs
lrwxrwxrwx 1 root root 17 Mar 2 13:34 mknod -> ../usr/sbin/mknod
-r--r--r-- 5 root root 1920 Mar 20 17:04 mnttab
-rw-r--r-- 1 root sys 57 Feb 17 07:28 motd
lrwxrwxrwx 1 root root 13 Mar 2 13:34 mount -> ../sbin/mount
lrwxrwxrwx 1 root root 16 Mar 2 13:34 mountall -> ../sbin/mounta
ll
-rw-r--r-- 1 root bin 390 Jun 16 2006 mpapi.conf
lrwxrwxrwx 1 root root 17 Mar 2 13:37 mvdir -> ../usr/sbin/mvdir
-rw-r--r-- 1 root sys 2612 Mar 2 14:01 name_to_major
-rw-r--r-- 1 root sys 3350 Feb 17 07:28 name_to_sysnum
drwxr-xr-x 2 root sys 512 Mar 2 13:58 nca
lrwxrwxrwx 1 root root 18 Mar 2 13:34 ncheck -> ../usr/sbin/nche
ck
drwxr-xr-x 5 root sys 512 Mar 2 13:34 net
-rw-r--r-- 1 root sys 1239 Feb 17 07:28 netconfig
lrwxrwxrwx 1 root root 15 Mar 2 13:34 netmasks -> ./inet/netmask
s
lrwxrwxrwx 1 root root 15 Mar 2 13:34 networks -> ./inet/network
s
drwxr-xr-x 2 root sys 512 Mar 2 13:58 nfs
-rw-r--r-- 1 root sys 981 Jan 22 2005 nfssec.conf
-rw-r--r-- 1 root root 11 Mar 2 14:01 nodename
-rw-r--r-- 1 root sys 3001 Feb 17 07:28 nscd.conf
-rw-r--r-- 1 root sys 1228 Mar 2 14:01 nsswitch.conf
-rw-r--r-- 1 root sys 1259 Aug 9 2007 nsswitch.dns
-rw-r--r-- 1 root sys 943 Aug 9 2007 nsswitch.files
-rw-r--r-- 1 root sys 1447 Aug 9 2007 nsswitch.ldap
-rw-r--r-- 1 root sys 1228 Jan 22 2005 nsswitch.nis
-rw-r--r-- 1 root sys 1558 Jan 22 2005 nsswitch.nisplus
-rw-r--r-- 1 root sys 753 Mar 2 15:16 opasswd
drwxr-xr-x 4 root bin 512 Mar 2 13:35 openwin
drwxr-xr-x 2 root sys 512 Mar 2 13:34 opt
-rw-r--r-- 1 root other 53 Apr 24 2007 orbitrc
-rw-r--r-- 1 root sys 481 Mar 2 15:16 ouser_attr
-rw-r--r-- 1 root sys 3263 Mar 2 13:53 pam.conf
-r--r--r-- 1 root bin 3310 Oct 26 23:35 pam.conf-winbind
drwxr-xr-x 2 root other 512 Mar 2 13:36 pango
-rw-r--r-- 1 root sys 806 Mar 7 10:24 passwd
drwxr-xr-x 2 root sys 512 Mar 2 13:53 patch
-r--r--r-- 1 root root 1126 Mar 7 12:56 path_to_inst
-r--r--r-- 1 root root 1231 Mar 7 12:56 path_to_inst.old
drwxr-xr-x 2 root bin 512 Mar 2 14:00 pgsql
-rw-r--r-- 1 root sys 544 Mar 2 14:24 power.conf
drwxr-xr-x 3 root sys 512 Mar 2 14:00 ppp
-rw-r--r-- 1 root sys 271 Mar 6 11:07 printers.conf
-rw-r--r-- 1 root other 112 Dec 17 2004 product-info
-rw-r--r-- 1 root sys 712 Feb 17 07:28 profile
-rw-r--r-- 1 root sys 78 Feb 17 07:28 project
lrwxrwxrwx 1 root root 16 Mar 2 13:34 protocols -> ./inet/protoc
ols
lrwxrwxrwx 1 root root 19 Mar 2 13:34 prtconf -> ../usr/sbin/prt
conf
lrwxrwxrwx 1 root root 19 Mar 2 13:34 prtvtoc -> ../usr/sbin/prt
vtoc
-rw-r--r-- 1 root bin 622 Jan 22 2005 publickey
lrwxrwxrwx 1 root root 16 Mar 2 13:37 pwck -> ../usr/sbin/pwck
drwxr-xr-x 2 root bin 512 Mar 2 13:57 quagga
lrwxrwxrwx 1 root root 11 Mar 2 13:34 rc0 -> ../sbin/rc0
drwxr-xr-x 2 root sys 512 Mar 2 14:00 rc0.d
lrwxrwxrwx 1 root root 11 Mar 2 13:34 rc1 -> ../sbin/rc1
drwxr-xr-x 2 root sys 512 Mar 2 14:00 rc1.d
lrwxrwxrwx 1 root root 11 Mar 2 13:34 rc2 -> ../sbin/rc2
drwxr-xr-x 2 root sys 512 Mar 2 14:26 rc2.d
lrwxrwxrwx 1 root root 11 Mar 2 13:34 rc3 -> ../sbin/rc3
drwxr-xr-x 2 root sys 512 Mar 2 14:26 rc3.d
lrwxrwxrwx 1 root root 11 Mar 2 13:34 rc5 -> ../sbin/rc5
lrwxrwxrwx 1 root root 11 Mar 2 13:34 rc6 -> ../sbin/rc6
lrwxrwxrwx 1 root root 11 Mar 2 13:34 rcS -> ../sbin/rcS
drwxr-xr-x 2 root sys 512 Mar 2 14:00 rcS.d
drwxr-xr-x 3 root sys 512 Mar 2 13:35 rcm
lrwxrwxrwx 1 root root 16 Mar 2 13:34 reboot -> ../usr/sbin/halt
-r--r--r-- 1 root sys 332 Feb 28 06:38 release
-rw-r--r-- 1 root bin 1969 Mar 2 13:59 remote
-r--r--r-- 1 root bin 442 Mar 2 13:59 rmmount.conf
lrwxrwxrwx 1 root root 15 Mar 2 13:37 rmt -> ../usr/sbin/rmt
-rw------- 1 root root 77 Mar 2 14:24 rndc.key
-rw-r--r-- 1 root sys 1717 Feb 17 07:28 rpc
drwxr-xr-x 2 root sys 512 Mar 2 13:34 rpcsec
-rw-r--r-- 1 root sys 496 Jan 22 2005 rpld.conf
-rw-r--r-- 1 root root 503 Mar 2 14:03 rtc_config
drwxr-xr-x 3 root bin 512 Mar 20 16:17 saf
drwxr-xr-x 3 root bin 512 Mar 2 16:27 samba
drwxr-xr-x 2 root sys 512 Mar 2 13:34 sasl
-rw-r--r-- 1 root other 23 Dec 16 2004 scrollkeeper.conf
-rw-r--r-- 1 root sys 170 Mar 1 2008 sdp.conf
drwxr-xr-x 7 root sys 512 Mar 2 14:00 security
lrwxrwxrwx 1 root root 15 Mar 2 13:34 services -> ./inet/service
s
lrwxrwxrwx 1 root root 18 Mar 2 13:34 setmnt -> ../usr/sbin/setm
nt
drwxr-xr-x 8 root bin 512 Mar 2 14:01 sfw
drwxr-xr-x 2 root other 512 Mar 2 13:41 sgml
-r-------- 1 root sys 435 Mar 7 10:25 shadow
lrwxrwxrwx 1 root root 20 Mar 2 13:34 shutdown -> ../usr/sbin/sh
utdown
drwxr-xr-x 2 root sys 512 Mar 2 13:34 skel
drwxr-xr-x 3 root bin 512 Mar 2 13:46 sma
drwxr-xr-x 2 root sys 512 Mar 2 13:53 smartcard
drwxr-xr-x 2 root root 512 Mar 20 16:17 smc
drwxr-xr-x 3 root sys 512 Mar 2 13:44 snmp
lrwxrwxrwx 1 root root 16 Mar 2 13:34 sock2path -> ./inet/sock2p
ath
drwxr-xr-x 3 root other 512 Mar 2 13:40 sound
drwxr-xr-x 2 root sys 512 Mar 2 14:24 ssh
lrwxrwxrwx 1 root root 15 Mar 2 13:34 sulogin -> ../sbin/sulogin
drwxr-xr-x 3 root bin 512 Mar 2 13:54 sunvts
drwxr-xr-x 3 root sys 1024 Mar 20 17:02 svc
lrwxrwxrwx 1 root root 16 Mar 2 13:34 swap -> ../usr/sbin/swap
lrwxrwxrwx 1 root root 15 Mar 2 13:34 swapadd -> ../sbin/swapadd
lrwxrwxrwx 1 root root 18 Mar 2 13:34 sysdef -> ../usr/sbin/sysd
ef
drwxr-xr-x 5 root sys 512 Mar 20 16:17 sysevent
-rw-r--r-- 1 root sys 1001 Feb 17 07:28 syslog.conf
lrwxrwxrwx 1 root root 21 Mar 20 16:17 syslog.pid -> ../var/run/s
yslog.pid
-rw-r--r-- 1 root sys 1883 Feb 17 07:28 system
lrwxrwxrwx 1 root root 15 Mar 2 13:34 tar -> ../usr/sbin/tar
lrwxrwxrwx 1 root root 12 Mar 2 13:34 telinit -> ../sbin/init
lrwxrwxrwx 1 root root 24 Mar 2 13:37 termcap -> ../usr/share/li
b/termcap
drwxr-xr-x 2 root sys 512 Mar 2 13:34 tm
-rw-r--r-- 1 root sys 2303 Feb 17 07:28 ttydefs
-rw-r--r-- 1 root sys 1495 Feb 17 07:28 ttysrch
lrwxrwxrwx 1 root root 14 Mar 2 13:34 uadmin -> ../sbin/uadmin
lrwxrwxrwx 1 root root 14 Mar 2 13:34 umount -> ../sbin/umount
lrwxrwxrwx 1 root root 17 Mar 2 13:34 umountall -> ../sbin/umoun
tall
lrwxrwxrwx 1 root root 18 Mar 2 13:37 unlink -> ../usr/sbin/unli
nk
drwxr-xr-x 2 root sys 512 Mar 2 13:53 usb
-rw-r--r-- 1 root sys 481 Mar 7 10:24 user_attr
prw------- 1 root root 0 Mar 20 17:14 utmppipe
lrwxrwxrwx 1 root root 16 Mar 2 13:34 utmpx -> ../var/adm/utmpx
drwxr-xr-x 2 uucp uucp 512 Mar 2 13:40 uucp
-rw-r--r-- 1 root sys 457 Mar 2 14:01 vfstab
lrwxrwxrwx 1 root root 19 Mar 2 13:34 volcopy -> ../usr/sbin/vol
copy
-r--r--r-- 1 root bin 1123 Mar 2 13:59 vold.conf
lrwxrwxrwx 1 root root 16 Mar 2 13:34 wall -> ../usr/sbin/wall
drwxr-xr-x 3 root sys 512 Mar 2 13:57 webconsole
drwx------ 99 root bin 2048 Mar 2 13:54 webmin
-rwxr-xr-x 1 root sys 4479 Jun 23 2010 wgetrc
lrwxrwxrwx 1 root root 17 Mar 2 13:34 whodo -> ../usr/sbin/whodo
lrwxrwxrwx 1 root root 16 Mar 2 13:34 wtmpx -> ../var/adm/wtmpx
drwxr-xr-x 2 root other 512 Mar 2 13:41 xml
-rwxr-xr-x 1 root sys 3112 Dec 17 2004 xpdfrc
drwxr-xr-x 2 root sys 512 Mar 2 13:47 zfs
drwxr-xr-x 2 root sys 512 Mar 2 13:57 zones
# /services
bash: /services: No such file or directory
# pwd
/etc
# cd /services
bash: cd: /services: No such file or directory
# cd /service
bash: cd: /service: No such file or directory
# pwd
/etc
# print"vnc-server\t5900/tcp\t\t\t#VNC Server\n">>/etc/services
bash: printvnc-server\t5900/tcp\t\t\t#VNC Server\n: No such file or directory
# printf"vnc-server\t5900/tcp\t\t\t#VNC Server\n">>/etc/services
bash: printfvnc-server\t5900/tcp\t\t\t#VNC Server\n: No such file or directory
# printf"vnc-server\t5900/tcp\t\t\t#VNC Server\n"
bash: printfvnc-server\t5900/tcp\t\t\t#VNC Server\n: No such file or directory