Though enabling root login from putty to sun servers is a security concern, but many times we have to do it. We have to edit a file->
"/etc/ssh/sshd_config" and change "Permitrootlogin"---from "No" to "yes". After this we need to restart ssh by ->
svcadm restart ssh
and we are done!
This is a blog for DBAs. Various technologies covered here are - Oracle Apps ,Oracle, Mongo DB, AWS-- beginners and experienced. We also provide training on Oracle DBA , Oracle Apps DBA, Mongo. Contact us - fill the "Contact Me" form.
Thursday, December 11, 2008
How to enable rsh on solaris
We need to enter the hostname in the following files->
/.rhosts--This file resides on the server on which rsh is to be enabled and should have hostname and name of user which is allowed to rsh on the server.
/etc/hosts--to resolve the ip and hostname
/etc/hosts.allow
Also, one needs to comment the CONSOLE entry in the "/etc/default/login" file on the server on which rsh is to be enabled.
Also, we need to execute some commands and make changes in some files.
svcadm enable svc:/network/inetd:default
svcadm enable svc:/network/login:rlogin
svcadm enable svc:/network/shell:default
svcadm enable svc:/network/login:rlogin
svcadm refresh inetd
/.rhosts--This file resides on the server on which rsh is to be enabled and should have hostname and name of user which is allowed to rsh on the server.
/etc/hosts--to resolve the ip and hostname
/etc/hosts.allow
Also, one needs to comment the CONSOLE entry in the "/etc/default/login" file on the server on which rsh is to be enabled.
Also, we need to execute some commands and make changes in some files.
svcadm enable svc:/network/inetd:default
svcadm enable svc:/network/login:rlogin
svcadm enable svc:/network/shell:default
svcadm enable svc:/network/login:rlogin
svcadm refresh inetd
Wednesday, December 10, 2008
Create a user and group in solaris
Command line is still the best option for doing many stuff in Solaris. It gives so much flexibility!
For adding a group "dba" with groupid "100", the command is->
groupadd –g 100 dba
For adding a user "applmgr" with userid "101" in group "dba" with shell "/bin/sh" and default home directory "/export/home/applmgr", use the following command->
useradd -u 101 -g dba -s /bin/sh -c "applmgr user" -d /export/home/applmgr -m applmgr
The -m option creates the directory if it does not exists.
For adding a group "dba" with groupid "100", the command is->
groupadd –g 100 dba
For adding a user "applmgr" with userid "101" in group "dba" with shell "/bin/sh" and default home directory "/export/home/applmgr", use the following command->
useradd -u 101 -g dba -s /bin/sh -c "applmgr user" -d /export/home/applmgr -m applmgr
The -m option creates the directory if it does not exists.
Subscribe to:
Posts (Atom)