LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-29-2009, 12:35 PM   #1
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Rep: Reputation: 37
cannot write to .ICEauthority as of using a new .bash_profile


after losing everything to a F10->F11 grub phenomenom ,
I have worked my way back (until today)
to a working F10
I was just getting back to restoring the original working bash_profile (at the bottom)
and after logging out, I could not log back in even after reboot.
I get a message about ...cannot update (or write) to .ICEauthority

I created a new user and cannot even log into the new user.
I can however log into root
Even a su - to either user will not work

[root@eugenemachine ~]# su - oracle
su: warning: cannot change directory to /home/oracle: Permission denied
-bash: /home/oracle/.bash_profile: Permission denied
-bash-3.2$ logout via control d
-bash: /home/oracle/.bash_logout: Permission denied
[root@eugenemachine ~]#

[root@eugenemachine oracle]# ls -alF|more
total 3244
drwxr--r-- 43 oracle oracle 4096 2009-09-29 12:16 ./
drwxr--r-- 4 root root 4096 2009-09-28 16:17 ../
drwxr--r-- 3 oracle oinstall 4096 2009-09-22 11:49 .adobe/
drwxr--r-- 2 oracle oracle 4096 2009-08-26 00:34 AdobeFlash/
drwxr--r-- 2 oracle oinstall 4096 2009-09-28 15:03 bash1/
drwxr--r-- 2 oracle oracle 4096 2009-09-28 17:57 bash2/
-rwxr--r-- 1 oracle oinstall 14440 2009-09-28 15:35 .bash_history*
-rwxr--r-- 1 oracle oinstall 18 2009-09-28 20:45 .bash_logout*
-rwxr--r-- 1 oracle oinstall 176 2009-09-28 20:45 .bash_profile*
-rwxr--r-- 1 oracle oinstall 124 2009-09-28 20:45 .bashrc*
drwxr--r-- 7 oracle oracle 4096 2009-09-28 14:51 .beagle/

some post recommended I delete .ICEauthority and reboot but that didn't work.
I did save .ICEauthority just in case

[root@eugenemachine oracle]# ls -alF /home
total 24
drwxr--r-- 4 root root 4096 2009-09-28 16:17 ./
drwxr-xr-x 24 root root 4096 2009-09-29 08:25 ../
drwx------ 4 eugene eugene 4096 2009-09-28 16:17 eugene/
drwxr--r-- 43 oracle oracle 4096 2009-09-29 11:19 oracle/
[root@eugenemachine oracle]#

[root@eugenemachine oracle]# pwd
/home/oracle
[root@eugenemachine oracle]# ls -alF .ICEauthority
-rwxrwxrwx 1 oracle oinstall 930 2009-09-28 18:15 .ICEauthority*
[root@eugenemachine oracle]#

_______________________________________________________________________
# .bash_profile
# for Qt 4

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# alias ls -alF='ls -alF --color'
# alias h=history
# User specific environment and startup programs

HIST=1024
hist=1024
savehist=1024
SAVEHIST=1024

# mount --move /mnt/usbdrive /home/eugene/usb
QTDIR=/usr/lib/qt4
# QTDIR=/usr/lib/qt-3.3
CPLUS_INCLUDE_PATH=$QTDIR/include
BASH_ENV=$HOME/.bashrc
USERNAME=""

LD_LIBRARY_PATH=/usr/lib
LIBRARY_PATH=$LD_LIBRARY_PATH
QTLIB=$LD_LIBRARY_PATH
# LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Trolltech/Qt-4.2.2/lib
# LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/usr/lib
# LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
PS1="\h (\u) \w [\!]>"

PATH=$QTDIR/bin:$QTDIR:$QTLIB:$PATH:$HOME/bin:.
export PS1
export USERNAME
export LD_LIBRARY_PATH
export PATH
export QTDIR
export LIBRARY_PATH
export CPLUS_INCLUDE_PATH
export BASH_ENV
export HIST
export hist
export savehist
export SAVEHIST
# unset USERNAME

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=localhost.localdomain; export ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME
ORACLE_SID=EUGENEGDNSID; export ORACLE_SID
TNS_ADMIN=/u01/app/oracle/product/11.1.0/db_1/network/admin export TNS_ADMIN

ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
# PATH=$ORACLE_HOME/bin:$PATH; export PATH
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

LIBXCB_ALLOW_SLOPPY_LOCK=true; export LIBXCB_ALLOW_SLOPPY_LOCK
 
Old 09-29-2009, 01:24 PM   #2
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
solved problem using chmod 755 or 777...but how did this happen in the first place

why did I use 777 and intentionally mess up some permissions???

I went to the limit to see (at least) if this was the problem!

Now that it is fixed, I can backoff the permissions

[root@eugenemachine oracle]# lsa /home
total 24
drwxrwxrwx 4 root root 4096 2009-09-28 16:17 ./
drwxr-xr-x 24 root root 4096 2009-09-29 13:04 ../
drwxrwxrwx 4 eugene eugene 4096 2009-09-28 16:17 eugene/
drwxrwxrwx 49 oracle oracle 4096 2009-09-29 13:17 oracle/
[root@eugenemachine oracle]# lsa |more
ls: cannot access .gvfs: Permission denied
total 3276
drwxrwxrwx 49 oracle oracle 4096 2009-09-29 13:17 ./
drwxrwxrwx 4 root root 4096 2009-09-28 16:17 ../
drwxr--r-- 3 oracle oinstall 4096 2009-09-22 11:49 .adobe/
drwxr--r-- 2 oracle oracle 4096 2009-08-26 00:34 AdobeFlash/
drwxr--r-- 2 oracle oinstall 4096 2009-09-28 15:03 bash1/
drwxr--r-- 2 oracle oracle 4096 2009-09-28 17:57 bash2/
-rwxr-xr-x 1 oracle oinstall 14402 2009-09-29 13:09 .bash_history*
-rwxr-xr-x 1 oracle oinstall 18 2009-09-29 13:08 .bash_logout*
-rwxr-xr-x 1 oracle oinstall 1828 2009-09-29 13:08 .bash_profile*
-rwxr-xr-x 1 oracle oinstall 170 2009-09-29 13:08 .bashrc*
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.ICEauthority barn63 Slackware 22 07-28-2021 11:07 AM
ICEauthority cbtshare Linux - Laptop and Netbook 1 08-24-2009 04:25 AM
help me to write wget commnad in .bash_profile squirrel001 Linux - Newbie 3 06-20-2006 04:37 AM
.ICEauthority Beads SUSE / openSUSE 3 05-06-2006 11:43 AM
.ICEAuthority error pureevil4 Slackware 2 08-13-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration