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

What are the daemons in VERITAS?

6 Answers   HCL,


What is the purpose of ha daemons in VCS servers?

4 Answers  


Explain about Vxrecover?

3 Answers   EDS,


how to see particular job whether completed or not?

4 Answers  


How to Freeze svcgroup, (disable onl. & offl.)

2 Answers  






How many fields in passwd, shadow and group files

2 Answers  


What are the types of cluster configuration?

2 Answers   IBM, Wipro,


How to rename the old root disk. In this example, rootdisk is being renamed as rootold.

1 Answers  


How to Encapsulate the new root disk (c2t2d0).

3 Answers  


What is Sun Explorer ?

5 Answers   CTS,


How to review IP as weel as port no in solaris?

3 Answers  


How to grow disk size in SDS

1 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)