My Oracle Support Banner

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.

Symptoms

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
total 164
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@server01 ~]# ssh xyz-m02 mkdir /tmp/bbc
[root@server02 ~]#
root@server02 ~]# ls -l /tmp/
total 168
drwxr-xr-x 2 root root 4096 May 3 16:54 abc
...
drwx------ 2 root root 4096 May 3 16:55 bbc <====================permission =700
...
[root@xyz-m02 ~]#

Cause

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
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.