how to set the hostname or username at commamd promt ?
where to set password length,max and min ?




Answers were Sorted based on User's Feedback



how to set the hostname or username at commamd promt ? where to set password length,max and min ?..

Answer / kirankumar

Set password length edit /etc/default/password file and
modify max length and min length.

#hostname kiran
#hostname
kiran
to update it permanently update file
/etc/hosts
/etc/inet/ipnodes
/etc/nodename
/etc/hosts.nic

Is This Answer Correct ?    16 Yes 2 No

how to set the hostname or username at commamd promt ? where to set password length,max and min ?..

Answer / raviga006

edit u r .profile

add this two lines
PS1="\h:\w:> "
export PS1

then u r .profile like . /.profile

Is This Answer Correct ?    2 Yes 0 No

how to set the hostname or username at commamd promt ? where to set password length,max and min ?..

Answer / ramkumar

#hostname xxxxxx
#hostname
xxxxxx
And to set it permanently add entries in /etc/hosts
and /etc/sysconfig/network and restart the service
To set password length edit /etc/default/password file

Is This Answer Correct ?    1 Yes 1 No



Post New Answer



More Solaris Commands Interview Questions

if /etc/system file file got deleted how you will regenerate from ok prompt ? in solaris and if and /etc/inittab file got deleted how you will regenerate from ok prompt and if both files got deleted how you will regenerate from ok prompt

3 Answers   Wipro,


Where do you get Alarm prompt?

0 Answers   IBM,


one guy asking how to grow disk size in SDS? what is SDS?

2 Answers   TCS,


How to enable the telnet or ftp session for one host

3 Answers  


How to stop the VCS

2 Answers  






solaris network daemon

6 Answers   HP,


how we can create user in solaris?

6 Answers   Tech Mahindra,


How to configure mirror with hot spare in vxvm I know how to create mirror with vxassist: #vxassist -g <diskgroup name> make <volume name> <vol size> layout=mirror I know how to create hot spare with vxedit #vxedit -g <diskgroup name> set spare=on diskname but i don't how to attach hot spare to mirror? can some one plz help in this issue.. Thanks & Regards, SaiKrishna. kanuparthi_sai@yahoo.com my alternate E-Mail id: ksaikrishna7@gmail.com

2 Answers   Wipro,


If you have multiple ethernet interfaces, how do you keep it from routing between them?

2 Answers  


How to bring the process to offline or online

3 Answers  


how to view how many samba user in solaris

4 Answers   3i Infotech,


How to find the versions?

2 Answers  






Categories
  • Solaris Commands Interview Questions Solaris Commands (356)
  • Solaris Threads Interview Questions Solaris Threads (8)
  • Solaris IPC Interview Questions Solaris IPC (15)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (2)
  • Solaris System Calls Interview Questions Solaris System Calls (14)
  • Solaris General Interview Questions Solaris General (116)
  • Solaris AllOther Interview Questions Solaris AllOther (297)