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 is use of default users in solaris especilly nobady,noacess and nobady4

2 Answers  


Difference between LDOM and Domain?

2 Answers   IBM,


I have a TCP error how can fix this error?

3 Answers   Thomson Reuters,


How to enable the telnet or ftp session for one host

3 Answers  


How to start / stop the nfs server

2 Answers  






In solaris while patching why should we break the mirroring?

1 Answers   Wipro,


What is difference between g G while creating useradd?

1 Answers  


How ill you create a subdisk and plexus

1 Answers  


How to configure the virtual ip address

3 Answers  


How to find out the shared file system from server and client

1 Answers  


As a user how he can change is passwd with root privilege.

2 Answers  


What are the service group dependence?

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)