Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/home/ystone/.bashrc: Permission not granted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Sun Jul 22, 2012 7:48 am    Post subject: /home/ystone/.bashrc: Permission not granted Reply with quote

Hi all,
User ystone cannot login anymore. gdm repports :
Code:
Your personnal folder should be "/home/ystone" but seems to not exist. Would you like to use the / folder as your personal folder ? This should not work instead you use a rescue session.
Original message in french : Votre dossier personnel est censé être « /home/ystone » mais il ne semble pas exister. Voulez-vous vous connecter en utilisant le répertoire / (racine) comme votre dossier personnel ? Il est fort probable que rien ne fonctionne à moins que vous n'utilisiez une session de secours

Of course, the folder /home/ystone exists and belongs to the user ystone :
Code:
# ls -l /home/
total 64
drwx------ 273 lalebarde    lalebarde    20480 22 juil. 00:56 lalebarde
drwx------  46 ystone ystone  4096 22 juil. 09:14 ystone


I checked that all files and folders belong to ystone, and to be sure :
Code:
# chown -R ystone:ystone /home/ystone
This changes nothing to the problem.

Other thing strange, when I su to ystone :
Code:
# su ystone
bash: /home/ystone/.bashrc: Permission not granted
Original message in french : Permission non accordée

But with user lalebarde, I don't have this message.

I recreated /home/ystone/.bashrc from a copy of /home/lalebarde/.bashrc, of course I checked its ownership, but this change nothing.

Besides, I don't use policykit.

There is something I did thought, is to move my hard disk that contain /home to a second identical PC with gentoo also, then moved back to my primary PC. Both are up to date. But user lalebarde was not affected by that. Both account were logged-in in the other PC.

Any idea please ?
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sun Jul 22, 2012 1:19 pm    Post subject: Reply with quote

lalebarde,

can you access the files in /home/ystone as root?
what happens when you do (as root) e.g.
Code:
# stat /home/ystone/.bashrc

I'd try strace on the failing commands to learn what exactly happens.
Do you use SELinux or something similar fancy?
Back to top
View user's profile Send private message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Sun Jul 22, 2012 9:47 pm    Post subject: Reply with quote

Thanks for your answer alex.blackbit,

Code:
# stat /home/ystone/.bashrc
  File : « /home/ystone/.bashrc »
   Size : 358          Blocs : 8          ES blocs : 4096   file
Device : 812h/2066d   Inode : 26          Link : 1
Access : (0600/-rw-------)  UID : ( 1970/ystone)   GID : ( 1970/ystone)
Access : 2011-11-21 20:59:46.152724056 +0100
Modi. : 2012-07-22 09:13:53.311463004 +0200
Chgd  : 2012-07-22 09:40:25.076463004 +0200
Created  : -


Here is the result of strace su ystone : http://pastebin.com/SAA8t2QY
I had a look, but I don't know how to read that.

The only fancy thing I use is TuxONice.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum