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

How will see the kernel version

5 Answers  


What is the difference between dsk and rdsk

3 Answers  


There are two nic cards on a sun server. I need to connect one nic to pupic ip and another nic to DMZ. Could you tell me how to configure step by step?

1 Answers   Infosys,


If you have got a LUN, How to configure it, how to allocate LUN in linux/ solaris. What are the steps ?

2 Answers   Wipro,


how to add an user without using "useradd" command in solaris10?

4 Answers   HCL, HP,


I would like to create users and the users account should be locked after 3 login attempts. How to create ? And where these locked information has been stored. Environment : NIS and if LDAP also

4 Answers   CTS,


What is the protocol supported by NFS

2 Answers  


If telnet not working, what are the thing to be checked

3 Answers  


how can system identify run level at boot time?

5 Answers   Accenture,


Which command to lock the user Account?

3 Answers  


How to add a new LUN in exit disksets (metasets) in solaris please answer me step by step procedure?

1 Answers   IBM,


What are the protocols in VCS

3 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)