----------------------------------------------------------------------------------------------------------------
######################## Passwordless permissions (ssh) ########################
----------------------------------------------------------------------------------------------------------------
$ chmod 700 Mian Dir like (/u01)
$ cd /u01
$ chmod 700 username like (oracle)
$ cd sysa
$ chmod 700 .ssh
$ cd .ssh
$ chmod 600 authorized_keys
or
$ chmod 640 authorized_keys
########################### Start Linux 7.5 Permissions ###########################
$chmod 700 simbadb (On User)
$cd simbadb
$chmod 700 .ssh (On .ssh dir)
$cd .ssh
$chmod 600 authorized_keys (On File)
$chmod 600 id_rsa (On File)
$chmod 644 id_rsa.pub (On File)
$chmod 644 known_hosts (On File)
############################ END Linux 7.5 Permissions ##########################
sys@bma ]$ ll -a
drwx------ 5 sys dba 4096 Dec 18 18:15 .
drwx------ 4 sys dba 4096 Dec 18 12:47 ..
-rw------- 1 sys dba 1190 Dec 18 18:37 .bash_history
-rwxrwxr-x 1 sys dba 33 Jun 2 2011 .bash_logout
-rwxrwxr-x 1 sys dba 176 Jun 2 2011 .bash_profile
-rwxrwxr-x 1 sys dba 124 Jun 2 2011 .bashrc
-rwxrwxr-x 1 sys dba 515 Jun 21 2011 .emacs
drwxrwxr-x 3 sys dba 4096 Aug 12 2002 .kde
drwxrwxr-x 4 sys dba 4096 Jun 22 2011 .mozilla
drwx------ 2 sys dba 4096 Dec 18 18:17 .ssh
-rwxrwxr-x 1 sys dba 658 Nov 12 2010 .zshrc
[sys@bma ~]$ cd .ssh
[sys@bma .ssh]$ ll
total 16
-rw------- 1 sys dba 872 Dec 18 18:38 authorized_keys
-rw------- 1 sys dba 1671 Dec 18 18:35 id_rsa
-rw-r--r-- 1 sys dba 407 Dec 18 18:35 id_rsa.pub
-rw-r--r-- 1 sys dba 788 Dec 18 18:17 known_hosts
[sys@bma .ssh]$
######################## Passwordless permissions (ssh) ########################
----------------------------------------------------------------------------------------------------------------
$ chmod 700 Mian Dir like (/u01)
$ cd /u01
$ chmod 700 username like (oracle)
$ cd sysa
$ chmod 700 .ssh
$ cd .ssh
$ chmod 600 authorized_keys
or
$ chmod 640 authorized_keys
########################### Start Linux 7.5 Permissions ###########################
$chmod 700 simbadb (On User)
$cd simbadb
$chmod 700 .ssh (On .ssh dir)
$cd .ssh
$chmod 600 authorized_keys (On File)
$chmod 600 id_rsa (On File)
$chmod 644 id_rsa.pub (On File)
$chmod 644 known_hosts (On File)
############################ END Linux 7.5 Permissions ##########################
sys@bma ]$ ll -a
drwx------ 5 sys dba 4096 Dec 18 18:15 .
drwx------ 4 sys dba 4096 Dec 18 12:47 ..
-rw------- 1 sys dba 1190 Dec 18 18:37 .bash_history
-rwxrwxr-x 1 sys dba 33 Jun 2 2011 .bash_logout
-rwxrwxr-x 1 sys dba 176 Jun 2 2011 .bash_profile
-rwxrwxr-x 1 sys dba 124 Jun 2 2011 .bashrc
-rwxrwxr-x 1 sys dba 515 Jun 21 2011 .emacs
drwxrwxr-x 3 sys dba 4096 Aug 12 2002 .kde
drwxrwxr-x 4 sys dba 4096 Jun 22 2011 .mozilla
drwx------ 2 sys dba 4096 Dec 18 18:17 .ssh
-rwxrwxr-x 1 sys dba 658 Nov 12 2010 .zshrc
[sys@bma ~]$ cd .ssh
[sys@bma .ssh]$ ll
total 16
-rw------- 1 sys dba 872 Dec 18 18:38 authorized_keys
-rw------- 1 sys dba 1671 Dec 18 18:35 id_rsa
-rw-r--r-- 1 sys dba 407 Dec 18 18:35 id_rsa.pub
-rw-r--r-- 1 sys dba 788 Dec 18 18:17 known_hosts
[sys@bma .ssh]$
No comments:
Post a Comment