You are not logged in.

#1 2006-11-03 16:42:57

infestdead
Member
From: Bulgaria
Registered: 2006-05-10
Posts: 38

-bash /etc/profile: permission denied [Solved]

Everything was working fine. I did pacman -Syu this morning and now (18:33) I tried to login from work to my PC and I get:

login as: ipm
ipm@xx.xx.xx.xx's password:
Last login: Fri Nov  3 18:31:43 2006 from xx.xx.xx.xx
-bash: /etc/profile: Permission denied
[18:35:00][I have no name!|~]:

I've done several other logins today from work to the PC after the update and all was fine.

Logging with root is OK. Searched the forum and found this thread, using it however I couldn't fix my problem.
Here are the permissions of the files now (755) I've tried with 644, same result.

[18:36:53][root|~]: ls -l /etc/ | grep profile.d
drwxr-xr-x 2 root root    320 Nov  3 09:41 profile.d
[18:37:01][root|~]: ls -l /etc/profile*
-rwxr-xr-x 1 root root 858 Sep  3 10:20 /etc/profile

/etc/profile.d:
total 40
-rwxr-xr-x 1 root root 617 Jul 19 17:29 gnome.sh
-rwxr-xr-x 1 root root 451 Oct  3 20:07 kde.csh
-rwxr-xr-x 1 root root 464 Oct  3 20:07 kde.sh
-rwxr-xr-x 1 root root  38 Jun 14 20:28 ladspa.sh
-rwxr-xr-x 1 root root  18 Nov  3 18:33 locale.sh
-rwxr-xr-x 1 root root 158 Feb  5  2006 mozilla-common.sh
-rwxr-xr-x 1 root root 208 Oct 19 14:24 qt.sh
-rwxr-xr-x 1 root root  45 Jul  3 00:39 torcs.sh
-rwxr-xr-x 1 root root 529 Aug  5 14:21 xfce4.sh
-rwxr-xr-x 1 root root 358 Oct 29 16:37 xorg.sh
[18:37:07][root|~]:

Help.  sad


............. .......... .........................
......................
Where is Pacman when you need him....

Offline

#2 2006-11-03 17:19:29

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: -bash /etc/profile: permission denied [Solved]

Is something trying to write to /etc/profile? Check your ~/.bashrc too...

Offline

#3 2006-11-03 17:28:04

infestdead
Member
From: Bulgaria
Registered: 2006-05-10
Posts: 38

Re: -bash /etc/profile: permission denied [Solved]

The ~/.bashrc is fine, several aliases and the PS1.

phrakture wrote:

Is something trying to write to /etc/profile?

How can I find that out? ps aux | grep profile gives nothing...


............. .......... .........................
......................
Where is Pacman when you need him....

Offline

#4 2006-11-03 21:32:58

afu
Member
From: Tuscalooser, Alabummer
Registered: 2004-02-19
Posts: 155

Re: -bash /etc/profile: permission denied [Solved]

lsof | grep profile
or something similar
-Shawn

Offline

#5 2006-11-04 00:21:38

infestdead
Member
From: Bulgaria
Registered: 2006-05-10
Posts: 38

Re: -bash /etc/profile: permission denied [Solved]

No, nothing here either....

Edit: I fixed it. It was my mistake all along  :oops: . I installed earlier some soft from rpm for the lightscribe of my writer and somehow managed to chmod /etc to 700. That was the problem all along. Chmoded /etc back to 755 and all is fine. smile


............. .......... .........................
......................
Where is Pacman when you need him....

Offline

Board footer

Powered by FluxBB