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

In a E6800 server,how can you loginto domain shell and system Console?

1 Answers   EDS,


How to add swap space in Sun Server?

6 Answers   ITC Infotech,


how to recover root passwd ?

11 Answers   HP,


how to configure samp in solaris 5.10 sparc architecture

2 Answers   Wipro, Accel,


How to change the default new user shell without mentioning -s /bin/sh in cmd useradd or usermod and which file we need to change? this is not for existing user

4 Answers   Tech Mahindra,






How many replicas should be for raid5 in sds if I have 5 disk

2 Answers  


What are the service group dependence?

2 Answers  


How to delete “abc” files using find command

3 Answers  


How to find the versions?

2 Answers  


How can you see the system firewll?

0 Answers   Thomson Reuters,


What is UMASK

2 Answers  


How to create NULL files of specific size in solaris ?

9 Answers   IBM,






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)