Gentoo Archives: gentoo-dev

From: "Andrew B. Panphiloff" <borisych@×××××××××.ru>
To: Peter Ruskin <Peter.Ruskin@×××××××××.com>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-user] help me please!!! cannot read/write home directory
Date: Fri, 23 Jan 2004 23:04:30
Message-Id: 1074892116.1208.17.camel@office.mastak.ru
In Reply to: [gentoo-dev] Re: [gentoo-user] help me please!!! cannot read/write home directory by Peter Ruskin
1 ÷ óÂÔ, 24.01.2004, × 01:57, Peter Ruskin ÐÉÛÅÔ:
2 > On Friday 23 Jan 2004 20:20, Andrew B. Panphiloff wrote:
3 > > Today I get next :
4 > >
5 > > [root@mail /]su - borisych
6 > > su: warning: cannot change directory to /home/borisych: Permission
7 > > denied
8 > > -bash: /home/borisych/.bash_profile: Permission denied
9 > > -bash-2.05b$ ls -l /home/ | grep borisych
10 > > drwx------ 2 borisych borisych 4096 Jan 12 17:05 borisych
11 >
12 > $ ls -l /home/ | grep peter
13 > drwxr-xr-- 140 peter peter 8192 Jan 23 22:49 peter
14 >
15 > So go to another console, log on as root and do
16 > chmod g+rx o+r /home/borisych
17 >
18 > Peter
19
20 I already fix home directory for borisych , so for another user :
21
22 [root@mail /]ls -la /home/ | grep alucard
23 drwx------ 2 alucard alucard 4096 Dec 12 14:23 alucard
24 [root@mail /]ls -la /home/alucard/ | grep alucard
25 drwx------ 2 alucard alucard 4096 Dec 12 14:23 .
26 -rw------- 1 alucard alucard 29 Dec 17 16:25 .bash_history
27 -rw-r--r-- 1 alucard alucard 24 Dec 6 17:49 .bash_logout
28 -rw-r--r-- 1 alucard alucard 191 Dec 6 17:49 .bash_profile
29 -rw-r--r-- 1 alucard alucard 124 Dec 6 17:49 .bashrc
30 [root@mail /]chmod 755 /home/alucard
31 [root@mail /]su - alucard
32 [alucard@mail alucard]$ ls -la
33 total 24
34 drwxr-xr-x 2 alucard alucard 4096 Dec 12 14:23 .
35 drwxr-xr-x 13 root root 4096 Jan 23 17:08 ..
36 -rw------- 1 alucard alucard 29 Dec 17 16:25 .bash_history
37 -rw-r--r-- 1 alucard alucard 24 Dec 6 17:49 .bash_logout
38 -rw-r--r-- 1 alucard alucard 191 Dec 6 17:49 .bash_profile
39 -rw-r--r-- 1 alucard alucard 124 Dec 6 17:49 .bashrc
40 [alucard@mail alucard]$ cat .bashrc
41 # .bashrc
42
43 # User specific aliases and functions
44
45 # Source global definitions
46 if [ -f /etc/bashrc ]; then
47 . /etc/bashrc
48 fi
49 [alucard@mail alucard]$ cat .bash_history
50 cat: .bash_history: Permission denied
51 [alucard@mail alucard]$
52
53
54 But changing permitions for directories to 755 and for files 644
55 is not solution !!!
56
57
58
59 --
60 gentoo-dev@g.o mailing list