Directory/File Permission Differs from Normal ssh session and ssh with command
(Doc ID 2137259.1)
Last updated on AUGUST 20, 2018
Applies to:Linux OS - Version Oracle Linux 5.0 and later
Information in this document applies to any platform.
Directory/File permission differs from normal ssh session and ssh with command
1. Normal SSH Session with remote node and creating abc directory
[root@server01 ~]# ssh server02
Last login: Tue May 3 16:53:39 2016 from xyz.com
[root@server02 ~]# mkdir /tmp/abc
[root@server02 ~]# ls -l /tmp
drwxr-xr-x 2 root root 4096 May 3 16:54 abc <=================permission 755
2. SSH with bash command with remote node and creating bbc directory eg: ssh <hostname> <command>
root@server02 ~]# ls -l /tmp/
drwxr-xr-x 2 root root 4096 May 3 16:54 abc
drwx------ 2 root root 4096 May 3 16:55 bbc <====================permission =700
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document