LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-22-2006, 12:33 AM   #1
chris26
Member
 
Registered: Nov 2003
Posts: 40

Rep: Reputation: 15
SU'ing to user and getting ".bashrc permission denied"


After installing LimeWire I started getting weird permission errors on
my home account. Root is fine, but when I log in as a user, I am getting, bash: /home/chris/.bashrc: Permission denied

Im frustration I did a chmod -R o+wrx /home/chris
and I still get the errors, cannot even startX now as the user.
I have no idea how install limewire changed my permissions, but how do I restore that?
 
Old 11-22-2006, 07:55 AM   #2
krussell
Member
 
Registered: Jul 2003
Location: dhaka
Distribution: Slackware 11 (fixed), MEPIS
Posts: 241

Rep: Reputation: 30
hello :-)
perhaps you haven't select the shell for your user.
you can do it by loggin in root, running kuser, and selcting the user detail and making sure that the login shell in selected /bin/bash.
 
Old 11-22-2006, 08:18 AM   #3
chris26
Member
 
Registered: Nov 2003
Posts: 40

Original Poster
Rep: Reputation: 15
The selected shell for the user is bash. It was working perfectly until I installed a new piece of software. Also typing bash at the prompt gives the same message.
 
Old 11-22-2006, 08:27 AM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Can you humour us and check/show the permissions for /home/chris/.bashrc ?

- Piete.
 
Old 11-22-2006, 09:36 AM   #5
chris26
Member
 
Registered: Nov 2003
Posts: 40

Original Poster
Rep: Reputation: 15
There never was a .bashrc file. I dont think the problem is with any file named .bashrc but somehow its with the profile being loaded up. For fun I created a .bashrc file. Here is what happens.

ls -al .bashrc
-rwxrwxrwx 1 chris root 0 2006-11-22 00:21 .bashrc*
su chris
bash: /home/chris/.bashrc: Permission denied

touch test
touch: cannot touch `test': Permission denied

Looks fun huh?
Somehow the user is not being given permissions for the shell and everything else it looks like. X wont work either for permission reasons.
 
Old 11-22-2006, 09:39 AM   #6
chris26
Member
 
Registered: Nov 2003
Posts: 40

Original Poster
Rep: Reputation: 15
Here is the list for the entire directory:
ls -al /home/chris/
total 72
d-w----rwx 13 chris users 4096 2006-11-22 09:30 ./
drwxr-xr-x 6 root root 4096 2006-11-22 00:17 ../
-rwxrwxrwx 1 chris root 0 2006-11-22 00:21 .bashrc*
--w----rwx 1 chris users 516 2006-11-21 22:55 .fonts.conf*
d-w----rwx 3 chris users 4096 2006-11-21 16:24 .fullcircle/
d-w----rwx 4 chris users 4096 2006-11-21 22:46 .kde/
--w----rwx 1 chris users 445 2006-11-21 22:56 .kderc*
d-w----rwx 4 chris users 4096 2006-11-21 23:37 .limewire/
d-w----rwx 3 chris users 4096 2006-11-21 16:22 .local/
d-w----rwx 3 chris users 4096 2006-11-21 16:22 .mcop/
--w----rwx 1 chris users 31 2006-11-21 16:22 .mcoprc*
d-w----rwx 3 chris users 4096 2006-11-21 23:02 .mozilla/
d-w----rwx 2 chris users 4096 2006-11-21 22:56 .qt/
--w----rwx 1 chris users 3729 2006-11-16 00:50 .screenrc*
--w----rwx 1 chris users 192 2006-11-21 22:54 .xcompmgrrc*
d-w----rwx 2 chris users 4096 2006-11-21 16:22 .xine/
d-w----rwx 2 chris users 4096 2006-11-21 23:13 Desktop/
d-w----rwx 2 chris root 4096 2006-11-21 23:36 Shared/
d-w----rwx 2 chris users 4096 2006-11-21 23:39 music/

Any permissions look off there?
 
Old 11-22-2006, 10:40 AM   #7
ZeromusM
LQ Newbie
 
Registered: May 2006
Distribution: OpenSUSE 10.0
Posts: 27

Rep: Reputation: 15
d-w----rwx 13 chris users 4096 2006-11-22 09:30 ./

The permissions for your home directory are reversed.

In the permissions list (bolded), spots 2-4 are the owner permissions, 5-7 are the group permissions, and 8-0 are everyone else's permissions. The owner only has write permissions, not read, while everyone else has full control. Try this:

Code:
chmod -R 740 /home/chris
That should fix the touch problem at least. Change the numbers to 744 if you want to allow everyone to read things in your home directory.

Last edited by ZeromusM; 11-22-2006 at 10:42 AM.
 
Old 11-23-2006, 04:36 PM   #8
chris26
Member
 
Registered: Nov 2003
Posts: 40

Original Poster
Rep: Reputation: 15
ok, that was it. thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
"Permission Denied" while accessing ntfs partition in user mode funkymunky Linux - General 3 01-31-2009 09:03 PM
Acrobat Reader "error opening document - permission denied" Robhogg Linux - Software 5 04-25-2008 09:44 AM
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 03:05 PM
Permission denied on " ls "for root user itsjvivek Linux - General 12 12-11-2002 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration