Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-1681468.1
Update Date:2014-06-11
Keywords:

Solution Type  Problem Resolution Sure

Solution  1681468.1 :   Exalytics: Users Encounter Error When Logging On Server: " -bash: /etc/profile: Permission Denied"  


Related Items
  • Oracle Exalytics Software
  •  
  • Exalytics In-Memory Machine X2-4
  •  
Related Categories
  • PLA-Support>Eng Systems>Exalytics>Oracle Exalytics>DB: Exalytics_EST
  •  




In this Document
Symptoms
Cause
Solution
References


Created from <SR 3-9115728241>

Applies to:

Exalytics In-Memory Machine X2-4 - Version All Versions and later
Oracle Exalytics Software - Version 1.0.0.0.0 and later
Information in this document applies to any platform.

Symptoms

When root, or other users, log in to Exalytics server, they are getting a permissions error.
For example, when the root user logs in, error is:

-bash: /etc/profile: Permission denied

The root user appears to have all the required privileges:

[root@Myexalytics1 ~]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)

[root@Myexaltyics1 ~]# ls -l /etc/profile
-rw-r--r-- 1 root root 1215 Dec 19 20:03 /etc/profile


The same error appears for other Linux operating system users when they login.  The error does not seem to cause any navigation, or other issues.
This problem started happening after the Linux system administrators made changes to the operating system to tighten access and security.  The exact changes that were made are unknown.

Cause

Error in the /etc/.profile script.
 
Found that the 2nd line of the /etc/profile file had been unintentionally uncommented.
Instead of showing:

  1 # /etc/profile
  2

The file showed:

  1 # /etc/profile
  2 /etc/profile


This caused the permissions error when users logged in.
 

Solution

Make backup copy of existing /etc/profile file.

Then modify the file so that  "/etc/profile" is commented in the first line and removed from second line.
Modified file will show first lines as:

# /etc/profile

# System wide environment and startup programs, for login setup
...

 

References

<NOTE:1662439.1> - Master Note On Exalytics Instrumentation And Diagnostics - Use To Diagnose and Troubleshoot Problems on Exalytics

Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback